aboutsummaryrefslogtreecommitdiff
path: root/databases/gdbm
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-22 17:01:13 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-22 17:01:13 +0000
commit7cca481c2d66b1ddf30e2ba1af78e2453acd7b26 (patch)
tree581fe27eef160678fd9906cbdaf767f7f560dd49 /databases/gdbm
parent3faeefebded3faa5c326a48ec4799ee7339a80a8 (diff)
downloadports-7cca481c2d66b1ddf30e2ba1af78e2453acd7b26.tar.gz
ports-7cca481c2d66b1ddf30e2ba1af78e2453acd7b26.zip
Notes
Diffstat (limited to 'databases/gdbm')
-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