From 891b7d0f4e673dea097525cb7d78de2aa3ad0242 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 14 Oct 2013 13:56:25 +0000 Subject: [PATCH] - Update to 2.6 - Convert to USES+=tk - Take maintainership (tcltk@FreeBSD.org) - STAGE-clean --- x11-toolkits/tkdnd/Makefile | 41 +++++++++++++----------------------- x11-toolkits/tkdnd/distinfo | 4 ++-- x11-toolkits/tkdnd/pkg-plist | 8 +++++-- 3 files changed, 23 insertions(+), 30 deletions(-) diff --git a/x11-toolkits/tkdnd/Makefile b/x11-toolkits/tkdnd/Makefile index 504772a794e4..d6d16e8ed83f 100644 --- a/x11-toolkits/tkdnd/Makefile +++ b/x11-toolkits/tkdnd/Makefile @@ -2,40 +2,29 @@ # $FreeBSD$ PORTNAME= tkdnd -PORTVERSION= 1.0 -DISTVERSION= 1.0.20040304 -PORTREVISION= 3 +PORTVERSION= 2.6 CATEGORIES= x11-toolkits tk -MASTER_SITES= CENKES -# Distfile prepared from SourceForge CVS +MASTER_SITES= SF/${PORTNAME}/TkDND/TkDND%20${PORTVERSION}/ +DISTNAME= ${PORTNAME}${PORTVERSION}-src -MAINTAINER= ports@FreeBSD.org -COMMENT= Native drag and drop capabilities +MAINTAINER= tcltk@FreeBSD.org +COMMENT= Native drag and drop capabilities for Tk -USE_BZIP2= yes -USE_TK= yes +USES+= tk:85+ USE_XORG= x11 xext GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR} \ - --with-tclinclude=${TCL_INCLUDEDIR} --with-tkinclude=${TK_INCLUDEDIR} --enable-shared -CPPFLAGS+= -I${TK_INCLUDEDIR}/generic -I${TCL_INCLUDEDIR}/generic +CONFIGURE_ARGS= --exec-prefix=${PREFIX} \ + --with-tcl=${TCL_LIBDIR} \ + --with-tk=${TK_LIBDIR} \ + --with-tclinclude=${TCL_INCLUDEDIR} \ + --with-tkinclude=${TK_INCLUDEDIR} + TKPKG= ${PORTNAME}${PORTVERSION} PLIST_SUB= TKPKG=${TKPKG} USE_LDCONFIG= ${PREFIX}/lib/${TKPKG} -MANN= ${PORTNAME}.n - -NO_STAGE= yes -post-patch: - @${REINPLACE_CMD} -Ee '/^install:/s#install-doc##' -e 's#.*txt.*##' ${WRKSRC}/Makefile.in +WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} post-install: - @${LN} -sf ${USE_LDCONFIG}/lib${TKPKG}.so ${USE_LDCONFIG}/lib${TKPKG}.so.0 - @${INSTALL_MAN} ${WRKSRC}/doc/tkDND.n ${MANNPREFIX}/man/mann/${MANN} + @${INSTALL_MAN} ${WRKSRC}/doc/tkDND.n ${STAGEDIR}/${PREFIX}/man/mann/${MANN} -.include - -.if ${OSVERSION} >= 900000 -BROKEN= does not build -.endif - -.include +.include diff --git a/x11-toolkits/tkdnd/distinfo b/x11-toolkits/tkdnd/distinfo index f586ecdb9000..8ba92422d149 100644 --- a/x11-toolkits/tkdnd/distinfo +++ b/x11-toolkits/tkdnd/distinfo @@ -1,2 +1,2 @@ -SHA256 (tkdnd-1.0.20040304.tar.bz2) = 3f4c6ffe89565456e2808000c441e669c7a3c315a5133382e0309140fe61dce8 -SIZE (tkdnd-1.0.20040304.tar.bz2) = 352734 +SHA256 (tkdnd2.6-src.tar.gz) = e3f499c62d1db2e9a4468791544c784eac727175e094aa06bfe7441dfb3f08e7 +SIZE (tkdnd2.6-src.tar.gz) = 180278 diff --git a/x11-toolkits/tkdnd/pkg-plist b/x11-toolkits/tkdnd/pkg-plist index 196d94154fac..7b32f3a34991 100644 --- a/x11-toolkits/tkdnd/pkg-plist +++ b/x11-toolkits/tkdnd/pkg-plist @@ -1,5 +1,9 @@ -lib/%%TKPKG%%/lib%%TKPKG%%.so -lib/%%TKPKG%%/lib%%TKPKG%%.so.0 +lib/%%TKPKG%%/libtkdnd.so.1 lib/%%TKPKG%%/pkgIndex.tcl lib/%%TKPKG%%/tkdnd.tcl +lib/%%TKPKG%%/tkdnd_compat.tcl +lib/%%TKPKG%%/tkdnd_macosx.tcl +lib/%%TKPKG%%/tkdnd_unix.tcl +lib/%%TKPKG%%/tkdnd_windows.tcl +man/mann/tkDND.n.gz @dirrm lib/%%TKPKG%%