summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/qore-sqlite3-module/DESCR3
-rw-r--r--databases/qore-sqlite3-module/Makefile31
-rw-r--r--databases/qore-sqlite3-module/PLIST3
-rw-r--r--databases/qore-sqlite3-module/distinfo7
-rw-r--r--databases/qore-sqlite3-module/options.mk12
-rw-r--r--databases/qore-sqlite3-module/patches/patch-configure24
-rw-r--r--databases/qore-sqlite3-module/patches/patch-src_Makefile.in14
7 files changed, 94 insertions, 0 deletions
diff --git a/databases/qore-sqlite3-module/DESCR b/databases/qore-sqlite3-module/DESCR
new file mode 100644
index 00000000000..8c7b50e3592
--- /dev/null
+++ b/databases/qore-sqlite3-module/DESCR
@@ -0,0 +1,3 @@
+SQLite 3 driver for the Qore language DBI system, using this module Qore
+programs can access SQLite 3 file and in-memory databases using the
+Datasource and DatasourcePool classes.
diff --git a/databases/qore-sqlite3-module/Makefile b/databases/qore-sqlite3-module/Makefile
new file mode 100644
index 00000000000..15fca5a6a53
--- /dev/null
+++ b/databases/qore-sqlite3-module/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2014/12/30 15:45:04 wiz Exp $
+
+DISTNAME= qore-sqlite3-module-1.0.1
+PKGREVISION= 4
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qore/}
+
+MAINTAINER= nros@users.sourceforge.net
+HOMEPAGE= http://www.qore.org/
+COMMENT= SQLite module for Qore
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+PTHREAD_OPTS+= native
+
+CONFIGURE_ARGS+=--with-sqlite3=${BUILDLINK_PREFIX.sqlite3}
+
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/docs/sqlite3-module-doc.html \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "options.mk"
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../lang/qore/buildlink3.mk"
+.include "../../lang/qore/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/qore-sqlite3-module/PLIST b/databases/qore-sqlite3-module/PLIST
new file mode 100644
index 00000000000..747b5903c53
--- /dev/null
+++ b/databases/qore-sqlite3-module/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/12/30 15:45:04 wiz Exp $
+${QORE_MODULE_DIR}/sqlite3-api-${QORE_MODULE_API}.qmod
+share/doc/${PKGBASE}/sqlite3-module-doc.html
diff --git a/databases/qore-sqlite3-module/distinfo b/databases/qore-sqlite3-module/distinfo
new file mode 100644
index 00000000000..1cc0b452c2e
--- /dev/null
+++ b/databases/qore-sqlite3-module/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/12/30 15:45:04 wiz Exp $
+
+SHA1 (qore-sqlite3-module-1.0.1.tar.gz) = 47572df91050c029fb62be4797354e8d2398853c
+RMD160 (qore-sqlite3-module-1.0.1.tar.gz) = 1e702691fdf4cdc51157f1549218ffb1ced50eb5
+Size (qore-sqlite3-module-1.0.1.tar.gz) = 441570 bytes
+SHA1 (patch-configure) = 4cc1966b52fff9dc44aef00ab73afc4d655677f8
+SHA1 (patch-src_Makefile.in) = 332107621db7378d837d59d4fb76bb7c4aa53c3d
diff --git a/databases/qore-sqlite3-module/options.mk b/databases/qore-sqlite3-module/options.mk
new file mode 100644
index 00000000000..24c2f88ad17
--- /dev/null
+++ b/databases/qore-sqlite3-module/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2014/12/30 15:45:04 wiz Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.qore-sqlite3-module
+PKG_SUPPORTED_OPTIONS= debug
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.else
+CONFIGURE_ARGS+= --disable-debug
+.endif
diff --git a/databases/qore-sqlite3-module/patches/patch-configure b/databases/qore-sqlite3-module/patches/patch-configure
new file mode 100644
index 00000000000..4eb550a702e
--- /dev/null
+++ b/databases/qore-sqlite3-module/patches/patch-configure
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure,v 1.1 2014/12/30 15:45:05 wiz Exp $
+* pkgsarc doesn't use lib64 so don't set it (fixes build on linux)
+http://sf.net/p/qore/code/6817/
+* fix typo so that --with-sqlite3 works correctly
+http://sourceforge.net/p/qore/code/6348/
+--- configure.orig 2010-06-20 09:09:23.000000000 +0000
++++ configure
+@@ -14259,7 +14259,6 @@ if test "$enable_64bit" = "yes"; then
+ *linux*) if test "$GXX" = "yes"; then
+ CXXFLAGS="$CXXFLAGS -m64"
+ fi
+- LIBSUFFIX=64
+
+ ;;
+ *hpux*) if test "$host_cpu" = "ia64"; then
+@@ -14717,7 +14716,7 @@ fi
+
+ # Check whether --with-sqlite3 was given.
+ if test "${with_sqlite3+set}" = set; then :
+- withval=$with_sqlite3; if test ! -d "${with_sqlite3l}"; then as_fn_error "directory ${with_sqlite3} does not exist for --with-sqlite3" "$LINENO" 5; unset with_sqlite3; fi
++ withval=$with_sqlite3; if test ! -d "${with_sqlite3}"; then as_fn_error "directory ${with_sqlite3} does not exist for --with-sqlite3" "$LINENO" 5; unset with_sqlite3; fi
+ fi
+
+
diff --git a/databases/qore-sqlite3-module/patches/patch-src_Makefile.in b/databases/qore-sqlite3-module/patches/patch-src_Makefile.in
new file mode 100644
index 00000000000..3bbee827342
--- /dev/null
+++ b/databases/qore-sqlite3-module/patches/patch-src_Makefile.in
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2014/12/30 15:45:05 wiz Exp $
+* don't install .a file
+http://sourceforge.net/p/qore/code/6290/
+--- src/Makefile.in.orig 2014-02-16 17:29:57.000000000 +0000
++++ src/Makefile.in
+@@ -545,7 +545,7 @@ uninstall-am: uninstall-libLTLIBRARIES
+
+ install-exec-hook:
+ mv $(DESTDIR)$(libdir)/sqlite3.$(MODULE_SUFFIX) $(DESTDIR)$(libdir)/sqlite3-api-$(MODULE_API).qmod
+- rm -f $(DESTDIR)$(libdir)/sqlite3.la
++ rm -f $(DESTDIR)$(libdir)/sqlite3.la $(DESTDIR)$(libdir)/sqlite3.a
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.