1995-02-12 16:31:45 +00:00
|
|
|
# New ports collection makefile for: zsh
|
1995-04-30 12:11:43 +00:00
|
|
|
# Date created: 11 Feb. 1995
|
|
|
|
# Whom: torstenb
|
1995-02-12 16:31:45 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1995-02-12 16:31:45 +00:00
|
|
|
#
|
|
|
|
|
2003-07-20 04:18:18 +00:00
|
|
|
# The following compile-time options are available:
|
2007-03-21 17:36:19 +00:00
|
|
|
# NO_SHARED=yes compile a static version of zsh
|
2003-07-20 04:18:18 +00:00
|
|
|
# (default: use dynamically loadable modules)
|
|
|
|
# WITHOUT_ZSH_MEM=yes disable zsh-mem and zsh-secure-free options
|
|
|
|
# (default: on)
|
|
|
|
# WITHOUT_ZSH_MAILDIR=yes disable support for Maildirs in MAIL and MAILPATH
|
|
|
|
# (default: on)
|
2006-09-20 11:43:20 +00:00
|
|
|
# WITHOUT_ZSH_MULTIBYTE=yes disable multibyte character support
|
2006-04-30 23:41:54 +00:00
|
|
|
# (default: on)
|
2003-07-20 04:18:18 +00:00
|
|
|
# ZSH_ETCDIR=<dir> directory for zsh system-wide configuration files:
|
|
|
|
# zshenv, zlogin, zprofile, zshrc, zlogout.
|
|
|
|
# e.g. use this to put config files inside ${PREFIX}
|
|
|
|
# (default: /etc)
|
|
|
|
# NOTE: does NOT have to be inside ${PREFIX} tree
|
|
|
|
# ZSH_FNDIR=<dir> directory for zsh functions (part of distribution)
|
|
|
|
# (default: ${PREFIX}/share/zsh/${ZSH_VER}/functions)
|
|
|
|
# NOTE: should be inside ${PREFIX} tree
|
|
|
|
# ZSH_SITEFNDIR=<dir> directory for zsh site functions (locally developed)
|
|
|
|
# (default: ${PREFIX}/share/zsh/site-functions)
|
|
|
|
# NOTE: does NOT have to be inside ${PREFIX} tree
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= zsh
|
2006-04-30 23:41:54 +00:00
|
|
|
PORTVERSION= 4.3.2
|
2006-09-20 11:43:20 +00:00
|
|
|
PORTREVISION= 1
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= shells
|
2006-11-21 22:19:45 +00:00
|
|
|
MASTER_SITES= http://zsh.open-mirror.com/ \
|
2004-08-25 04:43:55 +00:00
|
|
|
http://www.zsh.org/pub/ \
|
|
|
|
ftp://ftp.zsh.org/pub/ \
|
2005-04-19 17:56:18 +00:00
|
|
|
http://mirrors.dotsrc.org/zsh/ \
|
|
|
|
ftp://mirrors.dotsrc.org/zsh/ \
|
2004-08-24 16:05:58 +00:00
|
|
|
ftp://ftp.funet.fi/pub/unix/shells/zsh/ \
|
2005-04-19 17:56:18 +00:00
|
|
|
ftp://nephtys.lip6.fr/pub/unix/shells/zsh/ \
|
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/shells/zsh/ \
|
|
|
|
http://www.cs.elte.hu/pub/zsh/ \
|
|
|
|
ftp://ftp.cs.elte.hu/pub/zsh/ \
|
2004-08-24 16:05:58 +00:00
|
|
|
ftp://ftp.kfki.hu/pub/packages/zsh/ \
|
2005-04-19 17:56:18 +00:00
|
|
|
ftp://ftp.math.technion.ac.il/pub/zsh/ \
|
|
|
|
ftp://ftp.demon.nl/pub/mirrors/zsh/ \
|
|
|
|
ftp://ftp.kappa.ro/pub/mirrors/ftp.zsh.org/pub/zsh/ \
|
|
|
|
ftp://ftp.lysator.liu.se/pub/unix/zsh/ \
|
2006-11-21 22:19:45 +00:00
|
|
|
ftp://sunsite.org.uk/package/zsh/
|
2003-07-20 04:18:18 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${ZSH_VER}
|
2001-07-03 04:47:28 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-20 04:18:18 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-doc${EXTRACT_SUFX}
|
2001-07-03 04:47:28 +00:00
|
|
|
.endif
|
1995-04-11 19:26:36 +00:00
|
|
|
|
2003-10-23 05:42:49 +00:00
|
|
|
MAINTAINER?= sergei@FreeBSD.org
|
2003-02-18 05:58:39 +00:00
|
|
|
COMMENT?= The Z shell
|
1995-05-04 21:27:52 +00:00
|
|
|
|
2001-06-03 18:43:08 +00:00
|
|
|
ZSH_VER= ${PORTVERSION}
|
2003-07-20 04:18:18 +00:00
|
|
|
# Conflicts with shells/zsh-devel as it installs files into the same locations
|
2004-08-24 14:04:39 +00:00
|
|
|
CONFLICTS= zsh-devel-[0-9]* zsh-4.1.*
|
2003-07-20 04:18:18 +00:00
|
|
|
|
2004-03-24 07:03:01 +00:00
|
|
|
USE_BZIP2= yes
|
1995-04-11 19:26:36 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-07-03 04:47:28 +00:00
|
|
|
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-09-27 12:20:52 +00:00
|
|
|
CONFIGURE_ARGS= --with-curses-terminfo --with-tcsetpgrp \
|
|
|
|
--enable-etcdir=${ZSH_ETCDIR} \
|
2003-07-20 04:18:18 +00:00
|
|
|
--enable-fndir=${ZSH_FNDIR} --enable-function-subdirs \
|
|
|
|
--enable-site-fndir=${ZSH_SITEFNDIR}
|
2001-07-03 04:47:28 +00:00
|
|
|
|
2003-07-20 04:18:18 +00:00
|
|
|
.if !defined(WITHOUT_ZSH_MEM)
|
|
|
|
CONFIGURE_ARGS+= --enable-zsh-mem --enable-zsh-secure-free
|
|
|
|
.endif
|
2001-07-03 04:47:28 +00:00
|
|
|
|
2003-07-20 04:18:18 +00:00
|
|
|
.if !defined(WITHOUT_ZSH_MAILDIR)
|
|
|
|
CONFIGURE_ARGS+= --enable-maildir-support
|
|
|
|
.endif
|
1995-05-06 12:31:49 +00:00
|
|
|
|
2007-03-21 17:36:19 +00:00
|
|
|
.if defined(NO_SHARED)
|
2003-07-21 12:42:34 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -static"
|
2003-07-20 04:18:18 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-dynamic
|
|
|
|
PLIST_SUB+= NO_STATIC="@comment "
|
2001-06-03 18:43:08 +00:00
|
|
|
.else
|
2003-07-20 04:18:18 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-dynamic
|
|
|
|
PLIST_SUB+= NO_STATIC=""
|
2000-05-19 19:03:06 +00:00
|
|
|
.endif
|
1996-12-19 11:31:22 +00:00
|
|
|
|
2003-07-20 04:18:18 +00:00
|
|
|
# These variables can be overriden by user
|
|
|
|
ZSH_ETCDIR?= /etc
|
|
|
|
ZSH_FNDIR?= ${DATADIR}/${ZSH_VER}/functions
|
|
|
|
ZSH_SITEFNDIR?= ${DATADIR}/site-functions
|
|
|
|
|
|
|
|
PLIST_SUB+= ZSH_VER="${ZSH_VER}" ZSHETCDIR="${ZSH_ETCDIR}" \
|
|
|
|
ZSH_FNDIR="${ZSH_FNDIR:S!${PREFIX}/!!}" \
|
|
|
|
ZSH_SITEFNDIR="${ZSH_SITEFNDIR}"
|
|
|
|
|
|
|
|
MAN1= zsh.1 zshbuiltins.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 \
|
|
|
|
zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 zshoptions.1 \
|
2006-04-30 23:41:54 +00:00
|
|
|
zshparam.1 zshroadmap.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 \
|
|
|
|
zshall.1
|
2003-07-20 04:18:18 +00:00
|
|
|
DOCS= LICENCE META-FAQ README Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ \
|
2006-04-30 23:41:54 +00:00
|
|
|
Etc/completion-style-guide Doc/zsh*.html Doc/zsh.dvi
|
2003-07-20 04:18:18 +00:00
|
|
|
EXAMPLES= zlogin zshenv zshrc
|
2001-07-03 04:47:28 +00:00
|
|
|
|
2005-09-06 12:53:34 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-05-02 09:03:06 +00:00
|
|
|
.if ${OSVERSION} >= 500000 && !defined(WITHOUT_ZSH_MULTIBYTE)
|
|
|
|
CONFIGURE_ARGS+= --enable-multibyte
|
|
|
|
.endif
|
|
|
|
|
2005-09-06 12:53:34 +00:00
|
|
|
.if ${OSVERSION} >= 503000
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-bsdtar
|
|
|
|
.endif
|
|
|
|
|
2004-08-24 14:04:39 +00:00
|
|
|
post-patch:
|
2005-09-06 12:53:34 +00:00
|
|
|
${REINPLACE_CMD} -e "s,link=dynamic,link=either," \
|
|
|
|
${WRKSRC}/Src/Modules/*.mdd
|
|
|
|
${REINPLACE_CMD} -e "s,/etc/,${LOCALBASE}/etc/," \
|
|
|
|
${WRKSRC}/Functions/MIME/zsh-mime-setup
|
|
|
|
${RM} -f ${WRKSRC}/Functions/MIME/zsh-mime-setup.bak
|
2006-09-20 11:43:20 +00:00
|
|
|
${RM} -f ${WRKSRC}/Completion/X/Command/_acroread.orig
|
2005-09-06 12:53:34 +00:00
|
|
|
.if ${OSVERSION} >= 503000
|
|
|
|
${RM} -f ${WRKSRC}/Completion/Unix/Type/_tar_archive.orig
|
|
|
|
.endif
|
2004-08-24 14:04:39 +00:00
|
|
|
|
1999-12-07 18:43:06 +00:00
|
|
|
post-build:
|
2003-07-20 04:18:18 +00:00
|
|
|
# Fix ".so" macro problem by using "soelim" command.
|
|
|
|
${LN} -sf ${WRKSRC}/Doc ${WRKSRC}/man1
|
|
|
|
${MV} ${WRKSRC}/Doc/zshall.1 ${WRKSRC}/Doc/zshall.1.source
|
|
|
|
cd ${WRKSRC} && /usr/bin/soelim ${WRKSRC}/Doc/zshall.1.source > \
|
|
|
|
${WRKSRC}/Doc/zshall.1
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-08-24 14:04:39 +00:00
|
|
|
@${MKDIR} ${PREFIX}/info
|
2006-04-30 23:41:54 +00:00
|
|
|
makeinfo --no-split --output=${WRKSRC}/Doc/zsh.info \
|
2004-08-24 14:04:39 +00:00
|
|
|
${WRKSRC}/Doc/zsh.texi
|
2006-04-30 23:41:54 +00:00
|
|
|
|
|
|
|
INFO= zsh
|
2003-07-20 04:18:18 +00:00
|
|
|
.endif
|
1999-12-07 18:43:06 +00:00
|
|
|
|
1997-06-16 11:51:14 +00:00
|
|
|
post-install:
|
2004-08-24 14:04:39 +00:00
|
|
|
${LN} ${PREFIX}/bin/zsh ${PREFIX}/bin/rzsh
|
2003-07-20 04:18:18 +00:00
|
|
|
${TEST} -d ${ZSH_ETCDIR} || ${MKDIR} ${ZSH_ETCDIR}
|
|
|
|
${TEST} -d ${ZSH_SITEFNDIR} || ${MKDIR} ${ZSH_SITEFNDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/StartupFiles && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
2001-07-03 04:47:28 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-20 04:18:18 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2006-04-30 23:41:54 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/zsh.info ${PREFIX}/info/zsh.info
|
2003-07-20 04:18:18 +00:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} "Updating /etc/shells"
|
1998-08-27 02:33:51 +00:00
|
|
|
@${CP} /etc/shells /etc/shells.bak
|
2005-09-06 12:53:34 +00:00
|
|
|
@(${GREP} -v ${PREFIX}/bin/zsh /etc/shells.bak; \
|
|
|
|
${ECHO_CMD} ${PREFIX}/bin/zsh) > /etc/shells
|
1998-08-27 02:33:51 +00:00
|
|
|
@${RM} /etc/shells.bak
|
1997-06-16 11:51:14 +00:00
|
|
|
|
2005-09-06 12:53:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|