aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gdbm/Makefile
blob: 3cccfaddcc193a0d7e9b8b8ca795763f8f62cdd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Brent J. Nordquist <bjn@visi.com>
# $FreeBSD$

PORTNAME=   gdbm
PORTVERSION=    1.10
CATEGORIES= databases
MASTER_SITES=   GNU

MAINTAINER= johans@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 NLS
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

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@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>