From e43557a8c1e067c9f97f4e36e99fba37329849d0 Mon Sep 17 00:00:00 2001 From: obache Date: Fri, 18 Mar 2011 09:48:54 +0000 Subject: * LICENSE=gnu-gpl-v2 * remove unwanted CONFIGURE_ENV and CONFIGURE_ARGS items. * add a trick to convert `-pthread' flags to apxs style. * add user-destdir installation support --- www/ap2-auth-mellon/Makefile | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'www/ap2-auth-mellon') diff --git a/www/ap2-auth-mellon/Makefile b/www/ap2-auth-mellon/Makefile index 9fcb730a296..b898f93d92b 100644 --- a/www/ap2-auth-mellon/Makefile +++ b/www/ap2-auth-mellon/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2010/05/31 16:46:30 manu Exp $ +# $NetBSD: Makefile,v 1.14 2011/03/18 09:48:54 obache Exp $ # PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//:S/_/-/} @@ -9,6 +9,9 @@ MASTER_SITES= http://modmellon.googlecode.com/files/ MAINTAINER= manu@NetBSD.org HOMEPAGE= http://code.google.com/p/modmellon/ COMMENT= SAML 2.0 authentication for Apache +LICENSE= gnu-gpl-v2 # or later + +PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= YES USE_LIBTOOL= YES @@ -16,19 +19,23 @@ USE_TOOLS+= pkg-config APACHE_MODULE= YES APACHE_MODULE_NAME= auth_mellon_module -PKG_APACHE_ACCEPTED= apache22 +PKG_APACHE_ACCEPTED= apache22 .include "../../mk/apache.mk" -BUILDLINK_API_DEPENDS.apache+= apache>=2.0.47 +BUILDLINK_API_DEPENDS.apache+= apache>=2.0.47 -CPPFLAGS+= -I${BUILDLINK_PREFIX.openssl}/include/openssl -OPENSSL_LIBS= -L${PREFIX}/lib -lssl -lcrypto +SUBST_CLASSES+= pthflags +SUBST_MESSAGES= Convert -pthread flag to apxs style +SUBST_STAGE.pthflags= post-configure +SUBST_FILES.pthflags= Makefile +SUBST_SED.pthflags= -e 's| -pthread | ${"${PTHREAD_CFLAGS:M-pthread}":?-Wc,-pthread:} ${"${PTHREAD_LDFLAGS:M-pthread}":?-Wl,-pthread:} |g' -CONFIGURE_ENV+= PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig -CONFIGURE_ENV+= OPENSSL_CFLAGS=${CPPFLAGS:Q} -CONFIGURE_ENV+= OPENSSL_LIBS=${OPENSSL_LIBS:Q} -CONFIGURE_ARGS+= --with-apxs2=${APXS:Q} +INSTALLATION_DIRS+= lib/httpd -# url2pkg-marker (please do not remove this line.) +do-install: + cd ${WRKSRC} && \ + libexecdir=`${APXS} -q LIBEXECDIR` && \ + ${APXS} -i -S LIBEXECDIR=${DESTDIR}"$${libexecdir}" \ + -n auth_mellon mod_auth_mellon.la .include "../../security/lasso/buildlink3.mk" .include "../../www/curl/buildlink3.mk" -- cgit v1.2.3