summaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2004-11-05 04:02:07 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2004-11-05 04:02:07 +0000
commit036408a3cccd71ac770f19598ee8ae9aea49396d (patch)
tree9c25ceb7a77626f0e5772f95617224718b506cd9 /x11-toolkits
parentReduce dependency on p5-Digest-MD5 with perl-5.8. (diff)
- fix build for symlinked portsdir
Reported by: kris Approved by: jmz
Notes
Notes: svn path=/head/; revision=120830
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/tix/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11-toolkits/tix/Makefile b/x11-toolkits/tix/Makefile
index f88bb11b0eeb..3d5fd4f745f0 100644
--- a/x11-toolkits/tix/Makefile
+++ b/x11-toolkits/tix/Makefile
@@ -21,6 +21,7 @@ LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
WRKSRC= ${WRKDIR}/${DISTNAME}/unix/tk8.4
INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --enable-sam \
--with-tclconfig="${PREFIX}/lib/tcl8.4" \
@@ -53,6 +54,11 @@ TK84_PORT?= x11-toolkits/tk84
.include <bsd.port.pre.mk>
+TCLBASE!= ( cd ${PORTSDIR}/${TCL84_PORT} && make -V TCLBASE )
+TCLWRK!= ( cd ${PORTSDIR}/${TCL84_PORT} && make -V WRKDIR )
+TKBASE!= ( cd ${PORTSDIR}/${TK84_PORT} && make -V TKBASE )
+TKWRK!= ( cd ${PORTSDIR}/${TK84_PORT} && make -V WRKDIR )
+
pre-configure:
@(cd ${WRKSRC}/.. && \
CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \
@@ -60,6 +66,16 @@ pre-configure:
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+ ${REINPLACE_CMD} \
+ -e 's|$${WRKDIRPREFIX}${TCLBASE}/work|${TCLWRK}|g' \
+ -e 's|$${WRKDIRPREFIX}${TKBASE}/work|${TKWRK}|g' \
+ ${WRKSRC}/../Makefile
+
+post-configure:
+ ${REINPLACE_CMD} \
+ -e 's|$${WRKDIRPREFIX}${TCLBASE}/work|${TCLWRK}|g' \
+ -e 's|$${WRKDIRPREFIX}${TKBASE}/work|${TKWRK}|g' \
+ ${WRKSRC}/Makefile
post-install:
@(cd ${WRKSRC}/.. && \