aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tk82
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-11-01 20:53:12 +0800
committerdinoex <dinoex@FreeBSD.org>2004-11-01 20:53:12 +0800
commitf6964d35460b6d925e6d34825fbd309828a4cabb (patch)
tree32fc5c82275e78522dac5f89f51172933a28430c /x11-toolkits/tk82
parent367d5427cb9454760695b1990b7f837888249f2f (diff)
downloadfreebsd-ports-gnome-f6964d35460b6d925e6d34825fbd309828a4cabb.tar.gz
freebsd-ports-gnome-f6964d35460b6d925e6d34825fbd309828a4cabb.tar.zst
freebsd-ports-gnome-f6964d35460b6d925e6d34825fbd309828a4cabb.zip
- allow to overwrite TKBASE
package is not changed
Diffstat (limited to 'x11-toolkits/tk82')
-rw-r--r--x11-toolkits/tk82/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/x11-toolkits/tk82/Makefile b/x11-toolkits/tk82/Makefile
index 0a3c39f25438..c00e815d93bf 100644
--- a/x11-toolkits/tk82/Makefile
+++ b/x11-toolkits/tk82/Makefile
@@ -18,7 +18,7 @@ COMMENT= Graphical toolkit for TCL
LIB_DEPENDS= tcl82.1:${PORTSDIR}/${TCL82_PORT}
-NO_LATEST_LINK= yes
+LATEST_LINK= tk82
USE_XLIB= yes
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
@@ -307,9 +307,11 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromObj.3 \
.endif
+TKBASE?= ${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK}
+
post-configure:
${REINPLACE_CMD} \
- -e 's=${WRKDIRPREFIX}${.CURDIR}=$${WRKDIRPREFIX}${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK}=' \
+ -e 's|${WRKDIRPREFIX}${.CURDIR}|$${WRKDIRPREFIX}${TKBASE}|' \
${WRKSRC}/tkConfig.sh
.if !defined(WITH_TK82_MAN)
${REINPLACE_CMD} -e 's|^MAN_INSTALL_DIR.*$$|MAN_INSTALL_DIR = ${WRKDIR}|' \