openbsd-ports/devel/apr/Makefile
kurt 4d71d63aee per POSIX accept(2) can return EINTR so have apr_socket_accept() retry
when this happens. http://issues.apache.org/bugzilla/show_bug.cgi?id=41975
fixes issues noticed while testing tomcat-native. regen patches and distinfo
while here.  "looks ok" steven@
2007-04-01 20:03:07 +00:00

50 lines
1015 B
Makefile

# $OpenBSD: Makefile,v 1.10 2007/04/01 20:03:07 kurt Exp $
COMMENT= "Apache Portable Runtime"
DISTNAME= apr-1.2.7
PKGNAME= ${DISTNAME}p1
FULLPKGNAME= apr${MT}-1.2.7p1
SHARED_LIBS += apr-1${MT} 2.7 # .2.7
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
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>