aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-14 16:14:17 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-14 16:14:17 +0000
commitdf936209288c0b3a4d99742cfaaf8cdf38955654 (patch)
tree321af3787c7345daf382562a83adf7387a53a821 /x11-toolkits
parent38052bdcd845bb049ca6433a22890699a7e025b7 (diff)
downloadports-df936209288c0b3a4d99742cfaaf8cdf38955654.tar.gz
ports-df936209288c0b3a4d99742cfaaf8cdf38955654.zip
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/ruby-tk/Makefile24
1 files changed, 7 insertions, 17 deletions
diff --git a/x11-toolkits/ruby-tk/Makefile b/x11-toolkits/ruby-tk/Makefile
index 68e9716664f7..a66874e82b73 100644
--- a/x11-toolkits/ruby-tk/Makefile
+++ b/x11-toolkits/ruby-tk/Makefile
@@ -7,7 +7,6 @@
PORTNAME= tk
PORTVERSION= ${RUBY_PORTVERSION}
-PORTREVISION= 2
PORTREVISION= ${RUBY_PORTREVISION}
PORTEPOCH= 1
CATEGORIES+= x11-toolkits ruby tcl tk
@@ -26,27 +25,14 @@ USE_XORG= x11
WRKSRC= ${WRKDIR}/${PORTNAME}
-TK_VERSION?= 8.4
-.if defined(WITH_TCLTK_JP)
-TCLPORTDIR?= ${PORTSDIR}/japanese/tcl
-TKPORTDIR?= ${PORTSDIR}/japanese/tk
-.else
-TCLPORTDIR?= ${PORTSDIR}/lang/tcl
-TKPORTDIR?= ${PORTSDIR}/x11-toolkits/tk
-.endif
-
-LIB_DEPENDS= tcl${TK_VERSION:S/.//}:${TCLPORTDIR}${TK_VERSION:C/[^0-9]//g} \
- tk${TK_VERSION:S/.//}:${TKPORTDIR}${TK_VERSION:C/[^0-9]//g}
+USE_TK= 84+
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--with-X11-dir=${LOCALBASE} \
- --with-tcl-include=${LOCALBASE}/include/tcl${TK_VERSION} \
- --with-tk-include=${LOCALBASE}/include/tk${TK_VERSION}
-.if defined(WITH_TCLTK_JP)
-CONFIGURE_ARGS+=--with-tcllib=tcl${TK_VERSION:S/.//} --with-tklib=tk${TK_VERSION:S/.//}
-.endif
+ --with-tcl-include=${TCL_INCLUDEDIR} \
+ --with-tk-include=${TK_INCLUDEDIR}
MAKE_ARGS= sitelibdir='$$(rubylibdir)'
@@ -60,6 +46,10 @@ do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
+pre-configure:
+ @${REINPLACE_CMD} -e "s/8\.5 8\.4 8\.3 8\.2 8\.1 8\.0 .\../${TCL_VER}/g" \
+ ${WRKSRC}/extconf.rb
+
post-build:
@(cd ${BUILD_WRKSRC}/tkutil; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})