glib: update to glib-2.59.1, switch to meson

This commit is contained in:
MilhouseVH 2019-02-01 07:58:18 +00:00
parent 7ffc044f29
commit 21c71b7a30

View File

@ -3,44 +3,48 @@
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv) # Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="glib" PKG_NAME="glib"
PKG_VERSION="2.53.5" PKG_VERSION="2.59.1"
PKG_SHA256="991421f41a4ed4cc1637e5f9db0d03fd236d2cbd19f3c5b097a343bec5126602" PKG_SHA256="d11f1ca55ccd00dd0abf800c2f42d9cc5e3803be321ff6bc79eb3ce2ca1863f0"
PKG_LICENSE="LGPL" PKG_LICENSE="LGPL"
PKG_SITE="http://www.gtk.org/" PKG_SITE="http://www.gtk.org/"
PKG_URL="http://ftp.gnome.org/pub/gnome/sources/glib/${PKG_VERSION%.*}/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_URL="http://ftp.gnome.org/pub/gnome/sources/glib/${PKG_VERSION%.*}/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain zlib libffi Python2:host util-linux" PKG_DEPENDS_HOST="libffi:host Python3:host"
PKG_DEPENDS_HOST="libffi:host pcre:host" PKG_DEPENDS_TARGET="toolchain pcre zlib libffi Python3:host util-linux"
PKG_LONGDESC="A library which includes support routines for C such as lists, trees, hashes, memory allocation." PKG_LONGDESC="A library which includes support routines for C such as lists, trees, hashes, memory allocation."
PKG_TOOLCHAIN="autotools" PKG_TOOLCHAIN="meson"
PKG_CONFIGURE_OPTS_HOST="PCRE_LIBS=-l:libpcre.a \ PKG_MESON_OPTS_HOST="-Ddefault_library=static \
--enable-static \ -Dinternal_pcre=true \
--disable-shared \ -Dinstalled_tests=false \
--disable-libmount \ -Dlibmount=false"
--with-python=python"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_snprintf_c99=yes \ PKG_MESON_OPTS_TARGET="-Ddefault_library=shared \
ac_cv_func_vsnprintf_c99=yes \ -Dinternal_pcre=false \
glib_cv_stack_grows=no \ -Dinstalled_tests=false \
glib_cv_uscore=no \ -Dselinux=disabled \
glib_cv_va_val_copy=no \ -Dfam=false \
--disable-selinux \ -Dxattr=true \
--disable-fam \ -Dgtk_doc=false \
--enable-xattr \ -Dman=false \
--disable-libelf \ -Ddtrace=false \
--disable-gtk-doc \ -Dsystemtap=false \
--disable-gtk-doc-html \ -Dbsymbolic_functions=true \
--disable-man \ -Dforce_posix_threads=true"
--disable-dtrace \
--disable-systemtap \ PKG_MESON_PROPERTIES_TARGET="
--enable-Bsymbolic \ have_c99_vsnprintf=false
--with-gnu-ld \ have_c99_snprintf=false
--with-threads=posix \ growing_stack=false
--with-pcre=internal \ va_val_copy=false"
--with-python=python"
pre_configure_target() {
LDFLAGS+=" -lz"
}
post_makeinstall_target() { post_makeinstall_target() {
rm -rf $INSTALL/usr/bin rm -rf $INSTALL/usr/bin
rm -rf $INSTALL/usr/lib/gdbus-2.0 rm -rf $INSTALL/usr/lib/gdbus-2.0
rm -rf $INSTALL/usr/lib/glib-2.0 rm -rf $INSTALL/usr/lib/glib-2.0
rm -rf $INSTALL/usr/lib/installed-tests
rm -rf $INSTALL/usr/share rm -rf $INSTALL/usr/share
} }