mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# New ports collection makefile for: QDBM
|
|
# Date created: 18 October 2003
|
|
# Whom: Kimura Fuyuki <fuyuki@nigredo.org>
|
|
#
|
|
# $FreeBSD$
|
|
# $MCom: ports-stable/databases/qdbm/Makefile,v 1.6 2008/03/29 20:07:25 ahze Exp $
|
|
|
|
PORTNAME= qdbm
|
|
PORTVERSION= 1.8.77
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= SF/qdbm/qdbm/${PORTVERSION} \
|
|
http://qdbm.sourceforge.net/
|
|
|
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
|
COMMENT?= Quick Database Manager
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
.if !defined(SLAVEPORT)
|
|
USE_ICONV= yes
|
|
CONFIGURE_ARGS= --enable-zlib \
|
|
--enable-iconv \
|
|
--enable-pthread
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
|
|
MAKE_ARGS= RELCFLAGS="${CFLAGS}" \
|
|
MYDATADIR="${DOCSDIR}" MYDOCS="${PORTDOCS}"
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= spex.html spex-ja.html ChangeLog NEWS
|
|
.endif
|
|
|
|
MAN1= cbcodec.1 cbtest.1 crmgr.1 crtest.1 crtsv.1 dpmgr.1 dptest.1 \
|
|
dptsv.1 hvmgr.1 hvtest.1 odidx.1 odmgr.1 odtest.1 qmttest.1 \
|
|
rlmgr.1 rltest.1 \
|
|
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 \
|
|
odeum.3 odopen.3 villa.3 vlopen.3 villa.3 vista.3
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/lab; \
|
|
${MAKE} CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -liconv" fmtcnv031127
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lab/fmtcnv031127 ${PREFIX}/bin
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= qdbm:${PORTSDIR}/databases/qdbm
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/java|${JAVA_HOME}|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
.if ${SLAVEPORT}=="ruby"
|
|
@${FIND} ${WRKSRC} -type f | \
|
|
${XARGS} -n 10 ${REINPLACE_CMD} -e \
|
|
's|/usr/bin/ruby -w|${SETENV} ruby|'
|
|
@${FIND} ${WRKSRC} -name '*.bak' | ${XARGS} ${RM} -f
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(SLAVEPORT) && defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|