[Lunar-commits] <moonbase> libdbi-drivers: Adding a BUILD and adjusting the DEPENDS. Seems its configure

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Thu Jun 16 16:25:15 CEST 2011


commit 2e2f3830be52d43f650298ebe8393924d5822b61
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Thu Jun 16 10:25:15 2011 -0400

    libdbi-drivers: Adding a BUILD and adjusting the DEPENDS. Seems its configure
    
    gets confused if '--with-$VARIABLE' is omitted; then drive will not be built.
---
 sql/libdbi-drivers/BUILD   |   12 ++++++++++++
 sql/libdbi-drivers/DEPENDS |   20 +++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/sql/libdbi-drivers/BUILD b/sql/libdbi-drivers/BUILD
new file mode 100644
index 0000000..11a5002
--- /dev/null
+++ b/sql/libdbi-drivers/BUILD
@@ -0,0 +1,12 @@
+(
+
+  if in_depends $MODULE freetds; then
+    OPTS+=" --with-freetds-incdir=/usr/include --with-freetds-libdir=/usr/lib"
+  fi
+
+  OPTS+=" --disable-docs"
+
+  default_build
+
+)
+
diff --git a/sql/libdbi-drivers/DEPENDS b/sql/libdbi-drivers/DEPENDS
index 6d55cca..fefdd8c 100644
--- a/sql/libdbi-drivers/DEPENDS
+++ b/sql/libdbi-drivers/DEPENDS
@@ -1,15 +1,5 @@
-depends  libdbi
-
-optional_depends  "sqlite"   "--with-sqlite3"  ""  \
-                  "to build the SQLite3 driver"
-
-optional_depends  "mysql"    "--with-mysql"    ""  \
-                  "to build the MySQL driver"
-
-optional_depends  "postgresql" "--with-pgsql"  ""  \
-                  "to build the postgresql driver"
-
-optional_depends  "freetds" "--with-freetds          \
-                  --with-freetds-incdir=/usr/include \
-                  --with-freetds-libdir=/usr/lib"    \
-                  "--without-freetds" "for Tabular Data Stream support"
+optional_depends "libdbi"     "--enable-libdbi"  "--disable-libdbi"  "to link drivers against libdbi"
+optional_depends "sqlite"     "--with-sqlite3"   "--without-sqlite3" "to build the SQLite3 driver"
+optional_depends "mysql"      "--with-mysql"     "--without-mysql"   "to build the MySQL driver"
+optional_depends "postgresql" "--with-pgsql"     "--without-pgsql"   "to build the postgresql driver"
+optional_depends "freetds"    "--with-freetds"   "--without-freetds" "for Tabular Data Stream support"


More information about the Lunar-commits mailing list