aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gdbm/Makefile
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2003-01-23 01:01:13 +0800
committeryar <yar@FreeBSD.org>2003-01-23 01:01:13 +0800
commit69c17e4c1343ceccda7ea97db39f3b8a881f8ca7 (patch)
treed58970d7a7802787134ac9573cd168810239f3cf /databases/gdbm/Makefile
parent55a18460ee7ae395762d2787dc74ad86674bcd8b (diff)
downloadfreebsd-ports-gnome-69c17e4c1343ceccda7ea97db39f3b8a881f8ca7.tar.gz
freebsd-ports-gnome-69c17e4c1343ceccda7ea97db39f3b8a881f8ca7.tar.zst
freebsd-ports-gnome-69c17e4c1343ceccda7ea97db39f3b8a881f8ca7.zip
Add an option, WITH_COMPAT, to install the UNIX dbm/ndbm
compatibility files--libgdbm_compat and the header files. PR: ports/47363 Approved by: Cyrille Lefevre <cyrille.lefevre@laposte.net> (MAINTAINER)
Diffstat (limited to 'databases/gdbm/Makefile')
-rw-r--r--databases/gdbm/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/gdbm/Makefile b/databases/gdbm/Makefile
index f9b4a927c2d9..aa67f0969e09 100644
--- a/databases/gdbm/Makefile
+++ b/databases/gdbm/Makefile
@@ -17,11 +17,25 @@ USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
+.if defined(WITH_COMPAT) && ${WITH_COMPAT:L} != no
+INSTALL_TARGET= install install-compat
+PLIST_SUB= GDBM_COMPAT=""
+.else
+PLIST_SUB= GDBM_COMPAT="@comment "
+.endif
MAN3= gdbm.3
INSTALL_INFO?= install-info
+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-install:
@${INSTALL_INFO} ${PREFIX}/info/${PORTNAME}.info ${PREFIX}/info/dir