Merge from vendor branch TNF:
[pkgsrcv2.git] / www / ap2-auth-mellon / Makefile
1 # $NetBSD: Makefile,v 1.16 2011/04/22 13:44:57 obache Exp $
2 #
3
4 PKGNAME=        ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//:S/_/-/}
5 DISTNAME=       mod_auth_mellon-0.3.0
6 PKGREVISION=    3
7 CATEGORIES=     www security
8 MASTER_SITES=   http://modmellon.googlecode.com/files/
9
10 MAINTAINER=     manu@NetBSD.org
11 HOMEPAGE=       http://code.google.com/p/modmellon/
12 COMMENT=        SAML 2.0 authentication for Apache
13 LICENSE=        gnu-gpl-v2 # or later
14
15 PKG_DESTDIR_SUPPORT=    user-destdir
16
17 GNU_CONFIGURE=  YES
18 USE_LIBTOOL=    YES
19 USE_TOOLS+=     pkg-config
20
21 APACHE_MODULE=  YES
22 APACHE_MODULE_NAME=     auth_mellon_module
23 PKG_APACHE_ACCEPTED=    apache22
24 .include "../../mk/apache.mk"
25 BUILDLINK_API_DEPENDS.apache+=  apache>=2.0.47
26
27 SUBST_CLASSES+=         pthflags
28 SUBST_MESSAGES=         Convert -pthread flag to apxs style
29 SUBST_STAGE.pthflags=   post-configure
30 SUBST_FILES.pthflags=   Makefile
31 SUBST_SED.pthflags=     -e 's| -pthread | ${"${PTHREAD_CFLAGS:M-pthread}":?-Wc,-pthread:} ${"${PTHREAD_LDFLAGS:M-pthread}":?-Wl,-pthread:} |g'
32
33 INSTALLATION_DIRS+=     lib/httpd
34
35 do-install:
36         cd ${WRKSRC} &&                                                 \
37             libexecdir=`${APXS} -q LIBEXECDIR` &&                       \
38             ${APXS} -i -S LIBEXECDIR=${DESTDIR}"$${libexecdir}"         \
39               -n auth_mellon  mod_auth_mellon.la
40
41 .include "../../security/lasso/buildlink3.mk"
42 .include "../../www/curl/buildlink3.mk"
43
44 .include "../../mk/bsd.pkg.mk"