1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/databases/gdbm/Makefile
Gabor Kovesdan 7dc52a691f Change my e-mail address.
Approved by:	erwin (mentor)
2006-12-08 13:46:35 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: gdbm
# Date created: 8 Apr 1996
# Whom: Brent J. Nordquist <bjn@visi.com>
#
# $FreeBSD$
#
PORTNAME= gdbm
PORTVERSION= 1.8.3
PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gabor@FreeBSD.org
COMMENT= The GNU database manager
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.if defined(WITH_COMPAT)
INSTALL_TARGET= install install-compat
PLIST_SUB= GDBM_COMPAT=""
.else
PLIST_SUB= GDBM_COMPAT="@comment "
.endif
MAN3= gdbm.3
INFO= gdbm
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-patch:
@${REINPLACE_CMD} "s|prefix = @prefix@|prefix = ${TARGETDIR}|" \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|LIBS = @LIBS@ -lc|LIBS = @LIBS@|" \
-e "s|BINOWN = bin|BINOWN = root|" -e "s|BINGRP = bin|BINGRP = wheel|" \
-e "s|libgdbm.la libgdbm_compat.la|libgdbm.la libgdbm_compat.la gdbm.info|" \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>