Introduce 2 new USES: sqlite and firebird

sqlite and firebird handling code has been extracted from bsd.databases.mk
add an entry in bsd.sanity.mk to mark USE_SQLITE and USE_FIREBIRD as deprecated
This commit is contained in:
Baptiste Daroussin 2016-01-10 16:15:29 +00:00
parent e259244a33
commit bf548998cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405716
4 changed files with 57 additions and 1 deletions

View File

@ -10,6 +10,12 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
20150110:
AUTHOR: bapt@FreeBSD.org
USE_FIREBIRD and USE_SQLITE has been replaced by USES=firebird and
USES=sqlite
20151105:
AUTHOR: mat@FreeBSD.org

23
Mk/Uses/firebird.mk Normal file
View File

@ -0,0 +1,23 @@
# $FreeBSD$
#
# Provide support for SQLite
# Feature: sqlite
# Usage: USES= sqlite[:version]
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_FIREBIRD_MK)
_INCLUDE_USES_FIREBIRD_MK= yes
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
.if !empty(firebird_ARGS)
FIREBIRD_VER= ${firebird_ARGS}
.endif
FIREBIRD_VER?= ${FIREBIRD_DEFAULT:S/.//}
.if ${FIREBIRD_VER} == 25
LIB_DEPENDS+= libfbclient.so:${PORTSDIR}/databases/firebird25-client
.else
IGNORE= cannot install: unknown Firebird version: ${FIREBIRD_VER}
.endif
.endif

24
Mk/Uses/sqlite.mk Normal file
View File

@ -0,0 +1,24 @@
# $FreeBSD$
#
# Provide support for SQLite
# Feature: sqlite
# Usage: USES= sqlite[:version]
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_SQLITE_MK)
_INCLUDE_USES_SQLITE_MK= yes
.if !empty(sqlite_ARGS)
SQLITE_VER= ${sqlite_ARGS}
.endif
SQLITE_VER?= 3
.if ${SQLITE_VER} == 3
LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite${SQLITE_VER}
.elif ${SQLITE_VER} == 2
LIB_DEPENDS+= libsqlite.so:${PORTSDIR}/databases/sqlite${SQLITE_VER}
.else
IGNORE= cannot install: unknown SQLite version: ${SQLITE_VER}
.endif
.endif

View File

@ -165,7 +165,8 @@ SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \
PYDISTUTILS_AUTOPLIST PYTHON_PY3K_PLIST_HACK PYDISTUTILS_NOEGGINFO \
USE_PYTHON_PREFIX USE_BZIP2 USE_XZ USE_PGSQL NEED_ROOT \
UNIQUENAME LATEST_LINK
SANITY_DEPRECATED= PYTHON_PKGNAMESUFFIX USE_AUTOTOOLS PLIST_DIRSTRY
SANITY_DEPRECATED= PYTHON_PKGNAMESUFFIX USE_AUTOTOOLS PLIST_DIRSTRY USE_SQLITE \
USE_FIREBIRD
SANITY_NOTNEEDED= WX_UNICODE
USE_AUTOTOOLS_ALT= USES=autoreconf and GNU_CONFIGURE=yes
@ -204,6 +205,8 @@ UNIQUENAME_ALT= PKGBASE
LATEST_LINK_ALT= PKGBASE
WX_UNICODE_REASON= Now no-op as only unicode is supported now
PLIST_DIRSTRY_ALT= PLIST_DIRS
USE_SQLITE_ALT= USES=sqlite
USE_FIREBIRD_ALT= USES=firebird
.for a in ${SANITY_DEPRECATED}
.if defined(${a})