aboutsummaryrefslogtreecommitdiffstats
path: root/databases/qdbm
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-12 08:17:35 +0800
committerpav <pav@FreeBSD.org>2004-03-12 08:17:35 +0800
commita951ca0fcde47907b2c33b382d3d925001107eeb (patch)
tree94bdb3ec75c72ded415444ab32761ee8a313f8c8 /databases/qdbm
parent6baefe39e03404acb40361dcaffbf82b92f5b69b (diff)
downloadfreebsd-ports-graphics-a951ca0fcde47907b2c33b382d3d925001107eeb.tar.gz
freebsd-ports-graphics-a951ca0fcde47907b2c33b382d3d925001107eeb.tar.zst
freebsd-ports-graphics-a951ca0fcde47907b2c33b382d3d925001107eeb.zip
- Update to 1.8.4
- Add knob for experimental pthread support - Run make check in post-build target PR: ports/64123 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org> (maintainer)
Diffstat (limited to 'databases/qdbm')
-rw-r--r--databases/qdbm/Makefile23
-rw-r--r--databases/qdbm/distinfo4
2 files changed, 19 insertions, 8 deletions
diff --git a/databases/qdbm/Makefile b/databases/qdbm/Makefile
index 2b8441f8b61..fdae8896bd4 100644
--- a/databases/qdbm/Makefile
+++ b/databases/qdbm/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= qdbm
-PORTVERSION= 1.8.2
+PORTVERSION= 1.8.4
CATEGORIES= databases
MASTER_SITES= http://qdbm.sourceforge.net/ \
- ${MASTER_SITE_SOURCEFORGE}
+ ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= fuyuki@nigredo.org
@@ -28,13 +28,24 @@ MAN3= cabin.3 curia.3 depot.3 hovel.3 odeum.3 qdbm.3 relic.3 villa.3
MLINKS= curia.3 cropen.3 depot.3 dpopen.3 \
odeum.3 odopen.3 villa.3 vlopen.3 villa.3 vista.3
+OPTIONS= PTHREAD "Enable pthread support !! USE IT WITH CARE !!" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PTHREAD)
+USE_REINPLACE= yes
+CONFIGURE_ARGS+= --enable-pthread
+CFLAGS+= ${PTHREAD_CFLAGS}
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+.endif
+
post-build:
cd ${WRKSRC}/lab; ${MAKE} CC="${CC}" CFLAGS="${CFLAGS}" fmtcnv031127
+ cd ${WRKSRC}; ${MAKE} check
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/lab/fmtcnv031127 ${PREFIX}/bin
-test:
- cd ${WRKSRC}; ${MAKE} check
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/databases/qdbm/distinfo b/databases/qdbm/distinfo
index a0cd47b841c..292f3b9934e 100644
--- a/databases/qdbm/distinfo
+++ b/databases/qdbm/distinfo
@@ -1,2 +1,2 @@
-MD5 (qdbm-1.8.2.tar.gz) = c47c700b3c15ce4e6efdb1c13e9e8d93
-SIZE (qdbm-1.8.2.tar.gz) = 719983
+MD5 (qdbm-1.8.4.tar.gz) = 818641b3158c65d02566b4232e3d2644
+SIZE (qdbm-1.8.4.tar.gz) = 724625