openbsd-ports/devel/apr-util/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

2007-07-05 12:02:03 -04:00
# $OpenBSD: Makefile,v 1.15 2007/07/05 16:02:03 steven Exp $
COMMENT= "companion library to APR"
2007-07-05 12:02:03 -04:00
DISTNAME= apr-util-1.2.8
FULLPKGNAME= apr-util${MT}-1.2.8
SHARED_LIBS += aprutil-1${MT} 2.9 # .2.9
2006-01-06 08:14:28 -05:00
CATEGORIES= devel
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
HOMEPAGE= http://apr.apache.org/
FLAVORS= mt
FLAVOR?=
# 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/}
2007-04-28 10:02:26 -04:00
WANTLIB= expat
LIB_DEPENDS= lib/db4/db.=4:db-4.*:databases/db/v4
MODULES= converters/libiconv
2006-01-06 08:14:28 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-apr=${LOCALBASE} \
--with-dbm=db4 \
--with-berkeley-db=${LOCALBASE}/include/db4:${LOCALBASE}/lib/db4 \
2007-04-28 10:02:26 -04:00
--with-expat=${X11BASE} \
--with-iconv=${LOCALBASE} \
--includedir=${LOCALBASE}/include/apr-1${MT}/ \
--with-apr=${LOCALBASE}/bin/apr-1${MT}-config
MT?=
.if ${FLAVOR:L:Mmt}
MT=-mt
2007-07-05 12:02:03 -04:00
LIB_DEPENDS+= apr-1-mt.=2:apr-mt-1.2.9:devel/apr,mt
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
.else
2007-07-05 12:02:03 -04:00
LIB_DEPENDS+= apr-1.=2:apr-1.2.9:devel/apr
.endif
SUBST_VARS+= MT
MAKE_ENV+= MT=${MT}
.include <bsd.port.mk>