bd39729c99
from base causing a build failure in apr-util (as there's been nothing changed since then to trigger an update). Set cache value to autoconf to make sure nawk isn't picked up if for some reason it's hanging around, though the REVISION bump alone is probably enough to take care of most problems.
55 lines
1.0 KiB
Makefile
55 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.24 2011/06/15 19:13:48 sthen Exp $
|
|
|
|
COMMENT= Apache Portable Runtime
|
|
|
|
V= 1.2.11
|
|
DISTNAME= apr-$V
|
|
FULLPKGNAME= apr${MT}-$V
|
|
REVISION= 5
|
|
SHARED_LIBS += apr-1${MT} 3.0 # .2.11
|
|
|
|
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
|
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=apr/}
|
|
|
|
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 \
|
|
ac_cv_prog_AWK=awk
|
|
|
|
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}
|
|
|
|
pre-install:
|
|
rm -f ${WRKSRC}/libtool
|
|
|
|
.include <bsd.port.mk>
|