# $OpenBSD: Makefile,v 1.40 2013/03/21 08:45:14 ajacoutot Exp $ COMMENT= companion library to APR V= 1.4.1 DISTNAME= apr-util-$V REVISION= 0 SHARED_LIBS += aprutil-1 4.1 # .4.1 CATEGORIES= devel MAINTAINER= Stefan Sperling HOMEPAGE= http://apr.apache.org/ FLAVORS= ldap FLAVOR?= # Apache License 2.0 PERMIT_PACKAGE_CDROM= Yes WANTLIB += pthread MASTER_SITES= ${MASTER_SITE_APACHE:=apr/} WANTLIB= expat lib/db4/db>=4 LIB_DEPENDS= databases/db/v4,no_java,no_tcl MODULES= converters/libiconv CONFIGURE_STYLE=autoconf AUTOCONF_VERSION=2.68 CONFIGURE_ARGS= --with-apr=${LOCALBASE} \ --with-dbm=db4 \ --with-berkeley-db=${LOCALBASE}/include/db4:${LOCALBASE}/lib/db4 \ --with-iconv=${LOCALBASE} \ --includedir=${LOCALBASE}/include/apr-1/ \ --with-apr=${LOCALBASE}/bin/apr-1-config \ --with-sqlite3=no \ --with-pgsql=no \ --with-mysql=no \ --with-oracle=no \ --with-freetds=no \ --with-odbc=no .if ${FLAVOR:Mldap} CONFIGURE_ARGS+= --with-ldap-include=${LOCALBASE}/include \ --with-ldap-lib=${LOCALBASE}/lib \ --with-ldap LIB_DEPENDS+= databases/openldap WANTLIB+= asn1 com_err crypto gssapi krb5 sasl2 ssl lber-2.4 ldap-2.4 .else CONFIGURE_ARGS+= --with-ldap=no .endif CONFIGURE_ENV+= APRUTIL_EXPORT_LIBS=-pthread LIB_DEPENDS+= apr-1.4.6:devel/apr WANTLIB+= apr-1=4 .include