freebsd-ports/databases/gdbm/Makefile
Alexey Dokuchaev 8424650976 - Mark as make jobs (-jX) unsafe for the time being
- Drop the article from COMMENT line
- Define LICENSE (GPLv3)
- Remove pre-everything target: OPTIONS framework is vocal enough
- Improve and move OPTIONS knobs lower in the Makefile
- Fix bad indentation in post-patch commands as appropriate
- Correct a typo and reformat port description, and point WWW to a more
  up-to-date page version while I'm at it

Approved by:	gabor (maintainer)
2013-06-19 14:26:05 +00:00

42 lines
858 B
Makefile

# Created by: Brent J. Nordquist <bjn@visi.com>
# $FreeBSD$
PORTNAME= gdbm
PORTVERSION= 1.9.1
CATEGORIES= databases
MASTER_SITES= GNU
MAINTAINER= gabor@FreeBSD.org
COMMENT= GNU database manager
LICENSE= GPLv3
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
INFO= gdbm
MAN3= gdbm.3
OPTIONS_DEFINE= COMPAT
COMPAT_DESC= Enable dbm/ndbm compatibility
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPAT}
CONFIGURE_ARGS= --enable-libgdbm-compat
PLIST_SUB= GDBM_COMPAT=""
.else
PLIST_SUB= GDBM_COMPAT="@comment "
.endif
post-patch:
@${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>