1 ################################################################################
5 ################################################################################
8 SLANG_SITE = http://www.jedsoft.org/releases/slang
10 SLANG_LICENSE_FILES = COPYING
11 SLANG_INSTALL_STAGING = YES
14 # Racy and we don't have/do libtermcap
15 define SLANG_DISABLE_TERMCAP
16 $(SED) '/^TERMCAP=/s:=.*:=:' $(@D)/configure
18 SLANG_POST_PATCH_HOOKS += SLANG_DISABLE_TERMCAP
20 # Absolute path hell, sigh...
21 ifeq ($(BR2_PACKAGE_LIBPNG),y)
22 SLANG_CONF_OPTS += --with-png=$(STAGING_DIR)/usr
23 SLANG_DEPENDENCIES += libpng
25 SLANG_CONF_OPTS += --with-png=no
27 ifeq ($(BR2_PACKAGE_PCRE),y)
28 SLANG_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
29 SLANG_DEPENDENCIES += pcre
31 SLANG_CONF_OPTS += --with-pcre=no
33 ifeq ($(BR2_PACKAGE_ZLIB),y)
34 SLANG_CONF_OPTS += --with-z=$(STAGING_DIR)/usr
35 SLANG_DEPENDENCIES += zlib
37 SLANG_CONF_OPTS += --with-z=no
40 ifeq ($(BR2_PACKAGE_NCURSES),y)
41 SLANG_DEPENDENCIES += ncurses
43 SLANG_CONF_OPTS += ac_cv_path_nc5config=no
46 ifeq ($(BR2_PACKAGE_READLINE),y)
47 SLANG_CONF_OPTS += --with-readline=gnu
48 SLANG_DEPENDENCIES += readline
51 ifeq ($(BR2_STATIC_LIBS),y)
52 SLANG_MAKE_OPTS = static
53 SLANG_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
54 SLANG_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
57 $(eval $(autotools-package))