aboutsummaryrefslogtreecommitdiff
path: root/libs_devel/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'libs_devel/sqlite')
-rw-r--r--libs_devel/sqlite/sqlite-src-3071601-lemontmpl.patch.xzbin0 -> 440 bytes
-rw-r--r--libs_devel/sqlite/sqlite-src-3071601-stupidopenfilestest.patch.xzbin0 -> 656 bytes
-rwxr-xr-xlibs_devel/sqlite/sqlite.build66
3 files changed, 66 insertions, 0 deletions
diff --git a/libs_devel/sqlite/sqlite-src-3071601-lemontmpl.patch.xz b/libs_devel/sqlite/sqlite-src-3071601-lemontmpl.patch.xz
new file mode 100644
index 0000000..846c78f
--- /dev/null
+++ b/libs_devel/sqlite/sqlite-src-3071601-lemontmpl.patch.xz
Binary files differ
diff --git a/libs_devel/sqlite/sqlite-src-3071601-stupidopenfilestest.patch.xz b/libs_devel/sqlite/sqlite-src-3071601-stupidopenfilestest.patch.xz
new file mode 100644
index 0000000..c067921
--- /dev/null
+++ b/libs_devel/sqlite/sqlite-src-3071601-stupidopenfilestest.patch.xz
Binary files differ
diff --git a/libs_devel/sqlite/sqlite.build b/libs_devel/sqlite/sqlite.build
new file mode 100755
index 0000000..a43d0e3
--- /dev/null
+++ b/libs_devel/sqlite/sqlite.build
@@ -0,0 +1,66 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=sqlite
+MAJOR=3
+MINOR=7.16.1
+VERSION=${MAJOR}.${MINOR}
+BUILD=1
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: SQLite (An embeddable SQL database engine)
+${NAME}:
+${NAME}: SQLite is a small C library that implements a self-contained,
+${NAME}: embeddable, zero-configuration SQL database engine. It implements
+${NAME}: most of SQL92 and has a small memory footprint. It is faster than
+${NAME}: other popular database engines for most common operations and a
+${NAME}: complete database is stored in a single file.
+${NAME}:
+${NAME}: Homepage: http://www.sqlite.org
+${NAME}:
+${NAME}:
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}-src
+SRCVERS[0]=3071601
+SRCPACK[0]=http://www.sqlite.org/${SRCNAME[0]}-${SRCVERS[0]}.zip
+
+build0()
+{
+sed -i 's|$(libdir)/pkgconfig|$(prefix)/share/pkgconfig|g' Makefile.in
+# sqlite refuses to compile with -ffast-math
+CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" \
+CFLAGS="${FLAGS%-ffast-math}" CXXFLAGS="${FLAGS%-ffast-math}" \
+./configure \
+ --build="${ARCH}-slackware-linux" \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix="${SYS_DIR[usr]}" \
+ --mandir="${SYS_DIR[man]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --libdir="${SYS_DIR[lib]}" \
+ --includedir="${SYS_DIR[include]}/${NAME}-${MAJOR}" \
+ --localstatedir="${SYS_DIR[var]}" \
+ --disable-tcl \
+ --enable-threadsafe \
+ --enable-cross-thread-connections \
+ --enable-tempstore \
+ --enable-load-extension
+make ${JOBS}
+make install DESTDIR="${PKG}"
+}