# $NetBSD: Makefile.common,v 1.7 2004/02/19 06:37:27 jlam 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 # The zsh build process inspects the generated config.status file for the # presence of some strings to decide how to build zsh. This is, of course, # a stupid thing to do, but we must not override config.status to "fix" # this build. # CONFIG_STATUS_OVERRIDE= # empty USE_MAKEINFO= YES INFO_FILES= zsh.info .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 INSTALL_TARGET= install install.info post-install: @${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