summaryrefslogtreecommitdiff
path: root/lang/tcl/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-30 18:24:17 +0000
committerjlam <jlam@pkgsrc.org>2001-06-30 18:24:17 +0000
commit898abf64ac1b967132128da6d1bd47b14ff843e8 (patch)
tree7f86683cb6dd7fe99e5b906f3b0bec0ac054d99d /lang/tcl/Makefile
parent83283045729d159eedd4b22602236c740d498ed1 (diff)
downloadpkgsrc-898abf64ac1b967132128da6d1bd47b14ff843e8.tar.gz
- Don't install the short names for section 3 manpages as the names are
too generic, e.g. Hash, Object, Access. Approved by jwise@netbsd.org. - Touch ${TCL_LIB_FILE} after the build so that the library isn't relinked during installation.
Diffstat (limited to 'lang/tcl/Makefile')
-rw-r--r--lang/tcl/Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile
index 896392b122a..4b4fba7fc98 100644
--- a/lang/tcl/Makefile
+++ b/lang/tcl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2001/06/21 18:07:51 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2001/06/30 18:24:17 jlam Exp $
#
DISTNAME= tcl8.3.2
@@ -17,13 +17,38 @@ CONFLICTS+= tclman80-*
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
GNU_CONFIGURE= yes
+MAKE_ENV+= TOUCH="${TOUCH}"
USE_BUILDLINK_ONLY= yes
USE_LIBTOOL= yes
INSTALL_TARGET= install
+# Initially install the man pages into ${WRKDIR}/man, as we need a staged
+# install to avoid overwriting existing manpages in ${PREFIX}/man.
+#
+CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
+
+# Modify mkLinks script to remove the short-filename manpage if it was
+# linked to a longer filename.
+#
+post-patch:
+ @cd ${WRKSRC}; \
+ ${MV} -f mkLinks mkLinks.tmp; \
+ ${GREP} -v "^exit 0" mkLinks.tmp > mkLinks; \
+ ${CAT} mkLinks.tmp \
+ | ${AWK} '/^ *ln / { print $$2 }' \
+ | ${SORT} -u \
+ | ${GREP} -v ".*\.n" \
+ | ${SED} -e "s,^,${RM} -f ," \
+ >> mkLinks; \
+ ${RM} -f mkLinks.tmp; \
+ ${CHMOD} +x mkLinks;
+
post-install:
+ ${CHMOD} -R ugo-w ${WRKDIR}/man
+ cd ${WRKDIR}; ${PAX} -rw man ${PREFIX}
+ ${CHMOD} -R ug+rw ${WRKDIR}/man
cd ${PREFIX}/bin && ${LN} -s tclsh8.3 tclsh
${INSTALL_DATA_DIR} ${PREFIX}/include/tcl
${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/unix