From 35190bff713456a8f014f58eda1546b3f622aa8a Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 16 Feb 2017 22:33:37 +0100 Subject: [PATCH] sqlite: add recipe for version 3.17.0. --- dev-db/sqlite/sqlite-3.17.0.0.recipe | 88 ++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 dev-db/sqlite/sqlite-3.17.0.0.recipe diff --git a/dev-db/sqlite/sqlite-3.17.0.0.recipe b/dev-db/sqlite/sqlite-3.17.0.0.recipe new file mode 100644 index 000000000..5be384a33 --- /dev/null +++ b/dev-db/sqlite/sqlite-3.17.0.0.recipe @@ -0,0 +1,88 @@ +SUMMARY="An SQL Database Engine in a C library" +DESCRIPTION="SQLite is a software library that implements a self-contained, \ +serverless, zero-configuration, transactional SQL database engine. SQLite is \ +the most widely deployed SQL database engine in the world. The source code for \ +SQLite is in the public domain." +HOMEPAGE="https://www.sqlite.org/" +COPYRIGHT="Public Domain" +LICENSE="SQLite" +REVISION="1" +sqliteVersion=$(echo $portVersion | sed -e 's/\.\([0-9]\>\)/0\1/g' -e 's/\.//g') +SOURCE_URI="https://www.sqlite.org/2017/sqlite-autoconf-$sqliteVersion.tar.gz" +CHECKSUM_SHA256="a4e485ad3a16e054765baf6371826b5000beed07e626510896069c0bf013874c" +SOURCE_DIR="sqlite-autoconf-$sqliteVersion" + +ARCHITECTURES="?x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86" + +PROVIDES=" + sqlite$secondaryArchSuffix = $portVersion compat >= 3 + lib:libsqlite3$secondaryArchSuffix = 0.8.6 compat >= 0 + " +if [ -z "$secondaryArchSuffix" ]; then + PROVIDES="$PROVIDES + cmd:sqlite3 = $portVersion compat >= 3 + " +fi + +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + sqlite${secondaryArchSuffix}_devel = $portVersion + devel:libsqlite3$secondaryArchSuffix = 0.8.6 compat >= 0 + " +REQUIRES_devel=" + sqlite$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoconf + automake + runConfigure ./configure + # Not using "make $jobArgs" because parallel builds are not supported. + make +} + +INSTALL() +{ + make install + + # remove libtool file + rm $libDir/libsqlite3.la + + prepareInstalledDevelLib libsqlite3 + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir + + # Remove stuff we don't need in the secondary architecture base package. + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $binDir + rm -rf $documentationDir + fi +} + +TEST() +{ + make check +}