c487cb967a
in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
83 lines
3.6 KiB
Makefile
83 lines
3.6 KiB
Makefile
# $NetBSD: Makefile,v 1.37 2004/10/03 00:18:38 tv Exp $
|
|
|
|
DISTNAME= tk8.4.7-src
|
|
PKGNAME= tk-8.4.7
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
|
|
|
|
MAINTAINER= jwise@NetBSD.org
|
|
HOMEPAGE= http://www.tcl.tk/
|
|
COMMENT= Graphical toolkit for TCL
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/-src//}/unix
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
MAKE_ENV+= TOUCH="${TOUCH}"
|
|
|
|
USE_X11= yes
|
|
USE_LIBTOOL= yes
|
|
USE_BUILDLINK3= yes
|
|
TEST_TARGET= test
|
|
|
|
# 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
|
|
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
|
|
# 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 $$3 }' \
|
|
| ${SORT} -u \
|
|
| ${GREP} -v ".*\.n" \
|
|
| ${SED} -e "s,^,${RM} -f ," \
|
|
>> mkLinks; \
|
|
${RM} -f mkLinks.tmp; \
|
|
${CHMOD} +x mkLinks;
|
|
|
|
post-install:
|
|
cd ${WRKDIR} && ${PAX} -rwpm man ${PREFIX}
|
|
${RM} -rf ${WRKDIR}/man
|
|
${RM} -f ${PREFIX}/bin/wish
|
|
cd ${PREFIX}/bin && ${LN} -s wish8.4 wish
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/tk
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/tk/unix
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/default.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/ks_names.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tk.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tk3d.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkButton.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkCanvas.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkColor.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkDecls.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkFileFilter.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkFont.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkInitScript.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkInt.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkIntDecls.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkIntPlatDecls.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkIntXlibDecls.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkMenu.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkMenubutton.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkPlatDecls.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkPort.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkScale.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkScrollbar.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkSelect.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkText.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../generic/tkUndo.h ${PREFIX}/include/tk/generic
|
|
${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixDefault.h ${PREFIX}/include/tk/unix
|
|
${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixInt.h ${PREFIX}/include/tk/unix
|
|
${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixPort.h ${PREFIX}/include/tk/unix
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|