aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.database.mk
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2006-10-01 03:25:46 +0800
committerlinimon <linimon@FreeBSD.org>2006-10-01 03:25:46 +0800
commit9d9cab5601898d693370ff6e348778d7943eaaae (patch)
tree626216f3b3985b2bf7fb5973bfd3fff1d2074551 /Mk/bsd.database.mk
parent6352ee8411d5bb86705c62e877feb428d655aead (diff)
downloadfreebsd-ports-gnome-9d9cab5601898d693370ff6e348778d7943eaaae.tar.gz
freebsd-ports-gnome-9d9cab5601898d693370ff6e348778d7943eaaae.tar.zst
freebsd-ports-gnome-9d9cab5601898d693370ff6e348778d7943eaaae.zip
* Split bsd.port.mk pre and post includes into 3 pieces instead of 2, to
allow OPTIONS to be able to influence dependencies. This is still experimental [1] * Teach bsd.gcc.mk about gfortran [2] * Remove the outdated emulators/linux_base; the new default has been linux_base-fc4. This will allow the outdated port to be removed [3] * Add USE_FIREBIRD macros to bsd.database.mk [4] PR: 93687 [1], 93690 [2], 103184 [3], 103357 [4] Submitted by: shaun [1], Pedro F. Giffuni <giffunip at asme to org> [2], gerald [2], thierry [2], vd [3], skv [4]
Diffstat (limited to 'Mk/bsd.database.mk')
-rw-r--r--Mk/bsd.database.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk
index 4af9d90033e3..392d4b9b4846 100644
--- a/Mk/bsd.database.mk
+++ b/Mk/bsd.database.mk
@@ -78,6 +78,14 @@ Database_Include_MAINTAINER= ports@FreeBSD.org
# 3 and 2. If version is not specified directly then
# sqlite3 is used (if USE_SQLITE= yes).
# SQLITE_VER - Detected sqlite version.
+##
+# USE_FIREBIRD - Add dependency on Firebird library. Valid values are:
+# 2 and 1. If no version is given by the maintainer (if
+# USE_FIREBIRD= yes) and the user did not define
+# WITH_FIREBIRD_VER variable, fall back to default "2".
+# WITH_FIREBIRD_VER
+# - User defined variable to set Firebird version.
+# FIREBIRD_VER - Detected Firebird version.
.if defined(USE_MYSQL)
DEFAULT_MYSQL_VER?= 50
@@ -378,4 +386,26 @@ IGNORE= cannot install: unknown sqlite version: ${_SQLITE_VER}
.endif # defined(USE_SQLITE)
+.if defined(USE_FIREBIRD)
+
+.if defined(WITH_FIREBIRD_VER)
+USE_FIREBIRD= ${WITH_FIREBIRD_VER}
+.endif
+
+.if ${USE_FIREBIRD:L} == "yes"
+FIREBIRD_VER= 2
+.else
+FIREBIRD_VER= ${USE_FIREBIRD}
+.endif
+
+.if ${FIREBIRD_VER} == "2"
+LIB_DEPENDS+= fbclient.2:${PORTSDIR}/databases/firebird2-client
+.elif ${FIREBIRD_VER} == "1"
+LIB_DEPENDS+= fbclient.1:${PORTSDIR}/databases/firebird-client
+.else
+IGNORE= cannot install: unknown Firebird version: ${FIREBIRD_VER}
+.endif
+
+.endif # defined(USE_FIREBIRD)
+
.endif # defined(_POSTMKINCLUDED) && !defined(Database_Post_Include)