1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/Mk/Uses/firebird.mk
Jose Alonso Cardenas Marquez b03649227f Mk/Uses/firebird.mk: Prepare support for firebird 3.0 and 4.0
PR:		256846
Approved by:	rene
2021-06-27 18:29:53 -05:00

34 lines
865 B
Makefile

# Provide support for Firebird
# Feature: firebird
# Usage: USES= firebird[:version]
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_FIREBIRD_MK)
_INCLUDE_USES_FIREBIRD_MK= yes
.if !empty(firebird_ARGS)
FIREBIRD_VER= ${firebird_ARGS}
.else
FIREBIRD_VER= ${FIREBIRD_DEFAULT}
.endif
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
VALID_FIREBIRD_VER= 2.5 3.0 4.0
.for v in ${FIREBIRD_DEFAULT}
. if ! ${VALID_FIREBIRD_VER:M$v}
IGNORE= Invalid Firebird default version ${FIREBIRD_DEFAULT}; valid versions are ${VALID_FIREBIRD_VER}
. endif
.endfor
.for w in ${FIREBIRD_VER}
. if ! ${VALID_FIREBIRD_VER:M$w}
IGNORE= Invalid Firebird version ${FIREBIRD_VER}; valid versions are ${VALID_FIREBIRD_VER}
. endif
.endfor
LIB_DEPENDS+= libfbclient.so:databases/firebird${FIREBIRD_VER:S/.//}-client
.endif