Fix plist for non-default OPTIONs

While on it: USE_MYSQL -> USES=mysql

PR:		211165
Submitted by:	info@babaei.net (maintainer)
Reported by:	riggs
This commit is contained in:
Thomas Zander 2016-07-17 11:28:46 +00:00
parent d9b7dcd2ef
commit e3fb988596
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418664

View file

@ -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>