9813468816
+SHELL. * Turn PKG_REGISTER_SHELLS into a variable that can be set in the shell environment so that admins can make a choice when installing from binary packages. * PKG_SHELL is now a list of paths, and if the path is relative, then it is taken to be relative to ${PREFIX}. Convert packages that set PKG_SHELL to take advantage of this new feature by changing the full paths to the shells into relative paths.
89 lines
2.3 KiB
Makefile
89 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.51 2005/07/29 18:32:18 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= tcsh-6.14.00
|
|
CATEGORIES= shells
|
|
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ \
|
|
ftp://ftp.gw.com/pub/unix/tcsh/ \
|
|
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/
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
HOMEPAGE= http://www.tcsh.org/
|
|
COMMENT= Extended C-shell with many useful features
|
|
|
|
CONFLICTS= static-tcsh-[0-9]*
|
|
|
|
USE_PKGINSTALL= yes
|
|
GNU_CONFIGURE= yes
|
|
BUILD_TARGET= all catalogs
|
|
INSTALL_TARGET= install install.man
|
|
|
|
NLSDIR= share/nls
|
|
PLIST_SRC= ${WRKDIR}/PLIST-src
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
OS_VER_cmd= ${ECHO} ${OS_VERSION} | ${SED} -e 's|5\.|2.|'
|
|
LOWER_OPSYS= solaris${OS_VER_cmd:sh}
|
|
.endif
|
|
|
|
PKG_SHELL?= bin/tcsh
|
|
|
|
post-install:
|
|
@${ECHO} "Installing message catalogues"
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
@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 ]; \
|
|
do \
|
|
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; \
|
|
fi
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|