diff options
-rw-r--r-- | databases/gdbm/Makefile | 14 | ||||
-rw-r--r-- | databases/gdbm/pkg-plist | 5 |
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 |