1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

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)
This commit is contained in:
Yaroslav Tykhiy 2003-01-22 17:01:13 +00:00
parent 3faeefebde
commit 7cca481c2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73802
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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