aboutsummaryrefslogtreecommitdiffstats
path: root/databases/cppdb
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2016-07-17 19:28:46 +0800
committerriggs <riggs@FreeBSD.org>2016-07-17 19:28:46 +0800
commitdd1c4d317ae8323ddcc1dd793cefb99319963146 (patch)
tree5d104f3389b3945321179d66ddbf20b4d0eaf058 /databases/cppdb
parent4be801f5f6450dcb829f0d921db2bf02c13f532c (diff)
downloadfreebsd-ports-gnome-dd1c4d317ae8323ddcc1dd793cefb99319963146.tar.gz
freebsd-ports-gnome-dd1c4d317ae8323ddcc1dd793cefb99319963146.tar.zst
freebsd-ports-gnome-dd1c4d317ae8323ddcc1dd793cefb99319963146.zip
Fix plist for non-default OPTIONs
While on it: USE_MYSQL -> USES=mysql PR: 211165 Submitted by: info@babaei.net (maintainer) Reported by: riggs
Diffstat (limited to 'databases/cppdb')
-rw-r--r--databases/cppdb/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/databases/cppdb/Makefile b/databases/cppdb/Makefile
index 5007b34232ba..e94e27c3bc20 100644
--- a/databases/cppdb/Makefile
+++ b/databases/cppdb/Makefile
@@ -49,15 +49,16 @@ USES= cmake:outsource ninja tar:bzip2
CMAKE_ARGS+= -DDISABLE_MYSQL:BOOL=ON
PLIST_SUB+= MYSQL="@comment "
.else
-USE_MYSQL= yes
+USES+= mysql
CMAKE_ARGS+= -DDISABLE_MYSQL:BOOL=OFF
.if ${PORT_OPTIONS:MMYSQL_INTERNAL}
CMAKE_ARGS+= -DMYSQL_BACKEND_INTERNAL:BOOL=ON
+PLIST_SUB+= MYSQL="@comment "
.elif ${PORT_OPTIONS:MMYSQL_MODULE}
CMAKE_ARGS+= -DMYSQL_BACKEND_INTERNAL:BOOL=OFF
-.endif
PLIST_SUB+= MYSQL=""
.endif
+.endif
.if ${PORT_OPTIONS:MODBC_DISABLE}
CMAKE_ARGS+= -DDISABLE_ODBC:BOOL=ON
@@ -67,11 +68,12 @@ LIB_DEPENDS+= libodbc.so:databases/unixODBC
CMAKE_ARGS+= -DDISABLE_ODBC:BOOL=OFF
.if ${PORT_OPTIONS:MODBC_INTERNAL}
CMAKE_ARGS+= -DODBC_BACKEND_INTERNAL:BOOL=ON
+PLIST_SUB+= ODBC="@comment "
.elif ${PORT_OPTIONS:MODBC_MODULE}
CMAKE_ARGS+= -DODBC_BACKEND_INTERNAL:BOOL=OFF
-.endif
PLIST_SUB+= ODBC=""
.endif
+.endif
.if ${PORT_OPTIONS:MPGSQL_DISABLE}
CMAKE_ARGS+= -DDISABLE_PQ:BOOL=ON
@@ -81,11 +83,12 @@ USES+= pgsql
CMAKE_ARGS+= -DDISABLE_PQ:BOOL=OFF
.if ${PORT_OPTIONS:MPGSQL_INTERNAL}
CMAKE_ARGS+= -DPQ_BACKEND_INTERNAL:BOOL=ON
+PLIST_SUB+= PGSQL="@comment "
.elif ${PORT_OPTIONS:MPGSQL_MODULE}
CMAKE_ARGS+= -DPQ_BACKEND_INTERNAL:BOOL=OFF
-.endif
PLIST_SUB+= PGSQL=""
.endif
+.endif
.if ${PORT_OPTIONS:MSQLITE3_DISABLE}
CMAKE_ARGS+= -DDISABLE_SQLITE:BOOL=ON
@@ -95,10 +98,11 @@ USES+= sqlite:3
CMAKE_ARGS+= -DDISABLE_SQLITE:BOOL=OFF
.if ${PORT_OPTIONS:MSQLITE3_INTERNAL}
CMAKE_ARGS+= -DSQLITE_BACKEND_INTERNAL:BOOL=ON
+PLIST_SUB+= SQLITE3="@comment "
.elif ${PORT_OPTIONS:MSQLITE3_MODULE}
CMAKE_ARGS+= -DSQLITE_BACKEND_INTERNAL:BOOL=OFF
-.endif
PLIST_SUB+= SQLITE3=""
.endif
+.endif
.include <bsd.port.mk>