aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-14 22:27:11 +0800
committerbapt <bapt@FreeBSD.org>2013-06-14 22:27:11 +0800
commitcf82ed04acdabe991acd388441a19cd1bc3b30d8 (patch)
tree2f71e2ff4509c4b1f94b99a7fe70b3b4dd88de5b /shells
parent81774889f016e139bd8541768fdc022008822ae8 (diff)
downloadfreebsd-ports-gnome-cf82ed04acdabe991acd388441a19cd1bc3b30d8.tar.gz
freebsd-ports-gnome-cf82ed04acdabe991acd388441a19cd1bc3b30d8.tar.zst
freebsd-ports-gnome-cf82ed04acdabe991acd388441a19cd1bc3b30d8.zip
Use new helpers
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/Makefile64
1 files changed, 16 insertions, 48 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index ada7763a3e2b..d4323bb86c95 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -54,62 +54,30 @@ PORTDOCS= *
PORTEXAMPLES= zlogin zshenv zshrc
SHELLS= /etc/shells
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+= ${DISTNAME}-doc${EXTRACT_SUFX}:doc
-.endif
-
-.if ${PORT_OPTIONS:MGDBM}
-LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
-PLIST_SUB+= GDBM=""
-.else
-CONFIGURE_ARGS+= --disable-gdbm
-PLIST_SUB+= GDBM="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MPCRE}
-CONFIGURE_ARGS+= --enable-pcre
-LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre
-PLIST_SUB+= PCRE=""
-.else
-CONFIGURE_ARGS+= --disable-pcre
-PLIST_SUB+= PCRE="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMEM}
-CONFIGURE_ARGS+= --enable-zsh-mem
-.endif
-
-.if ${PORT_OPTIONS:MSECURE_FREE}
-CONFIGURE_ARGS+= --enable-zsh-secure-free
-.endif
+OPTIONS_SUB= yes
+
+DOCS_DISTFILES= ${DISTNAME}-doc${EXTRACT_SUFX}:doc
+GDBM_LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm
+GDBM_CONFIGURE_ENABLE= gdbm
+PCRE_LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
+PCRE_CONFIGURE_ENABLE= pcre
+MEM_CONFIGURE_ENABLE= zsh-mem
+SECURE_FREE_CONFIGURE_ENABLE= zsh-secure-free
+MAILDIR_CONFIGURE_ENABLE= maildit-support
+STATIC_LDFLAGS= -static
+STATIC_CONFIGURE_ON= --disable-dynamic
+STATIC_CONFIGURE_OFF= --disable-dynamic
+DEBUG_CONFIGURE_ENABLE= zsh-debug
+MULTIBYTE_CONFIGURE_ENABLE= multibyte
-.if ${PORT_OPTIONS:MMAILDIR}
-CONFIGURE_ARGS+= --enable-maildir-support
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSTATIC}
-LDFLAGS+= -static
-CONFIGURE_ARGS+= --disable-dynamic
PLIST_SUB+= SHARED="@comment "
.else
-CONFIGURE_ARGS+= --enable-dynamic
PLIST_SUB+= SHARED=""
.endif
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --enable-zsh-debug
-.else
-CONFIGURE_ARGS+= --disable-zsh-debug
-.endif
-
-.if ${PORT_OPTIONS:MMULTIBYTE}
-CONFIGURE_ARGS+= --enable-multibyte
-.else
-CONFIGURE_ARGS+= --disable-multibyte
-.endif
-
post-patch:
@${REINPLACE_CMD} -e '/LIBS/s/-lrt//' ${WRKSRC}/configure
@${SED} -i "" -e "s,link=dynamic,link=either," \