You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
|
|
PKG_NAME := erlang
|
|
PKG_VER := 25.0
|
|
HOMEPAGE="https://www.erlang.org/"
|
|
|
|
PKG_SOURCES := https://github.com/erlang/otp/releases/download/OTP-25.0/otp_src_25.0.tar.gz
|
|
PKG_MD5 := 3c4c9da083f2a6b89aa1766415339d0c
|
|
|
|
#PKG_PATCHES := pkg_patch.txt
|
|
|
|
include $(EXTBLD_LIB)
|
|
|
|
ERLANG_CPPFLAGS = ${EMBOX_CPPFLAGS}
|
|
ERLANG_CPPFLAGS += -I$(abspath .)/include
|
|
ERLANG_CPPFLAGS += -include $(abspath .)/include/embox_erlang_compat.h
|
|
|
|
$(CONFIGURE) :
|
|
export EMBOX_GCC_LINK=full; \
|
|
cd $(PKG_SOURCE_DIR) && ( \
|
|
./configure --prefix=$(PKG_INSTALL_DIR) \
|
|
--host=$(AUTOCONF_TARGET_TRIPLET) \
|
|
--target=$(AUTOCONF_TARGET_TRIPLET) \
|
|
CPPFLAGS="$(ERLANG_CPPFLAGS)" \
|
|
-with-termcap=no \
|
|
-with-javac=no \
|
|
CC=$(EMBOX_GCC) \
|
|
)
|
|
touch $@
|
|
|
|
$(BUILD) :
|
|
cd $(PKG_SOURCE_DIR) && ( \
|
|
$(MAKE) ERL_XCOMP_FORCE_DIFFERENT_OTP=yes MAKEFLAGS='$(EMBOX_IMPORTED_MAKEFLAGS)'; \
|
|
)
|
|
touch $@
|
|
|
|
$(INSTALL) :
|
|
cd $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VER) && ( \
|
|
$(MAKE) DESTDIR=$(PKG_INSTALL_DIR) install; \
|
|
mv $(PKG_INSTALL_DIR)/usr/local/bin/erl $(PKG_INSTALL_DIR)/erl; \
|
|
)
|
|
touch $@
|
|
|