c6beb9cdcd
- Add OPTIONS for dbm/ndbm compatibility PR: ports/160250 Submitted by: sunpoet
49 lines
1 KiB
Makefile
49 lines
1 KiB
Makefile
# New ports collection makefile for: gdbm
|
|
# Date created: 8 Apr 1996
|
|
# Whom: Brent J. Nordquist <bjn@visi.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gdbm
|
|
PORTVERSION= 1.9.1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= gabor@FreeBSD.org
|
|
COMMENT= The GNU database manager
|
|
|
|
OPTIONS= COMPAT "dbm/ndbm compatibility" off
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= libtool
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
INFO= gdbm
|
|
MAN3= gdbm.3
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_COMPAT)
|
|
CONFIGURE_ARGS+=--enable-libgdbm-compat
|
|
PLIST_SUB= GDBM_COMPAT=""
|
|
.else
|
|
PLIST_SUB= GDBM_COMPAT="@comment "
|
|
.endif
|
|
|
|
pre-everything::
|
|
.if !defined(WITH_COMPAT)
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "If you need UNIX dbm/ndbm compatibility functions,"
|
|
@${ECHO_MSG} "use \"make WITH_COMPAT=yes\""
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|LIBS = @LIBS@ -lc|LIBS = @LIBS@|" \
|
|
-e "s|BINOWN = bin|BINOWN = root|" -e "s|BINGRP = bin|BINGRP = wheel|" \
|
|
-e "s|libgdbm.la libgdbm_compat.la|libgdbm.la libgdbm_compat.la gdbm.info|" \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|