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 # Patching configure.ac
14 ZSH_LICENSE
= MIT-like
15 ZSH_LICENSE_FILES
= LICENCE
17 ifeq ($(BR2_PACKAGE_GDBM
),y
)
18 ZSH_CONF_OPTS
+= --enable-gdbm
19 ZSH_DEPENDENCIES
+= gdbm
21 ZSH_CONF_OPTS
+= --disable-gdbm
24 ifeq ($(BR2_PACKAGE_LIBCAP
),y
)
25 ZSH_CONF_OPTS
+= --enable-cap
26 ZSH_DEPENDENCIES
+= libcap
28 ZSH_CONF_OPTS
+= --disable-cap
31 ifeq ($(BR2_PACKAGE_PCRE
),y
)
32 ZSH_CONF_OPTS
+= --enable-pcre
33 ZSH_CONF_ENV
+= ac_cv_prog_PCRECONF
=$(STAGING_DIR
)/usr
/bin
/pcre-config
34 ZSH_DEPENDENCIES
+= pcre
36 ZSH_CONF_OPTS
+= --disable-pcre
39 # Remove versioned zsh-x.y.z binary taking up space
40 define ZSH_TARGET_INSTALL_FIXUPS
41 rm -f
$(TARGET_DIR
)/bin
/zsh-
$(ZSH_VERSION
)
43 ZSH_POST_INSTALL_TARGET_HOOKS
+= ZSH_TARGET_INSTALL_FIXUPS
45 $(eval
$(autotools-package
))