aboutsummaryrefslogtreecommitdiffstats
path: root/databases/metakit
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-01-29 22:33:31 +0800
committergahr <gahr@FreeBSD.org>2014-01-29 22:33:31 +0800
commit222d5e2a1a3bb7ef40c3422905480b47b2535d93 (patch)
treeb9aa2049d36ed9d8251e57968380fe72009960f5 /databases/metakit
parent4566763d8cc72e3079ba7dcdd145096749452720 (diff)
downloadfreebsd-ports-gnome-222d5e2a1a3bb7ef40c3422905480b47b2535d93.tar.gz
freebsd-ports-gnome-222d5e2a1a3bb7ef40c3422905480b47b2535d93.tar.zst
freebsd-ports-gnome-222d5e2a1a3bb7ef40c3422905480b47b2535d93.zip
- Convert to USES=tcl
Diffstat (limited to 'databases/metakit')
-rw-r--r--databases/metakit/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index 8af0d296007a..9c2b13da388f 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -34,13 +34,10 @@ PLIST_SUB+= WITH_PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MTCL}
+USES+= tcl:84
CATEGORIES+= tcl
-USE_TCL= 84+
-.endif
-
-.if defined(USE_TCL)
-CONFIGURE_ARGS+= --with-tcl=${TCL_INCLUDEDIR}
-CONFIGURE_ENV+= TCL_LIBDIR=${TCL_LIBDIR}
+CONFIGURE_ARGS+=--with-tcl=${TCL_INCLUDEDIR}
+CONFIGURE_ENV+= TCL_LIBDIR=${TCL_LIBDIR}
PLIST_SUB+= TCL_V="${TCL_VER}"
PLIST_SUB+= WITH_TCL=""
.else
@@ -49,14 +46,10 @@ PLIST_SUB+= WITH_TCL="@comment "
pre-patch:
${REINPLACE_CMD} -e "s=doc/==" ${WRKSRC}/../Metakit.html
-.if defined(USE_TCL)
- ${REINPLACE_CMD} -e "s/= tclsh/=tclsh${TCL_VER}/" \
+ ${REINPLACE_CMD} -e "s|= tclsh|=${TCLSH}|" \
${WRKSRC}/../unix/Makefile.in
-.endif
-.if ${PORT_OPTIONS:MPYTHON}
${REINPLACE_CMD} -e "s=python2.[0-9]=${PYTHON_VERSION}=" \
${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/configure
-.endif
post-build:
.if ${PORT_OPTIONS:MPYTHON}
@@ -82,7 +75,7 @@ post-install:
test:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
-.if defined(USE_TCL)
+.if ${PORT_OPTIONS:MTCL}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test-tcl)
.endif