summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-05-10 14:31:08 +0000
committerjoerg <joerg@pkgsrc.org>2006-05-10 14:31:08 +0000
commit4a5f2d4bf5da1dd165981be92d372174ee2b6c9d (patch)
treed3dae0e76f7b81e10c6cb4f8f01281db97fb196f /databases
parentd481d20fe8ae444fb629b27ff959783487ce5fde (diff)
downloadpkgsrc-4a5f2d4bf5da1dd165981be92d372174ee2b6c9d.tar.gz
Uses C++ and fix pthread detection.
Diffstat (limited to 'databases')
-rw-r--r--databases/py-metakit/Makefile4
-rw-r--r--databases/py-metakit/patches/patch-ab30
2 files changed, 33 insertions, 1 deletions
diff --git a/databases/py-metakit/Makefile b/databases/py-metakit/Makefile
index f7a36a56a84..e6106bc3929 100644
--- a/databases/py-metakit/Makefile
+++ b/databases/py-metakit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/03/04 21:29:11 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2006/05/10 14:31:08 joerg Exp $
#
DISTNAME= metakit-2.4.9.5
@@ -17,6 +17,7 @@ GNU_CONFIGURE= yes
CONFIGURE_DIRS= builds
CONFIGURE_SCRIPT= ../unix/configure
CONFIGURE_ARGS+= --with-python=${LOCALBASE}/${PYINC},${LOCALBASE}/${PYSITELIB}
+USE_LANGUAGES= c c++
USE_LIBTOOL= yes
BUILD_TARGET= python
INSTALL_TARGET= install-python
@@ -33,4 +34,5 @@ post-install:
.include "../../databases/metakit-lib/buildlink3.mk"
.include "../../lang/python/extension.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/py-metakit/patches/patch-ab b/databases/py-metakit/patches/patch-ab
new file mode 100644
index 00000000000..1e8cec19d36
--- /dev/null
+++ b/databases/py-metakit/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1 2006/05/10 14:31:08 joerg Exp $
+
+--- ../unix/configure.orig 2006-05-10 14:21:36.000000000 +0000
++++ ../unix/configure
+@@ -3414,13 +3414,13 @@ else
+ LIBEXT=$LIB_SUFFIX
+ fi
+
+-echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_mutex_init in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
++echo $ECHO_N "checking for pthread_mutex_init in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -3479,7 +3479,7 @@ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
+ echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
+ if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
+- LIBS="$LIBS -lpthread"
++ LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
+ fi
+
+