aboutsummaryrefslogtreecommitdiffstats
path: root/databases/metakit
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-01-11 05:57:00 +0800
committerdinoex <dinoex@FreeBSD.org>2002-01-11 05:57:00 +0800
commit05811c974e41c2b1c597dc69cd0047951d0899ea (patch)
treedd8574f27aa1abac36e00da858182c2a93fc9247 /databases/metakit
parent4863bea165e251a2e44ff7c40142cfdd9e1e89f8 (diff)
downloadfreebsd-ports-graphics-05811c974e41c2b1c597dc69cd0047951d0899ea.tar.gz
freebsd-ports-graphics-05811c974e41c2b1c597dc69cd0047951d0899ea.tar.zst
freebsd-ports-graphics-05811c974e41c2b1c597dc69cd0047951d0899ea.zip
- rename OPTIONS:
METAKIT_WITH_TCL -> METAKIT_WITH_TCL83 METAKIT_WITH_TCLKIT -> METAKIT_WITH_TCL84 - BROKEN for python 2.2 - obsolete OPTIONS: METAKIT_WITHOUT_PYTHON - new OPTIONS: METAKIT_WITH_PYTHON
Diffstat (limited to 'databases/metakit')
-rw-r--r--databases/metakit/Makefile30
-rw-r--r--databases/metakit/pkg-plist4
2 files changed, 15 insertions, 19 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index f8268c5c368..d9405a631b9 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -14,10 +14,10 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-${PORTREVISION}
MAINTAINER= dinoex@FreeBSD.org
-.if defined(METAKIT_WITH_TCL)
+.if defined(METAKIT_WITH_TCL83)
LIB_DEPENDS= tcl83.1:${PORTSDIR}/lang/tcl83
.endif
-.if defined(METAKIT_WITH_TCLKIT)
+.if defined(METAKIT_WITH_TCL84)
LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84
BUILD_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
.endif
@@ -29,8 +29,9 @@ LIBTOOLFILES= ${CONFIGURE_SCRIPT}
INSTALLS_SHLIB= yes
MAKE_ARGS= CXXFLAGS="-Dq4_INLINE ${CFLAGS} -fpermissive"
-.if !defined(METAKIT_WITHOUT_PYTHON)
-USE_PYTHON= yes
+.if defined(METAKIT_WITH_PYTHON)
+# BROKEN for python 2.2
+PYTHON_VERSION= python2.1
CONFIGURE_ARGS+= --enable-python
CATEGORIES+= python
PLIST_SUB+= WITH_PYTHON=""
@@ -38,24 +39,23 @@ PLIST_SUB+= WITH_PYTHON=""
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
-.if defined(METAKIT_WITH_TCL)
-CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/include/tcl${TCL_V}
+.if defined(METAKIT_WITH_TCL83)
CATEGORIES+= tcl83
TCL_V= 8.3
TCL_SHORT_V= 83
-PLIST_SUB+= WITH_TCL=""
-.else
-PLIST_SUB+= WITH_TCL="@comment "
.endif
-.if defined(METAKIT_WITH_TCLKIT)
-CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/include/tcl${TCL_V}
+.if defined(METAKIT_WITH_TCL84)
TCL_V= 8.4
TCL_SHORT_V= 84
+.endif
+
+.if defined(METAKIT_WITH_TCL83) || defined(METAKIT_WITH_TCL84)
+CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/include/tcl${TCL_V}
MAKE_ENV+= V=${TCL_V} SHORT_V=${TCL_SHORT_V}
-PLIST_SUB+= WITH_TCLKIT=""
+PLIST_SUB+= WITH_TCL=""
.else
-PLIST_SUB+= WITH_TCLKIT="@comment "
+PLIST_SUB+= WITH_TCL="@comment "
.endif
pre-patch:
@@ -64,7 +64,7 @@ pre-patch:
@${PERL5} -pi -e "s=doc/==" ${WRKSRC}/../MetaKit.html
post-install:
-.if !defined(METAKIT_WITHOUT_PYTHON)
+.if defined(METAKIT_WITH_PYTHON)
@${INSTALL_PROGRAM} ${WRKSRC}/Mk4py.so ${PYTHON_SITELIBDIR}/
.endif
.if !defined(NOPORTDOCS)
@@ -78,7 +78,7 @@ post-install:
test:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
-.if defined(METAKIT_WITH_TCL) || defined(METAKIT_WITH_TCLKIT)
+.if defined(METAKIT_WITH_TCL83) || defined(METAKIT_WITH_TCL84)
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test-tcl)
.endif
diff --git a/databases/metakit/pkg-plist b/databases/metakit/pkg-plist
index a7b748ef1cf..5579e425da9 100644
--- a/databases/metakit/pkg-plist
+++ b/databases/metakit/pkg-plist
@@ -15,10 +15,6 @@ lib/libmk4.la
%%WITH_TCL%%lib/libmk4tcl.so
%%WITH_TCL%%lib/libmk4tcl.so.0
%%WITH_TCL%%lib/libmk4tcl.la
-%%WITH_TCLKIT%%lib/libmk4tcl.a
-%%WITH_TCLKIT%%lib/libmk4tcl.so
-%%WITH_TCLKIT%%lib/libmk4tcl.so.0
-%%WITH_TCLKIT%%lib/libmk4tcl.la
%%PORTDOCS%%share/doc/metakit/api/c4_Bytes.html
%%PORTDOCS%%share/doc/metakit/api/c4_BytesProp.html
%%PORTDOCS%%share/doc/metakit/api/c4_BytesProp_desc.html