b7f05445c0
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
107 lines
3.1 KiB
Makefile
107 lines
3.1 KiB
Makefile
PORTNAME= cppdb
|
|
PORTVERSION= 0.3.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= SF/cppcms/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= info@babaei.net
|
|
COMMENT= Platform and database independent SQL connectivity library
|
|
WWW= http://cppcms.com/sql/cppdb/
|
|
|
|
LICENSE= BSL MIT
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE= ${WRKSRC}/copyright.txt
|
|
|
|
NO_OPTIONS_SORT= yes
|
|
OPTIONS_SINGLE= SQLITE3 PGSQL MYSQL ODBC
|
|
OPTIONS_SINGLE_MYSQL= MYSQL_DISABLE MYSQL_INTERNAL MYSQL_MODULE
|
|
OPTIONS_SINGLE_ODBC= ODBC_DISABLE ODBC_INTERNAL ODBC_MODULE
|
|
OPTIONS_SINGLE_PGSQL= PGSQL_DISABLE PGSQL_INTERNAL PGSQL_MODULE
|
|
OPTIONS_SINGLE_SQLITE3= SQLITE3_DISABLE SQLITE3_INTERNAL SQLITE3_MODULE
|
|
|
|
OPTIONS_DEFAULT= MYSQL_DISABLE ODBC_DISABLE PGSQL_DISABLE SQLITE3_MODULE
|
|
|
|
MYSQL_DESC= MySQL Backend
|
|
MYSQL_DISABLE_DESC= Disable MySQL backend
|
|
MYSQL_INTERNAL_DESC= Link MySQL backend into CppDB
|
|
MYSQL_MODULE_DESC= Build MySQL backend as a CppDB module
|
|
ODBC_DESC= ODBC Backend
|
|
ODBC_DISABLE_DESC= Disable ODBC backend
|
|
ODBC_INTERNAL_DESC= Link ODBC backend into CppDB
|
|
ODBC_MODULE_DESC= Build ODBC backend as a CppDB module
|
|
PGSQL_DESC= PostgreSQL Backend
|
|
PGSQL_DISABLE_DESC= Disable PostgreSQL backend
|
|
PGSQL_INTERNAL_DESC= Link PostgreSQL backend into CppDB
|
|
PGSQL_MODULE_DESC= Build PostgreSQL backend as a CppDB module
|
|
SQLITE3_DESC= SQLite 3 Backend
|
|
SQLITE3_DISABLE_DESC= Disable SQLite 3 backend
|
|
SQLITE3_INTERNAL_DESC= Link SQLite 3 backend into CppDB
|
|
SQLITE3_MODULE_DESC= Build SQLite 3 backend as a CppDB module
|
|
|
|
USE_LDCONFIG= yes
|
|
USES= cmake tar:bzip2
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL_DISABLE}
|
|
CMAKE_ARGS+= -DDISABLE_MYSQL:BOOL=ON
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
.else
|
|
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
|
|
PLIST_SUB+= MYSQL=""
|
|
.endif
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MODBC_DISABLE}
|
|
CMAKE_ARGS+= -DDISABLE_ODBC:BOOL=ON
|
|
PLIST_SUB+= ODBC="@comment "
|
|
.else
|
|
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
|
|
PLIST_SUB+= ODBC=""
|
|
.endif
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL_DISABLE}
|
|
CMAKE_ARGS+= -DDISABLE_PQ:BOOL=ON
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
.else
|
|
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
|
|
PLIST_SUB+= PGSQL=""
|
|
.endif
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE3_DISABLE}
|
|
CMAKE_ARGS+= -DDISABLE_SQLITE:BOOL=ON
|
|
PLIST_SUB+= SQLITE3="@comment "
|
|
.else
|
|
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
|
|
PLIST_SUB+= SQLITE3=""
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|