aboutsummaryrefslogtreecommitdiff
path: root/www/mod_auth_mysql_another/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_auth_mysql_another/Makefile')
-rw-r--r--www/mod_auth_mysql_another/Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/www/mod_auth_mysql_another/Makefile b/www/mod_auth_mysql_another/Makefile
index fa138cbdda6c..53ba0ce15a73 100644
--- a/www/mod_auth_mysql_another/Makefile
+++ b/www/mod_auth_mysql_another/Makefile
@@ -17,7 +17,7 @@ COMMENT= Allows users to use MySQL databases for user authentication
MAKE_JOBS_SAFE= yes
USE_MYSQL= YES
-USE_APACHE= 13+
+USE_APACHE= 20+
SHORTMODNAME= mysql_auth
AP_FAST_BUILD= YES
@@ -25,23 +25,13 @@ AP_GENPLIST= YES
AP_INC= ${LOCALBASE}/include/mysql
AP_LIB= ${LOCALBASE}/lib/mysql
AP_EXTRAS= -lmysqlclient -lz -lm
+AP_EXTRAS+= -DAPACHE2
.include <bsd.port.pre.mk>
-.if ${APACHE_VERSION} > 20
-AP_EXTRAS+= -DAPACHE2
-.endif
-
-.if ${APACHE_VERSION} > 20
post-patch:
${REINPLACE_CMD} -e "s|APR_XtOffsetOf|APR_OFFSETOF|g" \
-e "s|APR_XtOffset|APR_OFFSET|g" ${WRKSRC}/mod_auth_mysql.c
-.else
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
- ${REINPLACE_CMD} -e "s|%%APXS%%|${APXS}|g" \
- -e "s|%%AP_INC%%|${AP_INC}|g" -e "s|%%AP_LIB%%|${AP_LIB}|g" ${WRKSRC}/Makefile
-.endif
.if !defined(NOPORTDOCS)
post-build: