Annotation of pkgsrc/x11/tk/Makefile, revision 1.15
1.15 ! jlam 1: # $NetBSD: Makefile,v 1.14 2001/10/23 13:15:09 jlam Exp $
1.1 jwise 2:
3: DISTNAME= tk8.3.2
1.8 jlam 4: PKGNAME= tk-8.3.2nb1
1.1 jwise 5: CATEGORIES= x11
1.2 tron 6: MASTER_SITES= ftp://ftp.scriptics.com/pub/tcl/tcl8_3/ \
7: ftp://ftp.informatik.uni-hamburg.de/pub/soft/lang/tcl/tcl8_3/
1.1 jwise 8:
9: MAINTAINER= [email protected]
10: HOMEPAGE= http://www.tcltk.com/
1.6 wiz 11: COMMENT= Graphical toolkit for TCL
1.1 jwise 12:
1.9 jlam 13: WRKSRC= ${WRKDIR}/${DISTNAME}/unix
14: GNU_CONFIGURE= yes
15: CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_DIR}/lib
1.11 jlam 16: MAKE_ENV+= TOUCH="${TOUCH}"
1.9 jlam 17:
18: USE_X11= yes
1.13 jlam 19: USE_LIBTOOL= yes
1.9 jlam 20: USE_BUILDLINK_ONLY= yes
1.13 jlam 21: REPLACE_BUILDLINK+= tkConfig.sh
1.10 jlam 22:
1.12 jlam 23: # Initially install the man pages into ${WRKDIR}/man, as we need a staged
24: # install to avoid overwriting existing manpages in ${PREFIX}/man.
25: #
26: CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
27:
28: # Modify mkLinks script to remove the short-filename manpage if it was
29: # linked to a longer filename.
30: #
31: post-patch:
32: @cd ${WRKSRC}; \
33: ${MV} -f mkLinks mkLinks.tmp; \
34: ${GREP} -v "^exit 0" mkLinks.tmp > mkLinks; \
35: ${CAT} mkLinks.tmp \
36: | ${AWK} '/^ *ln / { print $$2 }' \
37: | ${SORT} -u \
38: | ${GREP} -v ".*\.n" \
39: | ${SED} -e "s,^,${RM} -f ," \
40: >> mkLinks; \
41: ${RM} -f mkLinks.tmp; \
42: ${CHMOD} +x mkLinks;
1.1 jwise 43:
44: post-install:
1.12 jlam 45: ${CHMOD} -R ugo-w ${WRKDIR}/man
46: cd ${WRKDIR}; ${PAX} -rw man ${PREFIX}
47: ${CHMOD} -R ug+rw ${WRKDIR}/man
1.4 agc 48: ${RM} -f ${PREFIX}/bin/wish
1.1 jwise 49: cd ${PREFIX}/bin && ${LN} -s wish8.3 wish
1.7 hubertf 50: ${INSTALL_DATA_DIR} ${PREFIX}/include/tk
51: ${INSTALL_DATA_DIR} ${PREFIX}/include/tk/generic
52: ${INSTALL_DATA_DIR} ${PREFIX}/include/tk/unix
1.3 jwise 53: ${INSTALL_DATA} ${WRKSRC}/../generic/default.h ${PREFIX}/include/tk/generic
1.1 jwise 54: ${INSTALL_DATA} ${WRKSRC}/../generic/tk.h ${PREFIX}/include/tk/generic
55: ${INSTALL_DATA} ${WRKSRC}/../generic/tk3d.h ${PREFIX}/include/tk/generic
56: ${INSTALL_DATA} ${WRKSRC}/../generic/tkButton.h ${PREFIX}/include/tk/generic
57: ${INSTALL_DATA} ${WRKSRC}/../generic/tkCanvas.h ${PREFIX}/include/tk/generic
58: ${INSTALL_DATA} ${WRKSRC}/../generic/tkColor.h ${PREFIX}/include/tk/generic
59: ${INSTALL_DATA} ${WRKSRC}/../generic/tkDecls.h ${PREFIX}/include/tk/generic
60: ${INSTALL_DATA} ${WRKSRC}/../generic/tkFileFilter.h ${PREFIX}/include/tk/generic
61: ${INSTALL_DATA} ${WRKSRC}/../generic/tkFont.h ${PREFIX}/include/tk/generic
62: ${INSTALL_DATA} ${WRKSRC}/../generic/tkInitScript.h ${PREFIX}/include/tk/generic
63: ${INSTALL_DATA} ${WRKSRC}/../generic/tkInt.h ${PREFIX}/include/tk/generic
64: ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntDecls.h ${PREFIX}/include/tk/generic
65: ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntPlatDecls.h ${PREFIX}/include/tk/generic
66: ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntXlibDecls.h ${PREFIX}/include/tk/generic
67: ${INSTALL_DATA} ${WRKSRC}/../generic/tkMenu.h ${PREFIX}/include/tk/generic
68: ${INSTALL_DATA} ${WRKSRC}/../generic/tkMenubutton.h ${PREFIX}/include/tk/generic
69: ${INSTALL_DATA} ${WRKSRC}/../generic/tkPlatDecls.h ${PREFIX}/include/tk/generic
70: ${INSTALL_DATA} ${WRKSRC}/../generic/tkPort.h ${PREFIX}/include/tk/generic
71: ${INSTALL_DATA} ${WRKSRC}/../generic/tkScale.h ${PREFIX}/include/tk/generic
72: ${INSTALL_DATA} ${WRKSRC}/../generic/tkScrollbar.h ${PREFIX}/include/tk/generic
73: ${INSTALL_DATA} ${WRKSRC}/../generic/tkSelect.h ${PREFIX}/include/tk/generic
74: ${INSTALL_DATA} ${WRKSRC}/../generic/tkText.h ${PREFIX}/include/tk/generic
75: ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixDefault.h ${PREFIX}/include/tk/unix
76: ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixInt.h ${PREFIX}/include/tk/unix
77: ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixPort.h ${PREFIX}/include/tk/unix
78:
79: test:
80: cd ${WRKSRC}; ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test
81:
1.15 ! jlam 82: .include "../../lang/tcl/buildlink.mk"
1.14 jlam 83: .include "../../mk/x11.buildlink.mk"
1.1 jwise 84: .include "../../mk/bsd.pkg.mk"
CVSweb <[email protected]>