Merge pull request #2760 from HiassofT/le9-sqlite-shared

sqlite build shared
This commit is contained in:
MilhouseVH 2018-06-12 04:47:07 +01:00 committed by GitHub
commit dc0bbc4ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 41 deletions

View File

@ -1,37 +0,0 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016-present Team LibreELEC
#
# LibreELEC 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 of the License, or
# (at your option) any later version.
#
# LibreELEC 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 LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. "$ROOT/packages/databases/sqlite/package.mk"
PKG_NAME="mono_sqlite"
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain sqlite"
PKG_SHORTDESC="sqlite for mono"
PKG_LONGDESC="libsqlite built shared for mono"
PKG_TOOLCHAIN="autotools"
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --disable-static --enable-shared"
unpack() {
mkdir -p $PKG_BUILD
cp -r $(get_build_dir sqlite)/* $PKG_BUILD/
}
makeinstall_target() {
make install DESTDIR=$INSTALL
}

View File

@ -25,7 +25,7 @@ PKG_LICENSE="MIT"
PKG_SITE="http://www.mono-project.com"
PKG_URL="http://download.mono-project.com/sources/mono/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_SOURCE_DIR="$PKG_NAME-${PKG_VERSION%.*}"
PKG_DEPENDS_TARGET="toolchain mono:host libgdiplus sqlite mono_sqlite zlib"
PKG_DEPENDS_TARGET="toolchain mono:host libgdiplus sqlite zlib"
PKG_SECTION="tools"
PKG_SHORTDESC="Mono: a cross platform, open source .NET framework"
PKG_LONGDESC="Mono ($PKG_VERSION) is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation"
@ -83,7 +83,6 @@ addon() {
cp -L "$(get_build_dir cairo)/.install_pkg/usr/lib/libcairo.so.2" \
"$(get_build_dir libgdiplus)/.install_pkg/usr/lib/libgdiplus.so" \
"$(get_build_dir mono_sqlite)/.install_pkg/usr/lib/libsqlite3.so.0" \
"$(get_build_dir pixman)/.install_pkg/usr/lib/libpixman-1.so.0" \
"$ADDON_BUILD/$PKG_ADDON_ID/lib"
}

View File

@ -62,8 +62,8 @@ PKG_BUILD_FLAGS="+pic +pic:host -parallel"
# mmap_size pragma.
CFLAGS="$CFLAGS -DSQLITE_TEMP_STORE=3 -DSQLITE_DEFAULT_MMAP_SIZE=268435456"
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
--disable-shared \
PKG_CONFIGURE_OPTS_TARGET="--disable-static \
--enable-shared \
--disable-readline \
--enable-threadsafe \
--enable-dynamic-extensions \