blob: 8b72964f65475cf93f9cf8419fd1be17e9a5f37c (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.19 2004/07/17 00:14:26 xtraeme Exp $
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
CATEGORIES= devel
HOMEPAGE= http://apr.apache.org/
COMMENT= Apache Portable Runtime
# Don't bump this when apache upgrades; it is only apache2-2.0.45 and
# under that includes its own apr. apr was split out in 2.0.45nb1.
CONFLICTS= apache2<=2.0.45
USE_BUILDLINK3= YES
USE_LIBTOOL= YES
WRKSRC= ${WRKDIR}/${DISTNAME}/srclib
BUILD_DIRS= ${WRKSRC}/apr ${WRKSRC}/apr-util
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
LDFLAGS.SunOS+= -lnsl
pre-configure:
.for f in apr/config.layout apr-util/config.layout
${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/$f > ${WRKSRC}/$f.new
${MV} ${WRKSRC}/$f.new ${WRKSRC}/$f
.endfor
.undef f
APR_CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-devrandom=/dev/urandom \
--with-installbuilddir=${PREFIX}/libexec/apr
APU_CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-apr=${WRKSRC}/apr \
--with-expat=${BUILDLINK_PREFIX.expat} \
--without-gdbm
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= APR_USE_OPENLDAP
.if !empty(APR_USE_DB4:M[Yy][Ee][Ss])
APU_CONFIGURE_ARGS+=\
--with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE}
.else
APU_CONFIGURE_ARGS+= --with-dbm=sdbm
.endif
do-configure:
@cd ${WRKSRC}/apr && ${SETENV} ${CONFIGURE_ENV} ./configure \
${APR_CONFIGURE_ARGS}
@cd ${WRKSRC}/apr-util && ${SETENV} ${CONFIGURE_ENV} ./configure \
${APU_CONFIGURE_ARGS}
post-install:
${RM} ${PREFIX}/libexec/apr/libtool
${INSTALL_SCRIPT} ${PKG_LIBTOOL} ${PREFIX}/libexec/apr/libtool
.include "../../www/apache2/Makefile.common"
.if !empty(APR_USE_DB4:M[Yy][Ee][Ss)
.include "../../databases/db4/buildlink3.mk"
.endif
# Enable OpenLDAP support
.if !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
APU_CONFIGURE_ARGS+= --with-ldap
APR_CONFIGURE_ARGS+= --with-ldap
.include "../../databases/openldap/buildlink3.mk"
.endif
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|