From 1fe659488bda8e9fc1e9deaf6eb66de64bfc291a Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 21 Jul 2013 18:06:00 +0200 Subject: [PATCH] sqlite: convert to new package format Signed-off-by: Stephan Raue --- packages/databases/sqlite/meta | 36 ---------------- .../databases/sqlite/{build => package.mk} | 42 ++++++++++++------- 2 files changed, 26 insertions(+), 52 deletions(-) delete mode 100644 packages/databases/sqlite/meta rename packages/databases/sqlite/{build => package.mk} (66%) mode change 100755 => 100644 diff --git a/packages/databases/sqlite/meta b/packages/databases/sqlite/meta deleted file mode 100644 index 12a3d99875..0000000000 --- a/packages/databases/sqlite/meta +++ /dev/null @@ -1,36 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="sqlite" -PKG_VERSION="autoconf-3071700" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="PublicDomain" -PKG_SITE="http://www.sqlite.org/" -PKG_URL="http://sqlite.org/2013/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain" -PKG_PRIORITY="optional" -PKG_SECTION="database" -PKG_SHORTDESC="sqlite: An Embeddable SQL Database Engine" -PKG_LONGDESC="SQLite is a C library that implements an embeddable SQL database engine. Programs that link with the SQLite library can have SQL database access without running a separate RDBMS process. The distribution comes with a standalone command-line access program (sqlite) that can be used to administer an SQLite database and which serves as an example of how to use the SQLite library. SQLite is not a client library used to connect to a big database server. SQLite is the server. The SQLite library reads and writes directly to and from the database files on disk." -PKG_IS_ADDON="no" - -PKG_AUTORECONF="yes" diff --git a/packages/databases/sqlite/build b/packages/databases/sqlite/package.mk old mode 100755 new mode 100644 similarity index 66% rename from packages/databases/sqlite/build rename to packages/databases/sqlite/package.mk index 2e92d02cf4..81c15b0dbc --- a/packages/databases/sqlite/build +++ b/packages/databases/sqlite/package.mk @@ -1,5 +1,3 @@ -#!/bin/sh - ################################################################################ # This file is part of OpenELEC - http://www.openelec.tv # Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) @@ -20,7 +18,22 @@ # http://www.gnu.org/copyleft/gpl.html ################################################################################ -. config/options $1 +PKG_NAME="sqlite" +PKG_VERSION="autoconf-3071700" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="PublicDomain" +PKG_SITE="http://www.sqlite.org/" +PKG_URL="http://sqlite.org/2013/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="database" +PKG_SHORTDESC="sqlite: An Embeddable SQL Database Engine" +PKG_LONGDESC="SQLite is a C library that implements an embeddable SQL database engine. Programs that link with the SQLite library can have SQL database access without running a separate RDBMS process. The distribution comes with a standalone command-line access program (sqlite) that can be used to administer an SQLite database and which serves as an example of how to use the SQLite library. SQLite is not a client library used to connect to a big database server. SQLite is the server. The SQLite library reads and writes directly to and from the database files on disk." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" # sqlite fails to compile with fast-math link time optimization. CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O3|g"` @@ -53,17 +66,14 @@ # mmap_size pragma. CFLAGS="$CFLAGS -DSQLITE_DEFAULT_MMAP_SIZE=268435456" -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --enable-static \ - --disable-shared \ - --disable-readline \ - --enable-threadsafe \ - --enable-dynamic-extensions \ - --with-gnu-ld -make -$MAKEINSTALL +PKG_CONFIGURE_OPTS_TARGET="--enable-static \ + --disable-shared \ + --disable-readline \ + --enable-threadsafe \ + --enable-dynamic-extensions \ + --with-gnu-ld" + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +}