aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gtksql/Makefile
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-04-17 08:18:05 +0800
committerreg <reg@FreeBSD.org>2000-04-17 08:18:05 +0800
commit8b766534122d71052c9f8e5a0752944edf0450f8 (patch)
tree255862bd3b0c32802317a9ddc3193fd714753916 /databases/gtksql/Makefile
parente0c8ef49d897de0719277097a1e6578f291f493e (diff)
downloadfreebsd-ports-gnome-8b766534122d71052c9f8e5a0752944edf0450f8.tar.gz
freebsd-ports-gnome-8b766534122d71052c9f8e5a0752944edf0450f8.tar.zst
freebsd-ports-gnome-8b766534122d71052c9f8e5a0752944edf0450f8.zip
Standardize all user defined options to the booleans WITH_FOO and
WITHOUT_FOO. Begin the process of reserving these prefixes for user defined options. No comment by: ports
Diffstat (limited to 'databases/gtksql/Makefile')
-rw-r--r--databases/gtksql/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile
index 7602a28e2acc..be3ed04a8942 100644
--- a/databases/gtksql/Makefile
+++ b/databases/gtksql/Makefile
@@ -14,34 +14,34 @@ MAINTAINER= domi@saargate.de
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-.if defined(PACKAGE_BUILDING) && !defined(USE_MYSQL) && !defined(USE_PGSQL)
-USE_MYSQL= yes
+.if defined(PACKAGE_BUILDING) && !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
+WITH_MYSQL= yes
.endif
-.if defined(USE_MYSQL)
+.if defined(WITH_MYSQL)
LIB_DEPENDS += mysqlclient.6:${PORTSDIR}/databases/mysql322-client
.endif
-.if defined(USE_PGSQL)
+.if defined(WITH_PGSQL)
LIB_DEPENDS += pq.2:${PORTSDIR}/databases/postgresql
.endif
USE_X_PREFIX= yes
pre-patch:
-.if !defined(USE_MYSQL) && !defined(USE_PGSQL)
+.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL)
@ ${ECHO} "You must specify which database to use, possible are:"
@ ${ECHO}
- @ ${ECHO} "make USE_MYSQL=yes (for MySQL support)"
- @ ${ECHO} "make USE_PGSQL=yes (for PostgreSQL support)"
- @ ${ECHO} "make USE_MYSQL=yes USE_PGSQL=yes (for both MySQL and PostgreSQL support)"
+ @ ${ECHO} "make WITH_MYSQL=yes (for MySQL support)"
+ @ ${ECHO} "make WITH_PGSQL=yes (for PostgreSQL support)"
+ @ ${ECHO} "make WITH_MYSQL=yes WITH_PGSQL=yes (for both MySQL and PostgreSQL support)"
@ ${FALSE}
.endif
do-configure:
-.if defined(USE_MYSQL)
+.if defined(WITH_MYSQL)
@ ${PERL} -i -pe "s/^#MYSQL/MYSQL/g" ${WRKDIR}/${DISTNAME}/Makefile
.endif
-.if defined(USE_PGSQL)
+.if defined(WITH_PGSQL)
@ ${PERL} -i -pe "s/^#PGSQL/PGSQL/g" ${WRKDIR}/${DISTNAME}/Makefile
.endif