Fix Apache 2.2 build.
This commit is contained in:
parent
59312ff4fc
commit
69fe38e70b
1 changed files with 50 additions and 24 deletions
|
@ -1,34 +1,60 @@
|
|||
# $NetBSD: Makefile,v 1.7 2008/07/27 16:41:34 joerg Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2008/07/27 16:59:57 joerg Exp $
|
||||
#
|
||||
|
||||
DISTNAME= modxslt-${DIST_VER}
|
||||
PKGNAME= ${APACHE_PKG_PREFIX}-xslt2-${DIST_VER}
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.mod-xslt2.com/software/archive/${DIST_VER}/
|
||||
DISTNAME= libapache-mod-auth-mysql_4.3.1
|
||||
PKGNAME= ${APACHE_PKG_PREFIX}-auth-mysql-4.3.1
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
||||
CATEGORIES= www databases security
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/liba/libapache-mod-auth-mysql/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://www.mod-xslt2.com/
|
||||
COMMENT= Apache module able to apply stylesheets to XML data on the fly
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://packages.debian.org/unstable/net/libapache-mod-auth-mysql.html
|
||||
COMMENT= Module to allow apache authentication against a MySQL database
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LIBTOOL= yes
|
||||
USE_TOOLS+= gmake bash:run
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
APACHE_MODULE= yes
|
||||
DIST_VER= 2004112100
|
||||
CONFLICTS= ap-auth-mysql-[0-9]*
|
||||
|
||||
PKG_APACHE_ACCEPTED= apache2
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
CONFIGURE_ARGS+= --enable-fallback-wraparound
|
||||
CONFIGURE_ARGS+= --enable-libxslt-hack
|
||||
CONFIGURE_ARGS+= --with-apxs=${PREFIX}/sbin/apxs
|
||||
CONFIGURE_ARGS+= --with-mysql-includes=${BUILDLINK_PREFIX.mysql-client}/include/mysql \
|
||||
--with-mysql-libs=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
|
||||
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
|
||||
|
||||
REPLACE_BASH= utils/modxslt-config.pre.in
|
||||
|
||||
.include "../../devel/pcre/buildlink3.mk"
|
||||
.include "../../textproc/libxml2/buildlink3.mk"
|
||||
.include "../../textproc/libxslt/buildlink3.mk"
|
||||
.include "../../mk/apache.mk"
|
||||
.include "../../mk/pthread.buildlink3.mk"
|
||||
|
||||
.if ${PKG_APACHE} == "apache13"
|
||||
CONFIGURE_ARGS+= --enable-apache13 --disable-apache2
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-apache13 --enable-apache2
|
||||
.endif
|
||||
|
||||
APACHE_MODULE= YES
|
||||
APACHE_MODULE_NAME= mod_auth_mysql.so
|
||||
|
||||
INSTALLATION_DIRS= lib/httpd share/doc/mod_auth_mysql
|
||||
|
||||
do-install:
|
||||
if [ -f ${WRKSRC}/.libs/apache2_mod_auth_mysql.so ]; then \
|
||||
${INSTALL_DATA} \
|
||||
${WRKSRC}/.libs/apache2_mod_auth_mysql.so \
|
||||
${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
|
||||
elif [ -f ${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
|
||||
${INSTALL_DATA} \
|
||||
${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so \
|
||||
${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
|
||||
elif [ -f ${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
|
||||
${INSTALL_DATA} \
|
||||
${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so \
|
||||
${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
|
||||
elif [ -f ${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so ]; then \
|
||||
${INSTALL_DATA} \
|
||||
${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so \
|
||||
${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
|
||||
fi
|
||||
${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
|
||||
${INSTALL_DATA} ${WRKSRC}/USAGE ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
|
||||
|
||||
.include "../../mk/mysql.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in a new issue