ports/www/mod_auth_mysql2/Makefile
Muhammad Moinur Rahman 9b178ffd7e */*: llvm15 build fixes
llvm15 was also merged into 13.2-STABLE effective from OSVERSION
1302505. Fix the ports that failed to build with llvm15.

Approved by:	portmgr (blanket)
2023-05-17 18:30:15 +02:00

39 lines
1,021 B
Makefile

PORTNAME= mod_auth_mysql
PORTVERSION= 1.11
CATEGORIES= www
MASTER_SITES= http://www.heuer.org/mod_auth_mysql/old/
PKGNAMESUFFIX= 2
DISTNAME= ${PORTNAME}_${PORTVERSION}
DIST_SUBDIR= apache2
MAINTAINER= joneum@FreeBSD.org
COMMENT= MySQL-based authentication module with VirtualHost support
WWW= https://www.heuer.org/mod_auth_mysql/
LICENSE= APACHE20
USES= apache mysql tar:tgz
WRKSRC= ${WRKDIR}/${PORTNAME}
AP_FAST_BUILD= yes
AP_GENPLIST= yes
AP_INC+= ${LOCALBASE}/include/mysql
AP_LIB+= ${LOCALBASE}/lib/mysql -lmysqlclient
PORTDOCS= INSTALL example_data.html htpasswd.sql
OPTIONS_DEFINE= DOCS OPENSSL
OPENSSL_USES= ssl
OPENSSL_VARS= AP_EXTRAS+=-DMYSQL_USE_SSL
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
AP_EXTRAS+= '-Wc, -Wno-error=int-conversion'
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>