blob: bd35e14e8d177469e670b6aa2508285d0d816ed7 (
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
|
# $NetBSD: Makefile,v 1.6 2003/10/11 13:40:19 grant Exp $
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
PKGREVISION= 1
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_BUILDLINK2= YES
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/apr/libtool
WRKSRC= ${WRKDIR}/${DISTNAME}/srclib
BUILD_DIRS= ${WRKSRC}/apr ${WRKSRC}/apr-util
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
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
do-configure:
@cd ${WRKSRC}/apr && ${SETENV} ${CONFIGURE_ENV} ./configure \
--prefix=${PREFIX} \
--with-devrandom=/dev/urandom \
--with-installbuilddir=${PREFIX}/libexec/apr
@cd ${WRKSRC}/apr-util && ${SETENV} ${CONFIGURE_ENV} ./configure \
--prefix=${PREFIX} \
--with-apr=${WRKSRC}/apr \
--with-dbm=sdbm \
--with-expat=${BUILDLINK_PREFIX.expat}
post-install:
${RM} ${PREFIX}/libexec/apr/libtool
${INSTALL_SCRIPT} ${LIBTOOL} ${PREFIX}/libexec/apr/libtool
.include "../../www/apache2/Makefile.common"
.include "../../textproc/expat/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|