2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-08-24 23:39:26 +02:00
|
|
|
#
|
|
|
|
# erlang
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-08-24 23:39:26 +02:00
|
|
|
|
2013-07-12 10:25:37 +02:00
|
|
|
ERLANG_VERSION = R15B03-1
|
2012-08-24 23:39:26 +02:00
|
|
|
ERLANG_SITE = http://www.erlang.org/download
|
|
|
|
ERLANG_SOURCE = otp_src_$(ERLANG_VERSION).tar.gz
|
|
|
|
ERLANG_DEPENDENCIES = host-erlang
|
2012-09-05 07:19:08 +02:00
|
|
|
HOST_ERLANG_DEPENDENCIES =
|
2012-08-24 23:39:26 +02:00
|
|
|
|
|
|
|
ERLANG_LICENSE = EPL
|
|
|
|
ERLANG_LICENSE_FILES = EPLICENCE
|
|
|
|
|
|
|
|
# The configure checks for these functions fail incorrectly
|
|
|
|
ERLANG_CONF_ENV = ac_cv_func_isnan=yes ac_cv_func_isinf=yes
|
|
|
|
|
|
|
|
ERLANG_CONF_OPT = --without-javac
|
2012-09-16 12:41:02 +02:00
|
|
|
HOST_ERLANG_CONF_OPT = --without-javac
|
2012-08-24 23:39:26 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
|
|
ERLANG_CONF_OPT += --with-termcap
|
|
|
|
ERLANG_DEPENDENCIES += ncurses
|
|
|
|
else
|
|
|
|
ERLANG_CONF_OPT += --without-termcap
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
ERLANG_CONF_OPT += --with-ssl
|
|
|
|
ERLANG_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
ERLANG_CONF_OPT += --without-ssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
ERLANG_CONF_OPT += --enable-shared-zlib
|
|
|
|
ERLANG_DEPENDENCIES += zlib
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Remove source, example, gs and wx files from the target
|
|
|
|
ERLANG_REMOVE_PACKAGES = gs wx
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_ERLANG_MEGACO),y)
|
|
|
|
ERLANG_REMOVE_PACKAGES += megaco
|
|
|
|
endif
|
|
|
|
|
|
|
|
define ERLANG_REMOVE_UNUSED
|
|
|
|
find $(TARGET_DIR)/usr/lib/erlang -type d -name src -prune -exec rm -rf {} \;
|
|
|
|
find $(TARGET_DIR)/usr/lib/erlang -type d -name examples -prune -exec rm -rf {} \;
|
|
|
|
for package in $(ERLANG_REMOVE_PACKAGES); do \
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/erlang/lib/$${package}-*; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
ERLANG_POST_INSTALL_TARGET_HOOKS += ERLANG_REMOVE_UNUSED
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|