summaryrefslogtreecommitdiff
path: root/shells/zsh/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'shells/zsh/Makefile.common')
-rw-r--r--shells/zsh/Makefile.common65
1 files changed, 65 insertions, 0 deletions
diff --git a/shells/zsh/Makefile.common b/shells/zsh/Makefile.common
new file mode 100644
index 00000000000..aa414235ae5
--- /dev/null
+++ b/shells/zsh/Makefile.common
@@ -0,0 +1,65 @@
+# $NetBSD: Makefile.common,v 1.1 2003/06/29 04:24:56 uebayasi Exp $
+
+DISTNAME= zsh-${ZSH_VERSION}
+CATEGORIES= shells
+MASTER_SITES= ftp://sunsite.dk/pub/unix/shells/zsh/ \
+ ftp://ftp.fu-berlin.de/pub/unix/shells/zsh/ \
+ ftp://ftp.lysator.liu.se/pub/unix/zsh/ \
+ ftp://ftp.funet.fi/pub/unix/shells/zsh/ \
+ http://www.math.technion.ac.il/pub/zsh/ \
+ ftp://ftp.zsh.org/zsh/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= ${ZSH_MAINTAINER}
+HOMEPAGE= http://sunsite.dk/zsh/
+COMMENT= The Z shell
+
+USE_BUILDLINK2= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+INFO_FILES= zsh.info
+TEXINFO_OVERRIDE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(ZSH_STATIC)
+CONFIGURE_ARGS+=--disable-dynamic
+LDFLAGS+= -static
+.else
+.if ${OPSYS} == "SunOS"
+PLIST_SRC= ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
+.else
+LDFLAGS+= -Wl,${RPATH_FLAG}${PREFIX}/lib/zsh
+PLIST_SRC= ${PKGDIR}/PLIST.shlibs ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
+.endif
+.endif
+
+.undef MANZ
+
+PKG_SHELL= ${PREFIX}/bin/zsh
+
+post-install:
+ @cd ${WRKSRC}/Doc; ${MAKE} install.info
+ @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zsh
+ @cd ${WRKSRC}/Etc; ${INSTALL_DATA} BUGS FAQ FEATURES NEWS \
+ ${PREFIX}/share/doc/zsh
+
+# Utilize Zsh's test framework.
+#
+.PHONY: do-test do-su-test real-su-test
+
+do-test: do-su-test
+
+do-su-test:
+ @${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO_MSG} "*** Warning: This test needs to be run as root"
+ @${_PKG_SILENT}${_PKG_DEBUG} \
+ realtarget="real-su-test"; \
+ action="install"; \
+ ${_SU_TARGET}
+
+real-su-test:
+ @${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO_MSG} "${_PKGSRC_IN}> Testing for ${PKGNAME}"
+ @cd ${WRKSRC} && ${MAKE} check
+ @cd ${WRKSRC}/Test && ${MAKE} clean