1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# slang 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSLANG_VERSION = 2.3.2 8*4882a593SmuzhiyunSLANG_SOURCE = slang-$(SLANG_VERSION).tar.bz2 9*4882a593SmuzhiyunSLANG_SITE = http://www.jedsoft.org/releases/slang 10*4882a593SmuzhiyunSLANG_LICENSE = GPL-2.0+ 11*4882a593SmuzhiyunSLANG_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunSLANG_INSTALL_STAGING = YES 13*4882a593SmuzhiyunSLANG_CONF_OPTS = --with-onig=no 14*4882a593SmuzhiyunSLANG_MAKE = $(MAKE1) 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# Racy and we don't have/do libtermcap 17*4882a593Smuzhiyundefine SLANG_DISABLE_TERMCAP 18*4882a593Smuzhiyun $(SED) '/^TERMCAP=/s:=.*:=:' $(@D)/configure 19*4882a593Smuzhiyunendef 20*4882a593SmuzhiyunSLANG_POST_PATCH_HOOKS += SLANG_DISABLE_TERMCAP 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# Absolute path hell, sigh... 23*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBPNG),y) 24*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-png=$(STAGING_DIR)/usr 25*4882a593SmuzhiyunSLANG_DEPENDENCIES += libpng 26*4882a593Smuzhiyunelse 27*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-png=no 28*4882a593Smuzhiyunendif 29*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PCRE),y) 30*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr 31*4882a593SmuzhiyunSLANG_DEPENDENCIES += pcre 32*4882a593Smuzhiyunelse 33*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-pcre=no 34*4882a593Smuzhiyunendif 35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y) 36*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-z=$(STAGING_DIR)/usr 37*4882a593SmuzhiyunSLANG_DEPENDENCIES += zlib 38*4882a593Smuzhiyunelse 39*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-z=no 40*4882a593Smuzhiyunendif 41*4882a593Smuzhiyun 42*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NCURSES),y) 43*4882a593SmuzhiyunSLANG_DEPENDENCIES += ncurses 44*4882a593SmuzhiyunSLANG_CONF_ENV += ac_cv_path_nc5config=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) 45*4882a593Smuzhiyunelse 46*4882a593SmuzhiyunSLANG_CONF_OPTS += ac_cv_path_nc5config=no 47*4882a593Smuzhiyunendif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_READLINE),y) 50*4882a593SmuzhiyunSLANG_CONF_OPTS += --with-readline=gnu 51*4882a593SmuzhiyunSLANG_DEPENDENCIES += readline 52*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 53*4882a593SmuzhiyunSLANG_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) --libs`" 54*4882a593Smuzhiyunendif 55*4882a593Smuzhiyunendif 56*4882a593Smuzhiyun 57*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 58*4882a593SmuzhiyunSLANG_MAKE_OPTS = static 59*4882a593SmuzhiyunSLANG_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static 60*4882a593SmuzhiyunSLANG_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static 61*4882a593Smuzhiyunendif 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun$(eval $(autotools-package)) 64