2008-12-27 10:33:04 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2008/12/27 15:33:04 sturm Exp $
|
2004-11-28 09:42:08 -05:00
|
|
|
|
2007-09-04 17:42:55 -04:00
|
|
|
COMMENT= companion library to APR
|
2004-11-28 09:42:08 -05:00
|
|
|
|
2007-09-20 06:18:37 -04:00
|
|
|
V= 1.2.10
|
|
|
|
DISTNAME= apr-util-$V
|
2008-12-27 10:33:04 -05:00
|
|
|
FULLPKGNAME= apr-util${MT}-$Vp2${FLAVOR_EXT:S/-mt//}
|
2007-09-20 06:18:37 -04:00
|
|
|
SHARED_LIBS += aprutil-1${MT} 2.11 # .2.11
|
2006-01-06 08:14:28 -05:00
|
|
|
|
2004-11-28 09:42:08 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
|
|
|
|
|
|
|
HOMEPAGE= http://apr.apache.org/
|
|
|
|
|
2007-09-04 17:42:55 -04:00
|
|
|
FLAVORS= mt ldap
|
2007-03-24 09:45:12 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-11-28 09:42:08 -05:00
|
|
|
# Apache License 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-11-03 05:56:44 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=apr/}
|
2004-11-28 09:42:08 -05:00
|
|
|
|
2007-04-28 10:02:26 -04:00
|
|
|
WANTLIB= expat
|
2007-10-25 21:23:38 -04:00
|
|
|
LIB_DEPENDS= lib/db4/db.>=4:db-4.*:databases/db/v4
|
2004-11-28 09:42:08 -05:00
|
|
|
|
|
|
|
MODULES= converters/libiconv
|
2006-01-06 08:14:28 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2007-09-20 06:18:37 -04:00
|
|
|
CONFIGURE_STYLE=gnu autoconf
|
|
|
|
AUTOCONF_VERSION=2.59
|
2004-11-28 09:42:08 -05:00
|
|
|
CONFIGURE_ARGS= --with-apr=${LOCALBASE} \
|
|
|
|
--with-dbm=db4 \
|
|
|
|
--with-berkeley-db=${LOCALBASE}/include/db4:${LOCALBASE}/lib/db4 \
|
2007-03-24 09:45:12 -04:00
|
|
|
--with-iconv=${LOCALBASE} \
|
|
|
|
--includedir=${LOCALBASE}/include/apr-1${MT}/ \
|
|
|
|
--with-apr=${LOCALBASE}/bin/apr-1${MT}-config
|
|
|
|
|
2007-09-04 17:42:55 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
CONFIGURE_ARGS+= --with-ldap-include=${LOCALBASE}/include \
|
|
|
|
--with-ldap-lib=${LOCALBASE}/lib \
|
|
|
|
--with-ldap
|
|
|
|
LIB_DEPENDS+= lber,ldap::databases/openldap
|
|
|
|
WANTLIB+= asn1 com_err crypto gssapi krb5 sasl2 ssl
|
|
|
|
.endif
|
|
|
|
|
2007-03-24 09:45:12 -04:00
|
|
|
MT?=
|
|
|
|
.if ${FLAVOR:L:Mmt}
|
|
|
|
MT=-mt
|
2008-12-27 10:33:04 -05:00
|
|
|
CONFIGURE_ENV+= APRUTIL_EXPORT_LIBS=-pthread
|
2008-07-27 06:47:53 -04:00
|
|
|
LIB_DEPENDS+= apr-1-mt.=3:apr-mt-1.2.11:devel/apr,mt
|
2007-03-24 09:45:12 -04:00
|
|
|
|
|
|
|
post-install:
|
2007-03-28 03:02:07 -04:00
|
|
|
sed 's/{APRUTIL_LIBNAME}/{APRUTIL_LIBNAME}-mt/g' ${WRKSRC}/apu-config.out > ${PREFIX}/bin/apu-1-mt-config
|
2007-03-24 09:45:12 -04:00
|
|
|
|
|
|
|
.else
|
2008-07-27 06:47:53 -04:00
|
|
|
LIB_DEPENDS+= apr-1.=3:apr-1.2.11:devel/apr
|
2007-03-24 09:45:12 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBST_VARS+= MT
|
|
|
|
MAKE_ENV+= MT=${MT}
|
2004-11-28 09:42:08 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|