Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGLIB2_VERSION_MAJOR = 2.46
|
||||
LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).2
|
||||
LIBGLIB2_VERSION_MAJOR = 2.48
|
||||
LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).1
|
||||
LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
|
||||
LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
|
||||
LIBGLIB2_LICENSE = LGPLv2+
|
||||
@@ -97,11 +97,18 @@ HOST_LIBGLIB2_CONF_OPTS = \
|
||||
--disable-libelf \
|
||||
--disable-selinux \
|
||||
--disable-systemtap \
|
||||
--disable-xattr
|
||||
--disable-xattr \
|
||||
--with-pcre=system
|
||||
|
||||
LIBGLIB2_DEPENDENCIES = host-pkgconf host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) host-gettext
|
||||
LIBGLIB2_DEPENDENCIES = \
|
||||
host-pkgconf host-libglib2 host-gettext \
|
||||
libffi pcre zlib $(if $(BR2_NEEDS_GETTEXT),gettext)
|
||||
|
||||
HOST_LIBGLIB2_DEPENDENCIES = host-pkgconf host-libffi host-zlib host-gettext
|
||||
HOST_LIBGLIB2_DEPENDENCIES = \
|
||||
host-gettext host-libffi host-pcre host-pkgconf host-zlib
|
||||
|
||||
LIBGLIB2_CONF_OPTS = \
|
||||
--with-pcre=system
|
||||
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
LIBGLIB2_DEPENDENCIES += libiconv
|
||||
@@ -119,30 +126,42 @@ LIBGLIB2_CONF_OPTS += --with-libiconv=gnu
|
||||
LIBGLIB2_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
LIBGLIB2_CONF_OPTS += --with-pcre=system
|
||||
LIBGLIB2_DEPENDENCIES += pcre
|
||||
else
|
||||
LIBGLIB2_CONF_OPTS += --with-pcre=internal
|
||||
# Purge gdb-related files
|
||||
ifneq ($(BR2_PACKAGE_GDB),y)
|
||||
define LIBGLIB2_REMOVE_GDB_FILES
|
||||
rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gdb
|
||||
endef
|
||||
endif
|
||||
|
||||
# Purge useless binaries from target
|
||||
define LIBGLIB2_REMOVE_DEV_FILES
|
||||
rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
|
||||
rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
|
||||
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/share/glib-2.0/,codegen gettext)
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,gdbus-codegen glib-compile-schemas glib-compile-resources glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
|
||||
$(LIBGLIB2_REMOVE_GDB_FILES)
|
||||
endef
|
||||
|
||||
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
|
||||
|
||||
define LIBGLIB2_REMOVE_GDB_FILES
|
||||
rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gdb
|
||||
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
|
||||
# Remove schema sources/DTDs, we use staging ones to compile them.
|
||||
# Do so at target finalization since other packages install additional
|
||||
# ones and we want to deal with it in a single place.
|
||||
define LIBGLIB2_REMOVE_TARGET_SCHEMAS
|
||||
rm -f $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml \
|
||||
$(TARGET_DIR)/usr/share/glib-2.0/schemas/*.dtd
|
||||
endef
|
||||
|
||||
ifneq ($(BR2_PACKAGE_GDB),y)
|
||||
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_GDB_FILES
|
||||
endif
|
||||
# Compile schemas at target finalization since other packages install
|
||||
# them as well, and better do it in a central place.
|
||||
# It's used at run time so it doesn't matter defering it.
|
||||
define LIBGLIB2_COMPILE_SCHEMAS
|
||||
$(HOST_DIR)/usr/bin/glib-compile-schemas \
|
||||
$(STAGING_DIR)/usr/share/glib-2.0/schemas \
|
||||
--targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas
|
||||
endef
|
||||
|
||||
LIBGLIB2_TARGET_FINALIZE_HOOKS += LIBGLIB2_REMOVE_TARGET_SCHEMAS
|
||||
LIBGLIB2_TARGET_FINALIZE_HOOKS += LIBGLIB2_COMPILE_SCHEMAS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user