aboutsummaryrefslogtreecommitdiffstats
path: root/databases
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
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')
-rw-r--r--databases/gdbm/Makefile14
-rw-r--r--databases/gdbm/pkg-plist5
2 files changed, 19 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
diff --git a/databases/gdbm/pkg-plist b/databases/gdbm/pkg-plist
index 092fb901b47f..ee4a2e53b267 100644
--- a/databases/gdbm/pkg-plist
+++ b/databases/gdbm/pkg-plist
@@ -1,7 +1,12 @@
include/gdbm.h
+%%GDBM_COMPAT%%include/dbm.h
+%%GDBM_COMPAT%%include/ndbm.h
@unexec install-info --delete %D/info/gdbm.info %D/info/dir
info/gdbm.info
@exec install-info %D/info/gdbm.info %D/info/dir
lib/libgdbm.a
lib/libgdbm.so
lib/libgdbm.so.3
+%%GDBM_COMPAT%%lib/libgdbm_compat.a
+%%GDBM_COMPAT%%lib/libgdbm_compat.so
+%%GDBM_COMPAT%%lib/libgdbm_compat.so.3