2002-07-15 19:58:32 +02:00
|
|
|
# New ports collection makefile for: apr
|
2002-03-14 17:39:26 +01:00
|
|
|
# Date created: 19 February 2002
|
|
|
|
# Whom: Garrett Rooney <rooneg@electricjellyfish.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2003-11-09 01:57:38 +01:00
|
|
|
# Tunables:
|
2004-02-01 09:07:50 +01:00
|
|
|
# APR_UTIL_WITHOUT_THREADS: disable threads support
|
2003-11-09 01:57:38 +01:00
|
|
|
# APR_UTIL_WITH_GDBM: force dependency on the GNU dbm
|
|
|
|
# APR_UTIL_WITHOUT_GDBM: unconditionally disable the use of GNU dbm
|
|
|
|
# APR_UTIL_WITH_BERKELEY_DB: force dependency on Sleepycat's Berkeley DB 4
|
|
|
|
# APR_UTIL_WITHOUT_BERKELEY_DB: unconditionally disable the use of db4
|
|
|
|
# (the database bindings are detected and recorded automatically if these
|
|
|
|
# switches are not set)
|
2002-03-14 17:39:26 +01:00
|
|
|
|
2002-07-15 19:58:32 +02:00
|
|
|
PORTNAME= apr
|
2003-10-03 07:25:25 +02:00
|
|
|
PORTVERSION= 0.9.4
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 8
|
2002-03-14 17:39:26 +01:00
|
|
|
CATEGORIES= devel
|
2004-01-14 15:45:24 +01:00
|
|
|
#MASTER_SITES= http://www.apache.org/dist/apr/
|
|
|
|
#DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= kuriyama
|
|
|
|
DISTFILES= apr-APR_0_9_BRANCH_20040113112838.tar.gz apr-util-APU_0_9_BRANCH_20040113112849.tar.gz
|
2002-03-14 17:39:26 +01:00
|
|
|
|
2003-10-03 07:25:25 +02:00
|
|
|
MAINTAINER= rodrigc@crodrigues.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= The Apache Group's Portability Library
|
2002-03-14 17:39:26 +01:00
|
|
|
|
2002-12-29 15:46:21 +01:00
|
|
|
LIB_DEPENDS+= expat.4:${PORTSDIR}/textproc/expat2 \
|
2002-08-05 11:38:24 +02:00
|
|
|
iconv.3:${PORTSDIR}/converters/libiconv
|
2002-03-14 17:39:26 +01:00
|
|
|
|
2002-12-29 15:46:21 +01:00
|
|
|
WANT_AUTOCONF_VER= 253
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
2003-06-27 00:58:32 +02:00
|
|
|
USE_LIBTOOL_VER= 14
|
|
|
|
LIBTOOLFILES= # none
|
2003-01-22 02:27:29 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-01-24 04:36:43 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-03-14 17:39:26 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
|
2003-11-06 15:26:01 +01:00
|
|
|
APR_CONF_ENV= CC="${CC}" CFLAGS="${CFLAGS}" ${CONFIGURE_ENV} \
|
2002-12-29 15:46:21 +01:00
|
|
|
CONFIG_SHELL=/bin/sh
|
|
|
|
|
2003-11-06 15:26:01 +01:00
|
|
|
APR_UTIL_CONF_ENV= \
|
|
|
|
CC="${CC}" CFLAGS="${CFLAGS}" ${CONFIGURE_ENV} \
|
2002-12-29 15:46:21 +01:00
|
|
|
CONFIG_SHELL=/bin/sh \
|
|
|
|
CPPFLAGS="-I${PREFIX}/include" \
|
|
|
|
LDFLAGS="-L${PREFIX}/lib"
|
|
|
|
|
2003-04-19 05:29:02 +02:00
|
|
|
APR_UTIL_CONF_ARGS= --with-apr=../apr-${PORTVERSION} \
|
2003-03-28 06:46:27 +01:00
|
|
|
--with-expat=${PREFIX} \
|
|
|
|
--with-iconv=${PREFIX}
|
2002-12-29 15:46:21 +01:00
|
|
|
|
2003-11-09 01:57:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-01 09:07:50 +01:00
|
|
|
.if defined(APR_UTIL_WITHOUT_THREADS)
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
APR_UTIL_CONF_ARGS+= --disable-threads
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-nothr
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -nothr
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2003-11-09 01:57:38 +01:00
|
|
|
.if defined(APR_UTIL_WITHOUT_GDBM)
|
|
|
|
APR_UTIL_CONF_ARGS+= --without-gdbm
|
2004-02-01 09:07:50 +01:00
|
|
|
.elif defined(APR_UTIL_WITH_GDBM) || exists(${LOCALBASE}/lib/libgdbm.so.3)
|
2003-11-09 01:57:38 +01:00
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gdbm
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -gdbm
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(APR_UTIL_WITHOUT_BERKELEY_DB)
|
|
|
|
APR_UTIL_CONF_ARGS+= --without-berkeley-db
|
2004-02-01 09:07:50 +01:00
|
|
|
.elif defined(APR_UTIL_WITH_BERKELEY_DB) || exists(${LOCALBASE}/lib/libdb4.so.0)
|
2003-11-09 01:57:38 +01:00
|
|
|
LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-db4
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -db4
|
|
|
|
.endif
|
|
|
|
.endif
|
2004-02-01 09:07:50 +01:00
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(APR_UTIL_WITHOUT_THREADS)
|
|
|
|
@${ECHO_MSG} "apr library will be built without threads support."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "apr library will be built with threads support."
|
|
|
|
@${ECHO_MSG} "All programs which use apr must be linked with threads too."
|
|
|
|
@${ECHO_MSG} "You can disable threads by defining APR_UTIL_WITHOUT_THREADS."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(APR_UTIL_WITHOUT_GDBM)
|
|
|
|
@${ECHO_MSG} "GDBM support is disabled."
|
|
|
|
.elif defined(APR_UTIL_WITH_GDBM)
|
|
|
|
@${ECHO_MSG} "GDBM support is forced."
|
|
|
|
.elif exists(${LOCALBASE}/lib/libgdbm.so.3)
|
|
|
|
@${ECHO_MSG} "GDBM support is enabled."
|
|
|
|
@${ECHO_MSG} "You can disable GDBM support by defining APR_UTIL_WITHOUT_GDBM."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "GDBM was not found."
|
|
|
|
@${ECHO_MSG} "You can force GDBM support by defining APR_UTIL_WITH_GDBM."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.if defined(APR_UTIL_WITHOUT_BERKELEY_DB)
|
|
|
|
@${ECHO_MSG} "Berkeley db4 support is disabled."
|
|
|
|
.elif defined(APR_UTIL_WITH_BERKELEY_DB)
|
|
|
|
@${ECHO_MSG} "Berkeley db4 support forced."
|
|
|
|
.elif exists(${LOCALBASE}/lib/libdb4.so.0)
|
|
|
|
@${ECHO_MSG} "Berkeley db4 support is enabled."
|
|
|
|
@${ECHO_MSG} "You can disable Berkeley db4 support by defining APR_UTIL_WITHOUT_BERKELEY_DB."
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "Berkeley db4 was not found."
|
|
|
|
@${ECHO_MSG} "You can force Berkeley db4 support by defining APR_UTIL_WITH_BERKELEY_DB."
|
2003-11-09 01:57:38 +01:00
|
|
|
.endif
|
2004-02-01 09:07:50 +01:00
|
|
|
@${ECHO_MSG} ""
|
2003-11-09 01:57:38 +01:00
|
|
|
|
2004-01-14 15:45:24 +01:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKDIR}; \
|
|
|
|
${LN} -s apr-APR_0_9_BRANCH apr-${PORTVERSION}; \
|
|
|
|
${LN} -s apr-util-APU_0_9_BRANCH apr-util-${PORTVERSION}
|
|
|
|
|
2002-03-14 17:39:26 +01:00
|
|
|
pre-configure:
|
2003-06-27 00:58:32 +02:00
|
|
|
cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${SCRIPTS_ENV} ./buildconf
|
|
|
|
cd ${WRKDIR}/apr-util-${PORTVERSION}; \
|
|
|
|
${SETENV} ${SCRIPTS_ENV} ./buildconf \
|
2003-04-19 05:29:02 +02:00
|
|
|
--with-apr=../apr-${PORTVERSION}
|
2002-03-14 17:39:26 +01:00
|
|
|
|
|
|
|
do-configure:
|
2003-04-19 05:29:02 +02:00
|
|
|
cd ${WRKDIR}/apr-${PORTVERSION}; \
|
2002-12-29 15:46:21 +01:00
|
|
|
${SETENV} ${APR_CONF_ENV} ./configure ${CONFIGURE_ARGS}
|
2003-04-19 05:29:02 +02:00
|
|
|
cd ${WRKDIR}/apr-util-${PORTVERSION}; \
|
2002-12-29 15:46:21 +01:00
|
|
|
${SETENV} ${APR_UTIL_CONF_ENV} \
|
2003-04-07 00:37:13 +02:00
|
|
|
./configure ${CONFIGURE_ARGS} ${APR_UTIL_CONF_ARGS}
|
2002-03-14 17:39:26 +01:00
|
|
|
|
|
|
|
do-build:
|
2003-10-03 07:25:25 +02:00
|
|
|
cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
|
|
cd ${WRKDIR}/apr-util-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE}
|
2002-03-14 17:39:26 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-10-03 07:25:25 +02:00
|
|
|
cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} install
|
|
|
|
cd ${WRKDIR}/apr-util-${PORTVERSION}; ${SETENV} ${MAKE_ENV} ${GMAKE} install
|
2002-03-14 17:39:26 +01:00
|
|
|
|
2003-11-09 01:57:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|