diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /libs_devel/sqlite/sqlite.build | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'libs_devel/sqlite/sqlite.build')
-rwxr-xr-x | libs_devel/sqlite/sqlite.build | 66 |
1 files changed, 66 insertions, 0 deletions
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}" +} |