Annotation of pkgsrc/x11/tk/Makefile, revision 1.38

1.38    ! adam        1: # $NetBSD: Makefile,v 1.37 2004/10/03 00:18:38 tv Exp $
1.1       jwise       2: 
1.38    ! adam        3: DISTNAME=      tk8.4.8-src
        !             4: PKGNAME=       tk-8.4.8
        !             5: CATEGORIES=    x11 lang
1.29      minskim     6: MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tcl/}
1.1       jwise       7: 
1.23      grant       8: MAINTAINER=    [email protected]
1.29      minskim     9: HOMEPAGE=      http://www.tcl.tk/
1.6       wiz        10: COMMENT=       Graphical toolkit for TCL
1.1       jwise      11: 
1.24      jlam       12: PKG_INSTALLATION_TYPES=        overwrite pkgviews
                     13: 
1.29      minskim    14: WRKSRC=                        ${WRKDIR}/${DISTNAME:C/-src//}/unix
1.38    ! adam       15: 
        !            16: USE_X11=               yes
        !            17: USE_LIBTOOL=           yes
        !            18: USE_BUILDLINK3=                yes
1.9       jlam       19: GNU_CONFIGURE=         yes
1.32      jlam       20: CONFIGURE_ARGS+=       --with-tcl=${BUILDLINK_PREFIX.tcl}/lib
1.35      jwise      21: CONFIGURE_ARGS+=       --enable-threads
1.11      jlam       22: MAKE_ENV+=             TOUCH="${TOUCH}"
1.9       jlam       23: 
1.20      dillo      24: TEST_TARGET=           test
1.10      jlam       25: 
1.12      jlam       26: # Initially install the man pages into ${WRKDIR}/man, as we need a staged
                     27: # install to avoid overwriting existing manpages in ${PREFIX}/man.
                     28: CONFIGURE_ARGS+=       --mandir=${WRKDIR}/man
                     29: 
1.32      jlam       30: .include "../../lang/tcl/buildlink3.mk"
                     31: 
1.12      jlam       32: # Modify mkLinks script to remove the short-filename manpage if it was
                     33: # linked to a longer filename.
                     34: post-patch:
                     35:        @cd ${WRKSRC};                                                  \
                     36:        ${MV} -f mkLinks mkLinks.tmp;                                   \
                     37:        ${GREP} -v "^exit 0" mkLinks.tmp > mkLinks;                     \
                     38:        ${CAT} mkLinks.tmp                                              \
1.29      minskim    39:                | ${AWK} '/^  *ln / { print $$3 }'                      \
1.12      jlam       40:                | ${SORT} -u                                            \
                     41:                | ${GREP} -v ".*\.n"                                    \
                     42:                | ${SED} -e "s,^,${RM} -f ,"                            \
                     43:                >> mkLinks;                                             \
                     44:        ${RM} -f mkLinks.tmp;                                           \
                     45:        ${CHMOD} +x mkLinks;
1.18      jlam       46: 
1.1       jwise      47: post-install:
1.26      minskim    48:        cd ${WRKDIR} && ${PAX} -rwpm man ${PREFIX}
1.27      minskim    49:        ${RM} -rf ${WRKDIR}/man
1.4       agc        50:        ${RM} -f ${PREFIX}/bin/wish
1.29      minskim    51:        cd ${PREFIX}/bin && ${LN} -s wish8.4 wish
1.7       hubertf    52:        ${INSTALL_DATA_DIR} ${PREFIX}/include/tk
                     53:        ${INSTALL_DATA_DIR} ${PREFIX}/include/tk/generic
                     54:        ${INSTALL_DATA_DIR} ${PREFIX}/include/tk/unix
1.3       jwise      55:        ${INSTALL_DATA} ${WRKSRC}/../generic/default.h ${PREFIX}/include/tk/generic
1.17      bjoern     56:        ${INSTALL_DATA} ${WRKSRC}/../generic/ks_names.h ${PREFIX}/include/tk/generic
1.1       jwise      57:        ${INSTALL_DATA} ${WRKSRC}/../generic/tk.h ${PREFIX}/include/tk/generic
                     58:        ${INSTALL_DATA} ${WRKSRC}/../generic/tk3d.h ${PREFIX}/include/tk/generic
                     59:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkButton.h ${PREFIX}/include/tk/generic
                     60:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkCanvas.h ${PREFIX}/include/tk/generic
                     61:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkColor.h ${PREFIX}/include/tk/generic
                     62:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkDecls.h ${PREFIX}/include/tk/generic
                     63:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkFileFilter.h ${PREFIX}/include/tk/generic
                     64:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkFont.h ${PREFIX}/include/tk/generic
                     65:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkInitScript.h ${PREFIX}/include/tk/generic
                     66:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkInt.h ${PREFIX}/include/tk/generic
                     67:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntDecls.h ${PREFIX}/include/tk/generic
                     68:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntPlatDecls.h ${PREFIX}/include/tk/generic
                     69:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkIntXlibDecls.h ${PREFIX}/include/tk/generic
                     70:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkMenu.h ${PREFIX}/include/tk/generic
                     71:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkMenubutton.h ${PREFIX}/include/tk/generic
                     72:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkPlatDecls.h ${PREFIX}/include/tk/generic
                     73:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkPort.h ${PREFIX}/include/tk/generic
                     74:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkScale.h ${PREFIX}/include/tk/generic
                     75:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkScrollbar.h ${PREFIX}/include/tk/generic
                     76:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkSelect.h ${PREFIX}/include/tk/generic
                     77:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkText.h ${PREFIX}/include/tk/generic
1.29      minskim    78:        ${INSTALL_DATA} ${WRKSRC}/../generic/tkUndo.h ${PREFIX}/include/tk/generic
1.1       jwise      79:        ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixDefault.h ${PREFIX}/include/tk/unix
                     80:        ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixInt.h ${PREFIX}/include/tk/unix
                     81:        ${INSTALL_DATA} ${WRKSRC}/../unix/tkUnixPort.h ${PREFIX}/include/tk/unix
                     82: 
                     83: .include "../../mk/bsd.pkg.mk"

CVSweb <[email protected]>