2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-05-23 21:21:23 +02:00
|
|
|
#
|
|
|
|
# slang
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2014-09-22 20:38:23 +02:00
|
|
|
SLANG_VERSION = 2.3.0
|
2015-03-09 23:14:51 +01:00
|
|
|
SLANG_SITE = http://www.jedsoft.org/releases/slang
|
2014-03-15 21:14:46 +01:00
|
|
|
SLANG_LICENSE = GPLv2+
|
|
|
|
SLANG_LICENSE_FILES = COPYING
|
2010-10-08 10:43:05 +02:00
|
|
|
SLANG_INSTALL_STAGING = YES
|
2014-03-15 10:31:31 +01:00
|
|
|
SLANG_MAKE = $(MAKE1)
|
2010-10-08 10:43:05 +02:00
|
|
|
|
2014-10-06 21:06:22 +02:00
|
|
|
# Racy and we don't have/do libtermcap
|
|
|
|
define SLANG_DISABLE_TERMCAP
|
|
|
|
$(SED) '/^TERMCAP=/s:=.*:=:' $(@D)/configure
|
|
|
|
endef
|
|
|
|
SLANG_POST_PATCH_HOOKS += SLANG_DISABLE_TERMCAP
|
|
|
|
|
2014-03-29 00:29:20 +01:00
|
|
|
# Absolute path hell, sigh...
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-png=$(STAGING_DIR)/usr
|
2014-03-29 00:29:20 +01:00
|
|
|
SLANG_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-png=no
|
2014-03-29 00:29:20 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
|
2014-03-29 00:29:20 +01:00
|
|
|
SLANG_DEPENDENCIES += pcre
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-pcre=no
|
2014-03-29 00:29:20 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-z=$(STAGING_DIR)/usr
|
2014-03-29 00:29:20 +01:00
|
|
|
SLANG_DEPENDENCIES += zlib
|
2014-03-28 00:06:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-z=no
|
2014-03-28 00:06:33 +01:00
|
|
|
endif
|
|
|
|
|
2014-03-29 00:29:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
|
|
SLANG_DEPENDENCIES += ncurses
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += ac_cv_path_nc5config=no
|
2014-03-29 00:29:20 +01:00
|
|
|
endif
|
2014-03-28 00:06:32 +01:00
|
|
|
|
2014-03-29 00:29:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
SLANG_CONF_OPTS += --with-readline=gnu
|
2014-03-29 00:29:20 +01:00
|
|
|
SLANG_DEPENDENCIES += readline
|
|
|
|
endif
|
2014-03-28 00:06:32 +01:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-12-09 12:51:21 +01:00
|
|
|
SLANG_MAKE_OPTS = static
|
|
|
|
SLANG_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
|
|
|
|
SLANG_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
|
|
|
|
endif
|
|
|
|
|
2014-03-15 10:31:31 +01:00
|
|
|
$(eval $(autotools-package))
|