summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-08-04 07:27:34 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-08-04 07:27:34 +0000
commite5ffc131acd816a73452c2b26e9a35b2a7e27ad0 (patch)
tree070c2d57bf19fd4568b79a271f3e9017a7ebd786 /databases
parent- Fix sound initialisation problem (diff)
- Fix support for python2.3
defaults to python2.2, python2.3 support is broken.
Notes
Notes: svn path=/head/; revision=86260
Diffstat (limited to 'databases')
-rw-r--r--databases/metakit/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index dc1483edb78a..547f100ee5af 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -32,6 +32,7 @@ ONLY_FOR_ARCHS= i386 alpha
.if defined(METAKIT_WITH_PYTHON)
USE_PYTHON= yes
+PYTHON_VERSION?= python2.2
CONFIGURE_ARGS+= --with-python=${LOCALBASE}
CATEGORIES+= python
PLIST_SUB+= WITH_PYTHON=""
@@ -68,16 +69,24 @@ pre-patch:
${SED} -e "s=doc/==" \
${WRKSRC}/../MetaKit.html.sed > ${WRKSRC}/../MetaKit.html
.if defined(METAKIT_WITH_TCL83) || defined(METAKIT_WITH_TCL84)
- @${MV} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed
+ @${CP} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed
${SED} -e "s/= tclsh/=tclsh${TCL_V}/" -e "s/tcl8.4/tcl${TCL_V}/" \
${WRKSRC}/../unix/Makefile.in.sed \
> ${WRKSRC}/../unix/Makefile.in
.endif
.if defined(METAKIT_WITH_PYTHON)
- @${MV} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed
+ @${CP} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed
${SED} -e "s=python2.2=${PYTHON_VERSION}=" \
${WRKSRC}/../unix/Makefile.in.sed \
> ${WRKSRC}/../unix/Makefile.in
+ @${CP} ${WRKSRC}/../unix/configure ${WRKSRC}/../unix/configure.sed
+ ${SED} -e "s=python2.2=${PYTHON_VERSION}=" \
+ ${WRKSRC}/../unix/configure.sed \
+ > ${WRKSRC}/../unix/configure
+.endif
+
+post-install:
+.if defined(METAKIT_WITH_PYTHON)
.endif
post-install: