2003-10-30 02:29:21 +00:00
|
|
|
# New ports collection makefile for: QDBM
|
|
|
|
# Date created: 18 October 2003
|
|
|
|
# Whom: Kimura Fuyuki <fuyuki@nigredo.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-03-15 12:06:00 +00:00
|
|
|
# $MCom: ports-stable/databases/qdbm/Makefile,v 1.4 2006/03/04 21:25:54 ahze Exp $
|
2003-10-30 02:29:21 +00:00
|
|
|
|
|
|
|
PORTNAME= qdbm
|
2007-03-05 17:14:41 +00:00
|
|
|
PORTVERSION= 1.8.75
|
2003-10-30 02:29:21 +00:00
|
|
|
CATEGORIES= databases
|
2005-04-16 17:46:31 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2004-05-30 09:40:59 +00:00
|
|
|
http://qdbm.sourceforge.net/
|
2003-10-30 02:29:21 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2004-12-08 03:15:22 +00:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2005-09-01 06:49:10 +00:00
|
|
|
COMMENT?= Quick Database Manager
|
2003-10-30 02:29:21 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2006-09-03 15:16:53 +00:00
|
|
|
USE_LDCONFIG= yes
|
2005-09-01 06:49:10 +00:00
|
|
|
|
|
|
|
.if !defined(SLAVEPORT)
|
2004-12-08 03:15:22 +00:00
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS= --enable-zlib \
|
|
|
|
--enable-iconv
|
2005-10-16 20:07:19 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
|
2004-01-05 23:35:27 +00:00
|
|
|
MAKE_ARGS= RELCFLAGS="${CFLAGS}" \
|
|
|
|
MYDATADIR="${DOCSDIR}" MYDOCS="${PORTDOCS}"
|
2003-11-05 19:55:18 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-01-05 23:35:27 +00:00
|
|
|
PORTDOCS= spex.html spex-ja.html ChangeLog NEWS
|
2003-11-05 19:55:18 +00:00
|
|
|
.endif
|
|
|
|
|
2005-06-09 17:19:00 +00:00
|
|
|
MAN1= cbcodec.1 cbtest.1 crmgr.1 crtest.1 crtsv.1 dpmgr.1 dptest.1 \
|
2006-09-03 15:16:53 +00:00
|
|
|
dptsv.1 hvmgr.1 hvtest.1 odidx.1 odmgr.1 odtest.1 qmttest.1 \
|
|
|
|
rlmgr.1 rltest.1 \
|
2005-06-09 17:19:00 +00:00
|
|
|
vlmgr.1 vltest.1 vltsv.1
|
|
|
|
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 \
|
2003-11-07 03:14:54 +00:00
|
|
|
odeum.3 odopen.3 villa.3 vlopen.3 villa.3 vista.3
|
2003-10-30 02:29:21 +00:00
|
|
|
|
2005-01-08 10:22:02 +00:00
|
|
|
OPTIONS= PTHREAD "Enable pthread support" Off \
|
2004-12-08 03:15:22 +00:00
|
|
|
DEBUG "Enable debug" Off
|
2004-03-12 00:17:35 +00:00
|
|
|
|
|
|
|
post-patch:
|
2006-09-25 20:23:36 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
|
2005-06-07 07:07:00 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2004-03-12 00:17:35 +00:00
|
|
|
|
2003-12-11 00:17:30 +00:00
|
|
|
post-build:
|
2004-12-14 07:58:04 +00:00
|
|
|
cd ${WRKSRC}/lab; \
|
|
|
|
${MAKE} CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -liconv" fmtcnv031127
|
2003-12-11 00:17:30 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lab/fmtcnv031127 ${PREFIX}/bin
|
|
|
|
|
2005-09-01 06:49:10 +00:00
|
|
|
.else
|
|
|
|
|
2006-02-08 00:27:38 +00:00
|
|
|
LIB_DEPENDS+= qdbm:${PORTSDIR}/databases/qdbm
|
2005-09-01 06:49:10 +00:00
|
|
|
|
|
|
|
post-patch:
|
2006-09-25 20:23:36 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/java|${JAVA_HOME}|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2005-09-01 07:18:04 +00:00
|
|
|
.if ${SLAVEPORT}=="ruby"
|
2006-09-25 20:23:36 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f | \
|
2005-09-01 07:18:04 +00:00
|
|
|
${XARGS} -n 10 ${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/bin/ruby -w|${SETENV} ruby|'
|
2006-09-25 20:23:36 +00:00
|
|
|
@${FIND} ${WRKSRC} -name '*.bak' | ${XARGS} ${RM} -f
|
2005-09-01 07:18:04 +00:00
|
|
|
.endif
|
2005-09-01 06:49:10 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(SLAVEPORT)
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PTHREAD)
|
|
|
|
CONFIGURE_ARGS+= --enable-pthread
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2004-03-12 00:17:35 +00:00
|
|
|
.include <bsd.port.post.mk>
|