2013-10-01 11:59:31 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# zsh
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-28 22:43:53 +02:00
|
|
|
ZSH_VERSION = 5.4.2
|
2014-10-08 15:19:46 +02:00
|
|
|
ZSH_SITE = http://www.zsh.org/pub
|
|
|
|
ZSH_DEPENDENCIES = ncurses
|
|
|
|
ZSH_CONF_OPTS = --bindir=/bin
|
2017-09-28 22:43:52 +02:00
|
|
|
ZSH_CONF_ENV = zsh_cv_sys_nis=no zsh_cv_sys_nis_plus=no
|
2013-10-01 11:59:31 +02:00
|
|
|
ZSH_LICENSE = MIT-like
|
|
|
|
ZSH_LICENSE_FILES = LICENCE
|
2014-10-08 15:19:46 +02:00
|
|
|
|
2016-02-21 10:50:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GDBM),y)
|
|
|
|
ZSH_CONF_OPTS += --enable-gdbm
|
|
|
|
ZSH_DEPENDENCIES += gdbm
|
|
|
|
else
|
|
|
|
ZSH_CONF_OPTS += --disable-gdbm
|
|
|
|
endif
|
|
|
|
|
2016-02-21 10:50:11 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
ZSH_CONF_OPTS += --enable-cap
|
|
|
|
ZSH_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
ZSH_CONF_OPTS += --disable-cap
|
|
|
|
endif
|
|
|
|
|
2016-02-21 10:50:12 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
ZSH_CONF_OPTS += --enable-pcre
|
2016-03-01 12:34:55 +01:00
|
|
|
ZSH_CONF_ENV += ac_cv_prog_PCRECONF=$(STAGING_DIR)/usr/bin/pcre-config
|
2016-02-21 10:50:12 +01:00
|
|
|
ZSH_DEPENDENCIES += pcre
|
|
|
|
else
|
|
|
|
ZSH_CONF_OPTS += --disable-pcre
|
|
|
|
endif
|
|
|
|
|
2014-10-08 15:19:46 +02:00
|
|
|
# Remove versioned zsh-x.y.z binary taking up space
|
|
|
|
define ZSH_TARGET_INSTALL_FIXUPS
|
|
|
|
rm -f $(TARGET_DIR)/bin/zsh-$(ZSH_VERSION)
|
|
|
|
endef
|
|
|
|
ZSH_POST_INSTALL_TARGET_HOOKS += ZSH_TARGET_INSTALL_FIXUPS
|
2013-10-01 11:59:31 +02:00
|
|
|
|
|
|
|
$(eval $(autotools-package))
|