aboutsummaryrefslogtreecommitdiffstats
path: root/databases/sqliteodbc
diff options
context:
space:
mode:
Diffstat (limited to 'databases/sqliteodbc')
-rw-r--r--databases/sqliteodbc/Makefile34
-rw-r--r--databases/sqliteodbc/distinfo2
-rw-r--r--databases/sqliteodbc/files/patch-configure20
-rw-r--r--databases/sqliteodbc/pkg-descr3
-rw-r--r--databases/sqliteodbc/pkg-plist28
5 files changed, 87 insertions, 0 deletions
diff --git a/databases/sqliteodbc/Makefile b/databases/sqliteodbc/Makefile
new file mode 100644
index 00000000000..e2be4836c22
--- /dev/null
+++ b/databases/sqliteodbc/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME= sqliteodbc
+PORTVERSION= 0.997
+CATEGORIES= databases
+MASTER_SITES= http://www.ch-werner.de/sqliteodbc/
+
+MAINTAINER= madpilot@FreeBSD.org
+COMMENT= ODBC driver for SQLite 2 and 3
+
+LICENSE= SQLITEODBC
+LICENSE_NAME= sqliteodbc own licensing terms (BSD style)
+LICENSE_FILE= ${WRKSRC}/license.terms
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-sqlite4
+USE_LDCONFIG= yes
+
+OPTIONS_DEFINE= SQLITE SQLITE3
+OPTIONS_DEFAULT= SQLITE3
+
+OPTIONS_SUB= yes
+SQLITE_LIB_DEPENDS= libsqlite.so:${PORTSDIR}/databases/sqlite2
+SQLITE_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
+SQLITE_CONFIGURE_OFF= --with-sqlite=/tmp
+SQLITE3_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
+ libxml2.so:${PORTSDIR}/textproc/libxml2
+SQLITE3_CONFIGURE_ON= --with-sqlite3=${LOCALBASE}
+SQLITE3_CONFIGURE_OFF= --with-sqlite3=/tmp
+
+.include <bsd.port.mk>
diff --git a/databases/sqliteodbc/distinfo b/databases/sqliteodbc/distinfo
new file mode 100644
index 00000000000..88d01270003
--- /dev/null
+++ b/databases/sqliteodbc/distinfo
@@ -0,0 +1,2 @@
+SHA256 (sqliteodbc-0.997.tar.gz) = ff8456163b560e2365ad9c8400258665e64823914f001cb71a1c73477d19a596
+SIZE (sqliteodbc-0.997.tar.gz) = 831436
diff --git a/databases/sqliteodbc/files/patch-configure b/databases/sqliteodbc/files/patch-configure
new file mode 100644
index 00000000000..a9e5069edb1
--- /dev/null
+++ b/databases/sqliteodbc/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2013-08-27 13:34:44.000000000 +0200
++++ configure 2014-03-26 23:49:03.494985827 +0100
+@@ -18043,7 +18043,7 @@
+ SQLITE_LIBDIR="$i/lib"
+ break
+ elif test -d "$i/lib" ; then
+- SQLITE_LIB="-lsqlite"
++ SQLITE_LIB="-L$i/lib -lsqlite"
+ SQLITE_LIBDIR="$i/lib"
+ break
+ fi
+@@ -18564,7 +18564,7 @@
+ SQLITE3_LIBDIR="$i/lib"
+ break
+ elif test -d "$i/lib" ; then
+- SQLITE3_LIB="-lsqlite3"
++ SQLITE3_LIB="-L$i/lib -lsqlite3"
+ SQLITE3_LIBDIR="$i/lib"
+ break
+ fi
diff --git a/databases/sqliteodbc/pkg-descr b/databases/sqliteodbc/pkg-descr
new file mode 100644
index 00000000000..e271e714a36
--- /dev/null
+++ b/databases/sqliteodbc/pkg-descr
@@ -0,0 +1,3 @@
+ODBC driver for SQLite 2 and 3.
+
+WWW: http://www.ch-werner.de/sqliteodbc/
diff --git a/databases/sqliteodbc/pkg-plist b/databases/sqliteodbc/pkg-plist
new file mode 100644
index 00000000000..45733f8b716
--- /dev/null
+++ b/databases/sqliteodbc/pkg-plist
@@ -0,0 +1,28 @@
+%%SQLITE3%%lib/libsqlite3_mod_blobtoxy-0.997.so
+%%SQLITE3%%lib/libsqlite3_mod_blobtoxy.a
+%%SQLITE3%%lib/libsqlite3_mod_blobtoxy.la
+%%SQLITE3%%lib/libsqlite3_mod_blobtoxy.so
+%%SQLITE3%%lib/libsqlite3_mod_csvtable-0.997.so
+%%SQLITE3%%lib/libsqlite3_mod_csvtable.a
+%%SQLITE3%%lib/libsqlite3_mod_csvtable.la
+%%SQLITE3%%lib/libsqlite3_mod_csvtable.so
+%%SQLITE3%%lib/libsqlite3_mod_impexp-0.997.so
+%%SQLITE3%%lib/libsqlite3_mod_impexp.a
+%%SQLITE3%%lib/libsqlite3_mod_impexp.la
+%%SQLITE3%%lib/libsqlite3_mod_impexp.so
+%%SQLITE3%%lib/libsqlite3_mod_xpath-0.997.so
+%%SQLITE3%%lib/libsqlite3_mod_xpath.a
+%%SQLITE3%%lib/libsqlite3_mod_xpath.la
+%%SQLITE3%%lib/libsqlite3_mod_xpath.so
+%%SQLITE3%%lib/libsqlite3_mod_zipfile-0.997.so
+%%SQLITE3%%lib/libsqlite3_mod_zipfile.a
+%%SQLITE3%%lib/libsqlite3_mod_zipfile.la
+%%SQLITE3%%lib/libsqlite3_mod_zipfile.so
+%%SQLITE3%%lib/libsqlite3odbc-0.997.so
+%%SQLITE3%%lib/libsqlite3odbc.a
+%%SQLITE3%%lib/libsqlite3odbc.la
+%%SQLITE3%%lib/libsqlite3odbc.so
+%%SQLITE%%lib/libsqliteodbc-0.997.so
+%%SQLITE%%lib/libsqliteodbc.a
+%%SQLITE%%lib/libsqliteodbc.la
+%%SQLITE%%lib/libsqliteodbc.so