1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/databases/dbtool/Makefile
John Marino d0bb05930a Reset the 99 ports still listed under sylvio@
Sylvio's last commit was 17 months ago, a full 5 months after all of his
ports could have been reset per policy.  Given the push to complete
staging (48 ports are still unstaged, something like 70+ have already
been staged by other committers) and given that PRs are automatically
assigned but never addressed, it's better just to reset all the ports and
PRs so that it's clear to others that these ports are free to maintain.

Approved by:	portmgr (implicit)
2014-06-11 18:55:29 +00:00

57 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= dbtool
PORTVERSION= 1.7
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://www.daemon.de/idisk/Apps/dbtool/
MAINTAINER= ports@FreeBSD.org
COMMENT= Store and retrieve data in a key/value format in a hash database
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
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
CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
USES= gmake
REINPLACE_ARGS= -i ""
SH2BASH= samples/account-db/accdb
UB2PFX= samples/locate/locate samples/locate/updatedb
post-patch:
.for file in dbtool.cc engine.cc engine.h
@${REINPLACE_CMD} -e "s,stdin,input,g" ${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e "s,==,=,g" ${WRKSRC}/configure
.if !defined(NOPORTDOCS)
.for file in ${SH2BASH}
@${REINPLACE_CMD} -e "s|/bin/sh|${LOCALBASE}/bin/bash|" ${WRKSRC}/${file}
.endfor
.for file in ${UB2PFX}
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/${file}
@${RM} ${WRKSRC}/${file}.orig
@${RM} ${WRKSRC}/${file}~
.endfor
.endif
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${CP} -Rp ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>