2013-10-01 11:59:31 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# zsh
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-04-20 14:33:52 +02:00
|
|
|
ZSH_VERSION = 5.3.1
|
2014-10-08 15:19:46 +02:00
|
|
|
ZSH_SITE = http://www.zsh.org/pub
|
2015-10-02 18:47:27 +02:00
|
|
|
ZSH_SOURCE = zsh-$(ZSH_VERSION).tar.xz
|
2014-10-08 15:19:46 +02:00
|
|
|
ZSH_DEPENDENCIES = ncurses
|
|
|
|
ZSH_CONF_OPTS = --bindir=/bin
|
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))
|