2004-01-27 23:07:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2004/01/27 22:07:04 epg Exp $
|
2003-05-25 10:55:18 +02:00
|
|
|
|
|
|
|
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
|
2003-12-03 16:30:26 +01:00
|
|
|
PKGREVISION= 1
|
2003-05-25 10:55:18 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://apr.apache.org/
|
|
|
|
COMMENT= Apache Portable Runtime
|
|
|
|
|
2003-05-30 08:51:29 +02:00
|
|
|
# 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
|
2003-05-25 10:55:18 +02:00
|
|
|
|
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
USE_LIBTOOL= YES
|
|
|
|
LIBTOOL_OVERRIDE= ${WRKSRC}/apr/libtool
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/srclib
|
|
|
|
BUILD_DIRS= ${WRKSRC}/apr ${WRKSRC}/apr-util
|
|
|
|
|
2003-12-03 15:57:05 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
|
2003-09-04 17:35:51 +02:00
|
|
|
|
2003-06-06 12:49:59 +02:00
|
|
|
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
|
|
|
|
|
2004-01-18 19:55:24 +01:00
|
|
|
APR_CONFIGURE_ARGS= \
|
2003-05-25 10:55:18 +02:00
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-devrandom=/dev/urandom \
|
|
|
|
--with-installbuilddir=${PREFIX}/libexec/apr
|
2004-01-18 19:55:24 +01:00
|
|
|
|
|
|
|
APU_CONFIGURE_ARGS= \
|
2003-05-25 10:55:18 +02:00
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-apr=${WRKSRC}/apr \
|
2004-01-27 23:07:04 +01:00
|
|
|
--with-expat=${BUILDLINK_PREFIX.expat} \
|
|
|
|
--without-gdbm
|
2003-05-25 10:55:18 +02:00
|
|
|
|
2004-01-18 19:55:24 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${APR_USE_DB4} == "YES"
|
|
|
|
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}
|
|
|
|
|
2003-05-25 10:55:18 +02:00
|
|
|
post-install:
|
|
|
|
${RM} ${PREFIX}/libexec/apr/libtool
|
|
|
|
${INSTALL_SCRIPT} ${LIBTOOL} ${PREFIX}/libexec/apr/libtool
|
|
|
|
|
|
|
|
.include "../../www/apache2/Makefile.common"
|
|
|
|
|
2004-01-18 19:55:24 +01:00
|
|
|
.if ${APR_USE_DB4} == "YES"
|
|
|
|
.include "../../databases/db4/buildlink2.mk"
|
|
|
|
.endif
|
|
|
|
|
2003-05-25 10:55:18 +02:00
|
|
|
.include "../../textproc/expat/buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|