Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/firebird.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Provide support for Firebird | # Provide support for Firebird | ||||
# Feature: firebird | # Feature: firebird | ||||
# Usage: USES= firebird[:version] | # Usage: USES= firebird[:version] | ||||
# MAINTAINER: ports@FreeBSD.org | # MAINTAINER: ports@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_FIREBIRD_MK) | .if !defined(_INCLUDE_USES_FIREBIRD_MK) | ||||
_INCLUDE_USES_FIREBIRD_MK= yes | _INCLUDE_USES_FIREBIRD_MK= yes | ||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | |||||
.if !empty(firebird_ARGS) | .if !empty(firebird_ARGS) | ||||
FIREBIRD_VER= ${firebird_ARGS} | FIREBIRD_VER= ${firebird_ARGS} | ||||
.endif | .endif | ||||
FIREBIRD_VER?= ${FIREBIRD_DEFAULT:S/.//} | FIREBIRD_VER?= ${FIREBIRD_DEFAULT:S/.//} | ||||
# When adding a version, please keep the comment in | # When adding a version, please keep the comment in | ||||
# Mk/bsd.default-versions.mk in sync. | # Mk/bsd.default-versions.mk in sync. | ||||
.if ${FIREBIRD_VER} == 25 | .if ${FIREBIRD_VER} == 25 | ||||
LIB_DEPENDS+= libfbclient.so:databases/firebird25-client | LIB_DEPENDS+= libfbclient.so:databases/firebird25-client | ||||
.else | .else | ||||
IGNORE= cannot install: unknown Firebird version: ${FIREBIRD_VER} | IGNORE= cannot install: unknown Firebird version: ${FIREBIRD_VER} | ||||
.endif | .endif | ||||
.endif | .endif |