a6209d1b97
zsh configure script mis-detects the location of pcre-config, and may use that of host-pcre or that of the host instead of the target. Make configure use the correct pcre-config. Thanks to Thomas Petazzoni for pointing me at the right direction. Fixes: http://autobuild.buildroot.net/results/b12/b12aadf3016dab0941cae780fa9ee7bf9be8fcda/ http://autobuild.buildroot.net/results/8e8/8e8b12dbca4ef8cac2e5f33cd3cdcddd8e849840/ http://autobuild.buildroot.net/results/473/473197ec8e323ea7ae0e29e6363525dc42f9da2c/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# zsh
|
|
#
|
|
################################################################################
|
|
|
|
ZSH_VERSION = 5.2
|
|
ZSH_SITE = http://www.zsh.org/pub
|
|
ZSH_SOURCE = zsh-$(ZSH_VERSION).tar.xz
|
|
ZSH_DEPENDENCIES = ncurses
|
|
ZSH_CONF_OPTS = --bindir=/bin
|
|
ZSH_LICENSE = MIT-like
|
|
ZSH_LICENSE_FILES = LICENCE
|
|
|
|
ifeq ($(BR2_PACKAGE_GDBM),y)
|
|
ZSH_CONF_OPTS += --enable-gdbm
|
|
ZSH_DEPENDENCIES += gdbm
|
|
else
|
|
ZSH_CONF_OPTS += --disable-gdbm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
ZSH_CONF_OPTS += --enable-cap
|
|
ZSH_DEPENDENCIES += libcap
|
|
else
|
|
ZSH_CONF_OPTS += --disable-cap
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
ZSH_CONF_OPTS += --enable-pcre
|
|
ZSH_CONF_ENV += ac_cv_prog_PCRECONF=$(STAGING_DIR)/usr/bin/pcre-config
|
|
ZSH_DEPENDENCIES += pcre
|
|
else
|
|
ZSH_CONF_OPTS += --disable-pcre
|
|
endif
|
|
|
|
# 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
|
|
|
|
$(eval $(autotools-package))
|