1 ################################################################################
5 ################################################################################
8 ZSH_SITE
= http
://www.zsh.org
/pub
9 ZSH_SOURCE
= zsh-
$(ZSH_VERSION
).
tar.xz
10 ZSH_DEPENDENCIES
= ncurses
11 ZSH_CONF_OPTS
= --bindir=/bin
12 ZSH_LICENSE
= MIT-like
13 ZSH_LICENSE_FILES
= LICENCE
15 ifeq ($(BR2_PACKAGE_GDBM
),y
)
16 ZSH_CONF_OPTS
+= --enable-gdbm
17 ZSH_DEPENDENCIES
+= gdbm
19 ZSH_CONF_OPTS
+= --disable-gdbm
22 ifeq ($(BR2_PACKAGE_LIBCAP
),y
)
23 ZSH_CONF_OPTS
+= --enable-cap
24 ZSH_DEPENDENCIES
+= libcap
26 ZSH_CONF_OPTS
+= --disable-cap
29 ifeq ($(BR2_PACKAGE_PCRE
),y
)
30 ZSH_CONF_OPTS
+= --enable-pcre
31 ZSH_CONF_ENV
+= ac_cv_prog_PCRECONF
=$(STAGING_DIR
)/usr
/bin
/pcre-config
32 ZSH_DEPENDENCIES
+= pcre
34 ZSH_CONF_OPTS
+= --disable-pcre
37 # Remove versioned zsh-x.y.z binary taking up space
38 define ZSH_TARGET_INSTALL_FIXUPS
39 rm -f
$(TARGET_DIR
)/bin
/zsh-
$(ZSH_VERSION
)
41 ZSH_POST_INSTALL_TARGET_HOOKS
+= ZSH_TARGET_INSTALL_FIXUPS
43 $(eval
$(autotools-package
))