summaryrefslogtreecommitdiff
path: root/databases/qdbm
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-09-01 06:49:10 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-09-01 06:49:10 +0000
commit49af1bdbaf4b384705f4118513393701358b6c42 (patch)
tree640e9bd8fa60b2500f3b289062630634aaee57d1 /databases/qdbm
parent- fix plist (diff)
- Add support for a slave port.
Notes
Notes: svn path=/head/; revision=141671
Diffstat (limited to 'databases/qdbm')
-rw-r--r--databases/qdbm/Makefile45
1 files changed, 32 insertions, 13 deletions
diff --git a/databases/qdbm/Makefile b/databases/qdbm/Makefile
index 239a5b57c369..d05376aca5ee 100644
--- a/databases/qdbm/Makefile
+++ b/databases/qdbm/Makefile
@@ -13,10 +13,13 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ahze@FreeBSD.org
-COMMENT= Quick Database Manager
+COMMENT?= Quick Database Manager
GNU_CONFIGURE= yes
USE_REINPLACE= yes
+INSTALLS_SHLIB= yes
+
+.if !defined(SLAVEPORT)
USE_ICONV= yes
CONFIGURE_ARGS= --enable-zlib \
--enable-iconv
@@ -39,18 +42,6 @@ MLINKS= curia.3 cropen.3 depot.3 dpopen.3 \
OPTIONS= PTHREAD "Enable pthread support" Off \
DEBUG "Enable debug" Off
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+= --enable-debug
-.endif
-
-.if defined(WITH_PTHREAD)
-USE_REINPLACE= yes
-CONFIGURE_ARGS+= --enable-pthread
-CFLAGS+= ${PTHREAD_CFLAGS}
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
@@ -63,4 +54,32 @@ post-build:
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/lab/fmtcnv031127 ${PREFIX}/bin
+.else
+
+LIB_DEPENDS+= qdbm.11:${PORTSDIR}/databases/qdbm
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if !defined(SLAVEPORT)
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+.if defined(WITH_PTHREAD)
+USE_REINPLACE= yes
+CONFIGURE_ARGS+= --enable-pthread
+CFLAGS+= ${PTHREAD_CFLAGS}
+.endif
+.endif
+
+.if defined(SLAVEPORT) && ${SLAVEPORT}=="perl"
+.if ${PERL_LEVEL} < 500600
+IGNORE= This port requires perl 5.6.0 or later, Install lang/perl5 then try again
+.endif
+.endif
+
.include <bsd.port.post.mk>