From 00cffa5982bf661e1769894687dfce76dfe26ee8 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 21 Dec 2005 20:36:10 +0000 Subject: - Optionalize MySQL/PgSQL support PR: ports/90110 Submitted by: James O'Gorman Approved by: John Oxley (maintainer) --- mail/vexim/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'mail/vexim') diff --git a/mail/vexim/Makefile b/mail/vexim/Makefile index 44a12ed77d71..844d31bc7ecf 100644 --- a/mail/vexim/Makefile +++ b/mail/vexim/Makefile @@ -17,12 +17,23 @@ VEXIMDIR= www/${PORTNAME} WRKSRC= ${WRKDIR}/vexim2 SUB_FILES= pkg-message -PKGMESSAGE= ${WRKDIR}/pkg-message NO_BUILD= yes -USE_MYSQL= yes USE_APACHE= yes USE_PHP= yes +OPTIONS= MYSQL "Use MySQL" On \ + PGSQL "Use PostgreSQL" Off + +.include + +.if !defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) +USE_MYSQL= yes +.endif + +.if defined(WITH_PGSQL) +WITH_PGSQL= yes +.endif + post-patch: ${FIND} ${WRKSRC} -name CVS -prune -exec ${RM} -r {} \; @@ -49,4 +60,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include -- cgit v1.2.3