pkgsrc/www/ap2-auth-pgsql/Makefile
joerg 7ac9657102 Change naming of Apache 2.2 modules to use ap22 prefix.
Allow apache22 in some more case and add a hack to devel/subversion
to determine the module by the state of the apache22 option.
This comes from www/ap2-subversion and should be fixed to properly
use build options or so.

OK agc@
2007-06-30 16:09:07 +00:00

35 lines
1,015 B
Makefile

# $NetBSD: Makefile,v 1.18 2007/06/30 16:09:07 joerg Exp $
DISTNAME= mod_auth_pgsql-2.0.3
PKGNAME= ${APACHE_PKG_PREFIX}-auth-pgsql-2.0.3
PKGREVISION= 4
CATEGORIES= www databases
MASTER_SITES= http://www.giuseppetanzilli.it/mod_auth_pgsql2/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.giuseppetanzilli.it/mod_auth_pgsql2/
COMMENT= Allows users to use PostgreSQL databases for user authentication
CONFLICTS= ap-auth-postgresql-*
APACHE_MODULE= yes
APACHE_MODULE_NAME= ap2-auth-pgsql
PKG_APACHE_ACCEPTED= apache2 apache22
do-build:
cd ${WRKSRC} && \
${APXS} -c -n ${APACHE_MODULE_NAME} \
-I${PGSQL_PREFIX}/include/postgresql \
-L${LOCALBASE}/lib \
${COMPILER_RPATH_FLAG}${LOCALBASE}/lib \
-lpq ${DISTNAME:C/-[^-]*$//}.c
do-install:
(cd ${WRKSRC} && ${APXS} -i ${DISTNAME:C/-[^-]*$//}.la)
#${MKDIR} ${DOCSDIR}
#${INSTALL_DATA} ${WRKSRC}/mod_auth_pgsql.html ${DOCSDIR}
.include "../../mk/apache.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"