aboutsummaryrefslogtreecommitdiff
path: root/www/mod_accounting/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_accounting/Makefile')
-rw-r--r--www/mod_accounting/Makefile29
1 files changed, 2 insertions, 27 deletions
diff --git a/www/mod_accounting/Makefile b/www/mod_accounting/Makefile
index 785dd695524b..8c934dc35938 100644
--- a/www/mod_accounting/Makefile
+++ b/www/mod_accounting/Makefile
@@ -20,25 +20,6 @@ BUILD_DEPENDS+= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
MAKE_ARGS+= APXS="${APXS}"
APXS?= ${LOCALBASE}/sbin/apxs
-# MySQL deps hack
-MYSQL323_LIBVER=10
-MYSQL40_LIBVER= 12
-MYSQL41_LIBVER= 14
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_MYSQL_VER)
-MYSQL_VER= ${WITH_MYSQL_VER}
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER})
-MYSQL_VER= 323
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER})
-MYSQL_VER= 40
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER})
-MYSQL_VER= 41
-.else
-MYSQL_VER= 323
-.endif
-
.if defined(WITHOUT_PGSQL)
MAKE_ARGS+= WITHOUT_PGSQL=YES
.else
@@ -48,19 +29,13 @@ LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
.if defined(WITHOUT_MYSQL)
MAKE_ARGS+= WITHOUT_MYSQL=YES
.else
-LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client
+USE_MYSQL= YES
.endif
DOCS= README FAQ.txt LICENSE
pre-everything::
@${ECHO} ""
- @${ECHO} "You may use the following build options:"
- @${ECHO} ""
- @${ECHO} " WITH_MYSQL_VER=323 Enable MySQL 3.23 support (default)"
- @${ECHO} " WITH_MYSQL_VER=40 Enable MySQL 4.0 support"
- @${ECHO} " WITH_MYSQL_VER=41 Enable MySQL 4.1 support"
- @${ECHO} ""
@${ECHO} " WITHOUT_MYSQL Disable MySQL support"
@${ECHO} " WITHOUT_PGSQL Disable PostgreSQL support"
@${ECHO} ""
@@ -76,4 +51,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>