aboutsummaryrefslogtreecommitdiffstats
path: root/main/sqlite
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-04-19 10:05:48 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-04-19 10:05:48 +0200
commit07b7bf862064067421302ad66b32014c64c94673 (patch)
treea26ab0280e6f4c4d7496acaa0f3f3dc268d8e500 /main/sqlite
parentff9921b4055c571d6bfc6d926a0b87a281b17b1d (diff)
downloadaports-07b7bf862064067421302ad66b32014c64c94673.tar.bz2
aports-07b7bf862064067421302ad66b32014c64c94673.tar.xz
main/sqlite: cleanup/refactor apkbuild
Diffstat (limited to 'main/sqlite')
-rw-r--r--main/sqlite/APKBUILD33
1 files changed, 20 insertions, 13 deletions
diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD
index 6abbaec9f9..909ee85560 100644
--- a/main/sqlite/APKBUILD
+++ b/main/sqlite/APKBUILD
@@ -23,21 +23,26 @@ url="http://www.sqlite.org/"
arch="all"
license="custom"
depends=""
-makedepends="tcl readline-dev"
+makedepends="readline-dev"
source="http://www.sqlite.org/2016/$pkgname-autoconf-$_ver.tar.gz
license.txt"
-
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
-_builddir="$srcdir"/$pkgname-autoconf-$_ver
-prepare() {
- cd "$_builddir"
-}
+builddir="$srcdir/$pkgname-autoconf-$_ver"
+
+_amalgamation="-DSQLITE_ENABLE_FTS3 \
+ -DSQLITE_ENABLE_FTS3_PARENTHESIS \
+ -DSQLITE_ENABLE_COLUMN_METADATA \
+ -DSQLITE_SECURE_DELETE \
+ -DSQLITE_ENABLE_UNLOCK_NOTIFY \
+ -DSQLITE_ENABLE_RTREE \
+ -DSQLITE_USE_URI \
+ -DSQLITE_ENABLE_DBSTAT_VTAB \
+ -DSQLITE_ENABLE_JSON1"
build() {
- cd "$_builddir"
- export LTLINK_EXTRAS="-ldl"
- export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_RTREE=1 -DSQLITE_USE_URI -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_JSON1 -Iext/fts3"
+ cd "$builddir"
+ export CFLAGS="$CFLAGS $_amalgamation"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -50,14 +55,16 @@ build() {
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- make libsqlite3.la && make -j1 || return 1
+ make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
- install -Dm0644 sqlite3.1 ${pkgdir}/usr/share/man/man1/sqlite3.1
- install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
+ install -Dm0644 sqlite3.1 \
+ ${pkgdir}/usr/share/man/man1/sqlite3.1 || return 1
+ install -Dm644 ${srcdir}/license.txt \
+ ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1
}
libs() {