2d8a6afd46
Please list exceptions explicitly.
120 lines
3.2 KiB
Text
120 lines
3.2 KiB
Text
# $NetBSD: Makefile.common,v 1.45 2008/06/16 12:39:48 joerg 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.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://zsh.dotsrc.org/
|
|
COMMENT= The Z shell
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-etcdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
USE_TOOLS+= makeinfo
|
|
INFO_FILES= # PLIST
|
|
TEXINFO_REQD= 4.0
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# Handle any PKG_OPTIONS that this package might have.
|
|
.sinclude "options.mk"
|
|
|
|
BUILD_DEFS+= ZSH_STATIC
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.if defined(ZSH_STATIC) && !empty(ZSH_STATIC:M[Yy][Ee][Ss])
|
|
CONFIGURE_ARGS+= --disable-dynamic
|
|
|
|
NETBSD_SHLINKER= /libexec/ld.elf_so
|
|
NETBSD_SHLIBDIR= /lib
|
|
|
|
. if ${OPSYS} == "NetBSD" && \
|
|
defined(OBJECT_FMT) && ${OBJECT_FMT} == "ELF" && \
|
|
defined(MKDYNAMICROOT) && ${MKDYNAMICROOT} != "no" && \
|
|
defined(NETBSD_SHLINKER) && exists(${NETBSD_SHLINKER}) && \
|
|
defined(NETBSD_SHLIBDIR) && exists(${NETBSD_SHLIBDIR})
|
|
#
|
|
# Built a dynamically linked "zsh" binary on NetBSD systems which use
|
|
# dynamically linked binaries on the root filesystem. The binary will
|
|
# only depend on the run-time link-editor and shared libraries on the
|
|
# root filesystem. We use "-rpath" below by purpose because the
|
|
# buildlink 3 framework won't filter it out.
|
|
#
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= ${NETBSD_SHLIBDIR}
|
|
|
|
LDFLAGS+= -Wl,-dynamic-linker=${NETBSD_SHLINKER} -Wl,-R${NETBSD_SHLIBDIR}
|
|
. else
|
|
LDFLAGS+= -static
|
|
. endif
|
|
.else
|
|
. if ${OPSYS} == "SunOS"
|
|
PLIST_SRC= ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
|
|
. else
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/zsh
|
|
|
|
. if ${OPSYS} == "Linux" || ${OPSYS} == "IRIX" || ${OPSYS} == "OpenBSD"
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.terminfo
|
|
. elif ${OPSYS} == "Interix" || ${OPSYS} == "DragonFly" || \
|
|
${OPSYS} == "FreeBSD"
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.terminfo ${PKGDIR}/PLIST.shlibs
|
|
. else
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.shlibs
|
|
. endif
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
|
|
. endif
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Interix"
|
|
CONFIGURE_ARGS+=--without-tcsetpgrp
|
|
.else
|
|
CONFIGURE_ARGS+=--with-tcsetpgrp
|
|
.endif
|
|
|
|
.undef MANZ
|
|
|
|
PKG_SHELL= bin/zsh
|
|
|
|
INSTALL_TARGET= install install.info
|
|
|
|
pre-install:
|
|
@cd ${WRKSRC}/Completion; ${FIND} . -name \*.orig -exec ${RM} \{\} \;
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/zsh
|
|
cd ${WRKSRC}/Etc && ${INSTALL_DATA} BUGS FAQ \
|
|
${DESTDIR}${PREFIX}/share/doc/zsh
|
|
cd ${WRKSRC} && ${INSTALL_DATA} FEATURES NEWS \
|
|
${DESTDIR}${PREFIX}/share/doc/zsh
|
|
|
|
# Utilize Zsh's test framework.
|
|
# Testing of dynamic shell only works after install has been done
|
|
#
|
|
.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
|