1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/databases/dbh/Makefile
Frederic Culot 371ea4eb61 - Update to 5.0.7
- Update MASTER_SITES
- Support staging
2014-02-12 13:24:11 +00:00

48 lines
1.0 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= dbh
PORTVERSION= 5.0.7
CATEGORIES= databases
MASTER_SITES= SF
MAINTAINER= culot@FreeBSD.org
COMMENT= Disk Based Hashtables
CONFLICTS= dbh-[0-4]*
USES= pathfix pkgconfig
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= GTKDOC EXAMPLES
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:
# 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:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} '*.c' ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>