openbsd-ports/devel/apr/Makefile

48 lines
964 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.13 2007/09/04 21:46:25 steven Exp $
COMMENT= "Apache Portable Runtime"
2007-07-05 12:01:28 -04:00
DISTNAME= apr-1.2.9
SHARED_LIBS += apr-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/
# 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/}
2006-01-06 08:14:28 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--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}
.include <bsd.port.mk>