summaryrefslogtreecommitdiff
path: root/www/mod_accounting
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-28 12:14:21 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-28 12:14:21 +0000
commit9ef067bd95cd098522aa7a0e1b9b24aa248add4a (patch)
treefef25d222430dd05abe4fb7ac66a0ab05a792db5 /www/mod_accounting
parentNew port for LDAP Directory Administrator (diff)
[update ports]: Use USE_MYSQL and USE_OPENLDAP in my ports
www/mod_accounting [1] mail/perdition [2] security/prelude-manager [3] PR: ports/56026 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Notes
Notes: svn path=/head/; revision=87898
Diffstat (limited to 'www/mod_accounting')
-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>