svn commit: r353230 - head/databases/dbtool
Baptiste Daroussin
bapt at FreeBSD.org
Wed May 7 23:49:47 UTC 2014
Author: bapt
Date: Wed May 7 23:49:46 2014
New Revision: 353230
URL: http://svnweb.freebsd.org/changeset/ports/353230
QAT: https://qat.redports.org/buildarchive/r353230/
Log:
Support stage
Use option framework
Convert to USES=gmake
Modified:
head/databases/dbtool/Makefile
head/databases/dbtool/pkg-plist
Modified: head/databases/dbtool/Makefile
==============================================================================
--- head/databases/dbtool/Makefile Wed May 7 23:45:37 2014 (r353229)
+++ head/databases/dbtool/Makefile Wed May 7 23:49:46 2014 (r353230)
@@ -12,40 +12,27 @@ COMMENT= Store and retrieve data in a ke
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
-.if defined(WITH_BERKELEY_DB)
-LIB_DEPENDS+= libdb3.so:${PORTSDIR}/databases/db3
-DB_INC= -I${LOCALBASE}/include/db3
-CONFIGURE_ARGS= --with-berkeley
-.else
-LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm
-.endif
-.if !defined(NOPORTDOCS)
-RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
-.endif
+OPTIONS_DEFINE= BDB EXAMPLES
+
+BDB_LIB_DEPENDS= libdb3.so:${PORTSDIR}/databases/db3
+BDB_CPPFLAGS= -I${LOCALBASE}/include/db3
+BDB_CONFIGURE_ON= --with-berkeley
+BDB_LIB_DEPENDS_OFF= libgdbm.so:${PORTSDIR}/databases/gdbm
+
+EXAMPLES_RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
LICENSE= GPLv2
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
-CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include ${DB_INC}
+CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
-USE_GMAKE= yes
+USES= gmake
REINPLACE_ARGS= -i ""
-MAN1= dbtool.1
-
SH2BASH= samples/account-db/accdb
UB2PFX= samples/locate/locate samples/locate/updatedb
-NO_STAGE= yes
-post-extract:
-.if !defined(WITH_BERKELEY_DB)
- @${ECHO_MSG}
- @${ECHO_MSG} " Build with gdbm by default. "
- @${ECHO_MSG} " If you want to use BerkeleyDB, you can build with WITH_BERKELEY_DB=yes"
- @${ECHO_MSG}
-.endif
-
post-patch:
.for file in dbtool.cc engine.cc engine.h
@${REINPLACE_CMD} -e "s,stdin,input,g" ${WRKSRC}/${file}
@@ -63,11 +50,7 @@ post-patch:
.endif
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- @${CP} -Rp ${WRKSRC}/samples/* ${EXAMPLESDIR}
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
- @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
-.endif
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${CP} -Rp ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
Modified: head/databases/dbtool/pkg-plist
==============================================================================
--- head/databases/dbtool/pkg-plist Wed May 7 23:45:37 2014 (r353229)
+++ head/databases/dbtool/pkg-plist Wed May 7 23:49:46 2014 (r353230)
@@ -1,4 +1,5 @@
bin/dbtool
+man/man1/dbtool.1.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/account-db/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/account-db/accdb
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/locate/README
More information about the svn-ports-all
mailing list