aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/am-utils/Makefile
blob: 8dd6971a3dc04944ae2cd580d04fead5af70d927 (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
51
52
53
54
55
56
57
# Created by: Jon Wilson <jon@phuq.co.uk>
# $FreeBSD$

PORTNAME=   am-utils
PORTVERSION=    6.1.5
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= sysutils net
MASTER_SITES=   ftp://ftp.am-utils.org/pub/am-utils/ \
        ftp://ftp.cs.umn.edu/pub/am-utils/ \
        ftp://ftp.u-aizu.ac.jp/pub/net/amd/am-utils/ \
        RINGSERVER/net/am-utils

MAINTAINER= ports@FreeBSD.org
COMMENT=    The Berkeley Automounter Suite of Utilities

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/COPYING

OPTIONS_DEFINE= OPENLDAP DOCS
OPTIONS_DEFAULT=OPENLDAP
OPENLDAP_DESC=  OpenLDAP support

USES=       libtool makeinfo
USE_LDCONFIG=   yes
MAKE_JOBS_UNSAFE=yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared
MAKE_ENV=   MAKEINFOFLAGS=--no-split

INFO=       am-utils
DOCS=       AUTHORS BUGS FAQ NEWS README.attrcache

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPENLDAP}
USE_OPENLDAP=   yes
CONFIGURE_ARGS+=--with-ldap=yes \
        --enable-ldflags=-L${LOCALBASE}/lib \
        --enable-cppflags=-I${LOCALBASE}/include
DOCS+=      README.ldap ldap-id.txt ldap.schema
PLIST_SUB+= LDAP_DOC=""
.else
PLIST_SUB+= LDAP_DOC="@comment "
CONFIGURE_ARGS+=--with-ldap=no
.endif

post-patch:
    @${RM} ${WRKSRC}/doc/am-utils.info*

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>