board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / zsh / zsh.mk
blob9d11b9713df0053d908a648252cf8ab899367fb1
1 ################################################################################
3 # zsh
5 ################################################################################
7 ZSH_VERSION = 5.3
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
18 else
19 ZSH_CONF_OPTS += --disable-gdbm
20 endif
22 ifeq ($(BR2_PACKAGE_LIBCAP),y)
23 ZSH_CONF_OPTS += --enable-cap
24 ZSH_DEPENDENCIES += libcap
25 else
26 ZSH_CONF_OPTS += --disable-cap
27 endif
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
33 else
34 ZSH_CONF_OPTS += --disable-pcre
35 endif
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)
40 endef
41 ZSH_POST_INSTALL_TARGET_HOOKS += ZSH_TARGET_INSTALL_FIXUPS
43 $(eval $(autotools-package))