2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.49 2005/04/11 21:47:21 tv Exp $
|
1997-10-24 16:14:32 +02:00
|
|
|
#
|
|
|
|
|
2005-03-25 20:13:24 +01:00
|
|
|
DISTNAME= tcsh-6.14.00
|
1997-10-24 16:14:32 +02:00
|
|
|
CATEGORIES= shells
|
1998-10-03 09:06:23 +02:00
|
|
|
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ \
|
|
|
|
ftp://ftp.gw.com/pub/unix/tcsh/ \
|
2005-03-25 20:13:24 +01:00
|
|
|
ftp://ftp.funet.fi/pub/unix/shells/tcsh/ \
|
|
|
|
\
|
|
|
|
ftp://ftp.astron.com/pub/tcsh/old/ \
|
|
|
|
ftp://ftp.gw.com/pub/unix/tcsh/old/ \
|
|
|
|
ftp://ftp.funet.fi/pub/unix/shells/tcsh/old/
|
1997-10-24 16:14:32 +02:00
|
|
|
|
1998-10-03 09:06:23 +02:00
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
2002-03-22 12:13:41 +01:00
|
|
|
HOMEPAGE= http://www.tcsh.org/
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= Extended C-shell with many useful features
|
1997-10-24 16:14:32 +02:00
|
|
|
|
2003-02-14 19:59:19 +01:00
|
|
|
CONFLICTS= static-tcsh-[0-9]*
|
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= yes
|
1998-10-03 09:06:23 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= all catalogs
|
1998-10-03 09:06:23 +02:00
|
|
|
INSTALL_TARGET= install install.man
|
1997-10-24 16:14:32 +02:00
|
|
|
|
1998-10-03 09:06:23 +02:00
|
|
|
NLSDIR= share/nls
|
1998-11-13 13:31:15 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST-src
|
1997-11-27 00:57:16 +01:00
|
|
|
|
1999-08-17 18:00:02 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2003-07-02 07:56:03 +02:00
|
|
|
OS_VER!= ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
|
|
|
|
LOWER_OPSYS= solaris${OS_VER}
|
1999-08-17 18:00:02 +02:00
|
|
|
.endif
|
|
|
|
|
2002-11-17 10:01:59 +01:00
|
|
|
PKG_SHELL?= ${PREFIX}/bin/tcsh
|
|
|
|
|
1997-10-24 16:14:32 +02:00
|
|
|
post-install:
|
1998-10-03 09:06:23 +02:00
|
|
|
@${ECHO} "Installing message catalogues"
|
1998-11-13 13:31:15 +01:00
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
2005-03-25 20:13:24 +01:00
|
|
|
@if [ -f ${WRKSRC}/tcsh.C.cat ]; \
|
|
|
|
then \
|
|
|
|
[ -d ${PREFIX}/${NLSDIR}/C ] || \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${NLSDIR}/C; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcsh.C.cat \
|
|
|
|
${PREFIX}/${NLSDIR}/C/tcsh.cat; \
|
|
|
|
${ECHO} ${NLSDIR}/C/tcsh.cat >> ${PLIST_SRC}; \
|
|
|
|
for i in \
|
|
|
|
et:ISO_8859-15:et:EE \
|
|
|
|
finnish:ISO_8859-1:fi:FI \
|
|
|
|
french:ISO_8859-1:fr:BE:CA:CH:FR \
|
|
|
|
german:ISO_8859-1:de:AT:CH:DE \
|
|
|
|
greek:ISO_8859-7:el:GR \
|
|
|
|
italian:ISO_8859-1:it:CH:IT \
|
|
|
|
ja:eucJP:ja:JP \
|
|
|
|
pl:ISO_8859-2:pl:PL \
|
|
|
|
russian:KOI8-R:ru:RU:SU \
|
|
|
|
spanish:ISO_8859-1:es:ES \
|
|
|
|
ukrainian:KOI8-U:uk:UA \
|
|
|
|
; \
|
|
|
|
do \
|
|
|
|
OIFS="${IFS}"; \
|
|
|
|
IFS=":${IFS}"; \
|
|
|
|
set -- $$i; \
|
|
|
|
IFS="${OIFS}"; \
|
|
|
|
l=$$1; shift; \
|
|
|
|
s=$$1; shift; \
|
|
|
|
c=$$1; shift; \
|
|
|
|
o=; \
|
|
|
|
while [ $$# -gt 0 ]; \
|
2003-05-05 18:40:28 +02:00
|
|
|
do \
|
2005-03-25 20:13:24 +01:00
|
|
|
d=${NLSDIR}/$${c}_$$1.$${s}; \
|
|
|
|
[ -d ${PREFIX}/$$d ] || \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/$$d; \
|
|
|
|
if [ -z "$$o" ]; \
|
|
|
|
then \
|
|
|
|
o="$$d"; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcsh.$${l}.cat \
|
|
|
|
${PREFIX}/$${d}/tcsh.cat; \
|
|
|
|
else \
|
|
|
|
${LN} -f ${PREFIX}/$${o}/tcsh.cat \
|
|
|
|
${PREFIX}/$${d}; \
|
|
|
|
fi; \
|
|
|
|
${ECHO} $${d}/tcsh.cat >> ${PLIST_SRC}; \
|
|
|
|
shift 1; \
|
|
|
|
done; \
|
|
|
|
done; \
|
2003-05-05 18:40:28 +02:00
|
|
|
fi
|
1997-10-24 16:14:32 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|