From 46b3773ca4d1e14f35d20271fe30d080a56b89d0 Mon Sep 17 00:00:00 2001 From: dinoex Date: Thu, 9 May 2002 16:39:18 +0000 Subject: - Set soname for libtk84.so - Add pkgIndex.tcl submitted by doconnor@gsoft.com.au so "package require Tk" is now supported. - Add pkgIndex.tcl for tk83 and tk84 --- x11-toolkits/tk82/Makefile | 12 ++++++++---- x11-toolkits/tk82/files/pkgIndex.tcl | 3 +++ x11-toolkits/tk82/pkg-plist | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 x11-toolkits/tk82/files/pkgIndex.tcl (limited to 'x11-toolkits/tk82') diff --git a/x11-toolkits/tk82/Makefile b/x11-toolkits/tk82/Makefile index 5ff3106..80d70ca 100644 --- a/x11-toolkits/tk82/Makefile +++ b/x11-toolkits/tk82/Makefile @@ -7,6 +7,7 @@ PORTNAME= tk PORTVERSION= 8.2.3 +PORTREVISION= 1 CATEGORIES= x11-toolkits tk82 MASTER_SITES= ${MASTER_SITE_TCLTK} MASTER_SITE_SUBDIR= tcl8_2 @@ -21,13 +22,15 @@ USE_XLIB= yes INSTALLS_SHLIB= yes WRKSRC= ${WRKDIR}/${DISTNAME}/unix GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.2 -CONFIGURE_ENV= PORTSDIR=${PORTSDIR} TK_LIB_FILE=libtk82.so.1 +TK_VER= 8.2 +SHORT_TK_VER= 82 +CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl${TK_VER} +CONFIGURE_ENV= PORTSDIR=${PORTSDIR} TK_LIB_FILE=libtk${SHORT_TK_VER}.so.1 +MAKE_ENV= SHORT_TK_VER=${SHORT_TK_VER} +PLIST_SUB= TK_VER=${TK_VER} SHORT_TK_VER=${SHORT_TK_VER} PKGINSTALL= ${PKGDIR}/pkg-install.wish PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.wish -PLIST_SUB= TK_VER=8.2 SHORT_TK_VER=82 - MANCOMPRESSED= no MAN1= wish.1 @@ -299,6 +302,7 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromObj.3 \ .include post-install: + ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}/ .if exists(${PKGINSTALL}) ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} .endif diff --git a/x11-toolkits/tk82/files/pkgIndex.tcl b/x11-toolkits/tk82/files/pkgIndex.tcl new file mode 100644 index 0000000..f37573a --- /dev/null +++ b/x11-toolkits/tk82/files/pkgIndex.tcl @@ -0,0 +1,3 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tk 8.2 [list load "[file join [file dirname $dir] libtk82.so.1]" Tk] diff --git a/x11-toolkits/tk82/pkg-plist b/x11-toolkits/tk82/pkg-plist index eb63518..dedc663 100644 --- a/x11-toolkits/tk82/pkg-plist +++ b/x11-toolkits/tk82/pkg-plist @@ -117,6 +117,7 @@ lib/tk%%TK_VER%%/msgbox.tcl lib/tk%%TK_VER%%/obsolete.tcl lib/tk%%TK_VER%%/optMenu.tcl lib/tk%%TK_VER%%/palette.tcl +lib/tk%%TK_VER%%/pkgIndex.tcl lib/tk%%TK_VER%%/prolog.ps lib/tk%%TK_VER%%/safetk.tcl lib/tk%%TK_VER%%/scale.tcl -- cgit v1.1