aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-01-07 05:33:21 +0800
committerbapt <bapt@FreeBSD.org>2013-01-07 05:33:21 +0800
commite17a197dea7c0fb2f9f263b6563b6e138f746768 (patch)
treea23c6b149b807b9b3910875d1c381a87b2d24249 /databases
parent52571079c8a2d8c229954a7af459b3a2e142e904 (diff)
downloadfreebsd-ports-graphics-e17a197dea7c0fb2f9f263b6563b6e138f746768.tar.gz
freebsd-ports-graphics-e17a197dea7c0fb2f9f263b6563b6e138f746768.tar.zst
freebsd-ports-graphics-e17a197dea7c0fb2f9f263b6563b6e138f746768.zip
Convert jlaffayes's ports to new options framework
Approved by: jlaffaye
Diffstat (limited to 'databases')
-rw-r--r--databases/soci/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/databases/soci/Makefile b/databases/soci/Makefile
index 1d1ae7f75aa..5514eb2fd06 100644
--- a/databases/soci/Makefile
+++ b/databases/soci/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: soci
-# Date created: 2010-09-13
-# Whom: Julien Laffaye <kimelto@gmail.com>
-#
+# Created by: Julien Laffaye <kimelto@gmail.com>
# $FreeBSD$
-#
PORTNAME= soci
PORTVERSION= 3.0.0
@@ -28,12 +24,12 @@ ALL_TARGET= build_libs
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
-OPTIONS= MYSQL "Build MySQL driver" on \
- PGSQL "Build PostgreSQL driver" on
+OPTIONS_DEFINE= MYSQL PGSQL
+OPTIONS_DEFAULT= MYSQL PGSQL
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.ifdef (WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
PLIST_SUB+= MYSQL=""
CONFIGURE_ARGS+=--mysql-include=${LOCALBASE}/include/mysql \
@@ -42,7 +38,7 @@ CONFIGURE_ARGS+=--mysql-include=${LOCALBASE}/include/mysql \
PLIST_SUB+= MYSQL="@comment "
.endif
-.ifdef (WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
PLIST_SUB+= PGSQL=""
CONFIGURE_ARGS+=--postgresql-include=${LOCALBASE}/include \
@@ -58,4 +54,4 @@ post-patch:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>