freebsd-ports/databases/dbh/Makefile
Frederic Culot 442534a4d4 - Update to 5.0.15
- Add LICENSE (GPL 3)

Changes:	http://sourceforge.net/projects/dbh/files/dbh/
2014-07-20 08:15:15 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= dbh
PORTVERSION= 5.0.15
CATEGORIES= databases
MASTER_SITES= SF
DISTNAME= libdbh2-${PORTVERSION}
MAINTAINER= culot@FreeBSD.org
COMMENT= Disk Based Hashtables
LICENSE= GPLv3
CONFLICTS= dbh-[0-4]*
USES= pathfix pkgconfig
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= GTKDOC
GTKDOC_DESC= Enable GTK html documentation
.for a in ia64 powerpc sparc64
BROKEN_${a}= Does not compile on ia64, powerpc, or sparc64
.endfor
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTKDOC}
CONFIGURE_ARGS+= --enable-gtk-doc-html
PLIST_SUB= GTKDOC=""
.else
CONFIGURE_ARGS+= --disable-gtk-doc-html
PLIST_SUB= GTKDOC="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
# Needed to remove gtk-doc installation.
.if empty(PORT_OPTIONS:MGTKDOC)
@${REINPLACE_CMD} -e 's|^\(SUBDIRS = src man\).*|\1|' ${WRKSRC}/Makefile.in
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdbh.so.2
.include <bsd.port.mk>