Annotation of pkgsrc/lang/tcl/Makefile, Revision 1.32
1.32 ! minskim 1: # $NetBSD: Makefile,v 1.31 2004/04/09 23:37:28 danw Exp $
1.1 jwise 2: #
3:
1.27 minskim 4: DISTNAME= tcl8.4.6-src
5: PKGNAME= tcl-8.4.6
1.32 ! minskim 6: PKGREVISION= 4
1.1 jwise 7: CATEGORIES= lang
1.26 minskim 8: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
1.1 jwise 9:
1.20 grant 10: MAINTAINER= jwise@NetBSD.org
1.26 minskim 11: HOMEPAGE= http://www.tcl.tk/
1.6 agc 12: COMMENT= Ousterhout's Tool Command Language, a scripting language
1.2 jwise 13:
1.12 jlam 14: CONFLICTS+= tclman80-[0-9]*
1.1 jwise 15:
1.22 jlam 16: PKG_INSTALLATION_TYPES= overwrite pkgviews
17:
1.26 minskim 18: WRKSRC= ${WRKDIR}/${DISTNAME:C/-src//}/unix
1.1 jwise 19: GNU_CONFIGURE= yes
1.10 jlam 20: MAKE_ENV+= TOUCH="${TOUCH}"
1.17 dillo 21: TEST_TARGET= test
1.1 jwise 22:
1.22 jlam 23: USE_BUILDLINK3= yes
1.1 jwise 24: USE_LIBTOOL= yes
25:
26: INSTALL_TARGET= install
27:
1.10 jlam 28: # Initially install the man pages into ${WRKDIR}/man, as we need a staged
29: # install to avoid overwriting existing manpages in ${PREFIX}/man.
30: #
1.30 jlam 31: CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
32: CONFIGURE_ARGS+= --enable-threads
1.11 jlam 33:
1.22 jlam 34: # Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages.
35: CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl"
36:
1.11 jlam 37: .include "../../mk/bsd.prefs.mk"
1.21 jschauma 38:
1.11 jlam 39: # NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug
40: # tickled by the Tcl code that manifests in code generation problems.
41: #
42: .if (${MACHINE_PLATFORM:MNetBSD-1.5*-m68k} != "")
43: CONFIGURE_ENV+= COMPILER_OPTIMIZATION_BUG=YES
44: .endif
1.10 jlam 45:
1.30 jlam 46: .include "../../mk/pthread.buildlink3.mk"
47:
1.10 jlam 48: # Modify mkLinks script to remove the short-filename manpage if it was
49: # linked to a longer filename.
50: #
51: post-patch:
52: @cd ${WRKSRC}; \
53: ${MV} -f mkLinks mkLinks.tmp; \
54: ${GREP} -v "^exit 0" mkLinks.tmp > mkLinks; \
55: ${CAT} mkLinks.tmp \
1.26 minskim 56: | ${AWK} '/^ *ln / { print $$3 }' \
1.10 jlam 57: | ${SORT} -u \
58: | ${GREP} -v ".*\.n" \
59: | ${SED} -e "s,^,${RM} -f ," \
60: >> mkLinks; \
61: ${RM} -f mkLinks.tmp; \
62: ${CHMOD} +x mkLinks;
1.15 jlam 63:
1.1 jwise 64: post-install:
1.24 minskim 65: cd ${WRKDIR} && ${PAX} -rwpm man ${PREFIX}
1.25 minskim 66: ${RM} -rf ${WRKDIR}/man
1.26 minskim 67: cd ${PREFIX}/bin && ${LN} -s tclsh8.4 tclsh
1.7 hubertf 68: ${INSTALL_DATA_DIR} ${PREFIX}/include/tcl
69: ${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/unix
70: ${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/generic
1.1 jwise 71: ${INSTALL_DATA} ${WRKSRC}/tclUnixPort.h ${PREFIX}/include/tcl/unix
1.32 ! minskim 72: .for f in regex.h tcl.h tclCompile.h tclDecls.h tclIO.h \
! 73: tclInitScript.h tclInt.h tclIntDecls.h tclIntPlatDecls.h\
! 74: tclMath.h tclPlatDecls.h tclPort.h tclRegexp.h
! 75: ${INSTALL_DATA} ${WRKSRC}/../generic/${f} ${PREFIX}/include/tcl/generic
! 76: .endfor
1.1 jwise 77:
78: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>