2010-11-01 19:03:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2010/11/01 18:03:03 adam Exp $
|
2007-01-24 20:31:24 +01:00
|
|
|
|
|
|
|
.include "../../www/apache2/Makefile.common"
|
|
|
|
|
|
|
|
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://apr.apache.org/
|
|
|
|
COMMENT= Apache Portable Runtime
|
2009-08-12 05:37:28 +02:00
|
|
|
LICENSE= apache-2.0
|
2007-01-24 20:31:24 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/srclib
|
|
|
|
BUILD_DIRS= apr apr-util
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= LIBS=${LIBS:M*:Q}
|
|
|
|
LIBS.SunOS+= -lnsl
|
|
|
|
|
2010-11-01 19:03:03 +01:00
|
|
|
INSTALLATION_DIRS+= include/apr-0/arch/unix
|
|
|
|
|
2007-01-24 20:31:24 +01:00
|
|
|
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"
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= conf
|
|
|
|
SUBST_STAGE.conf= pre-configure
|
|
|
|
SUBST_FILES.conf= apr/config.layout apr-util/config.layout
|
|
|
|
SUBST_SED.conf= -e "s,@PREFIX@,${PREFIX},g"
|
|
|
|
SUBST_MESSAGE.conf= Fixing hardcoded paths.
|
|
|
|
|
2007-11-18 17:22:06 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-9.*-*)
|
|
|
|
APR_CONFIGURE_ARGS+= --without-sendfile
|
|
|
|
.endif
|
|
|
|
|
2007-01-24 20:31:24 +01:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
|
|
|
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} ${DESTDIR}${PREFIX}/libexec/apr/libtool
|
|
|
|
${INSTALL_SCRIPT} ${PKG_LIBTOOL} ${DESTDIR}${PREFIX}/libexec/apr/libtool
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/apr/include/arch/*.h ${DESTDIR}${PREFIX}/include/apr-0/arch
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/apr/include/arch/unix/*.h ${DESTDIR}${PREFIX}/include/apr-0/arch/unix/
|
|
|
|
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/apr-0/*.h
|
|
|
|
${CHMOD} ${PKGDIRMODE} ${DESTDIR}${PREFIX}/include/apr-0
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/include/apr-0/
|
|
|
|
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|