blob: edc3170b3d8ae8d690c0fe4e9560d5d156a1bad8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# ex:ts=8
# New ports collection makefile for: dbtool
# Date created: Apr 29, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= dbtool
PORTVERSION= 1.3
CATEGORIES= databases
MASTER_SITES= ftp://ftp.daemon.de/scip/Apps/dbtool/
MAINTAINER= ijliao@FreeBSD.org
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
.if defined(WITH_BERKELEY_DB)
LIB_DEPENDS+= db3.2:${PORTSDIR}/databases/db
DB_INC= -I${LOCALBASE}/include/db3
CONFIGURE_ARGS= --with-berkeley
.else
LIB_DEPENDS+= gdbm.2:${PORTSDIR}/databases/gdbm
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" \
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${DB_INC}"
USE_GMAKE= yes
MAN1= dbtool.1
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.h engine.cc main.cc
@${PERL} -pi -e "s,stdin,input,g" ${WRKSRC}/${file}
.endfor
@${PERL} -pi -e "s,==,=,g" ${WRKSRC}/configure
.include <bsd.port.mk>
|