2008-07-25 16:25:59 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2008/07/25 20:25:59 sthen Exp $
|
2004-11-28 09:27:38 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= Apache Portable Runtime
|
2004-11-28 09:27:38 -05:00
|
|
|
|
2007-09-20 06:17:21 -04:00
|
|
|
V= 1.2.11
|
|
|
|
DISTNAME= apr-$V
|
2008-07-25 16:25:59 -04:00
|
|
|
FULLPKGNAME= apr${MT}-$Vp2
|
|
|
|
SHARED_LIBS += apr-1${MT} 3.0 # .2.11
|
2006-01-06 08:14:28 -05:00
|
|
|
|
2004-11-28 09:27:38 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
|
|
|
|
|
|
|
HOMEPAGE= http://apr.apache.org/
|
|
|
|
|
|
|
|
# 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:27:38 -05:00
|
|
|
|
2006-01-06 08:14:28 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2004-11-28 09:27:38 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2007-03-24 09:46:47 -04:00
|
|
|
--includedir=${LOCALBASE}/include/apr-1${MT}/ \
|
|
|
|
--with-installbuilddir=${LOCALBASE}/lib/apr-1${MT}/ \
|
|
|
|
--enable-other-child
|
|
|
|
|
|
|
|
FLAVORS= mt
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
SUBST_VARS+= MT
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmt}
|
|
|
|
MT=-mt
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
sed 's/{APR_LIBNAME}/{APR_LIBNAME}-mt/g' ${WRKSRC}/apr-config.out > ${PREFIX}/bin/apr-1-mt-config
|
|
|
|
|
|
|
|
.else
|
|
|
|
MT=
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
|
|
|
MAKE_ENV+= MT=${MT}
|
2004-11-28 09:27:38 -05:00
|
|
|
|
2007-10-30 12:47:50 -04:00
|
|
|
pre-install:
|
|
|
|
rm -f ${WRKSRC}/libtool
|
|
|
|
|
2004-11-28 09:27:38 -05:00
|
|
|
.include <bsd.port.mk>
|