2014-06-30 13:56:56 +00:00
|
|
|
#
|
2016-02-22 21:21:08 +00:00
|
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
2014-06-30 13:56:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=glib2
|
2018-09-25 20:29:32 +00:00
|
|
|
PKG_VERSION:=2.58.1
|
2018-10-13 10:30:14 +00:00
|
|
|
PKG_RELEASE:=2
|
2014-06-30 13:56:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
|
2018-09-25 20:29:32 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/glib/2.58
|
|
|
|
PKG_HASH:=97d6a9d926b6aa3dfaadad3077cfb43eec74432ab455dff14250c769d526d7d6
|
2014-06-30 13:56:56 +00:00
|
|
|
|
2015-01-29 23:32:20 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
2018-01-07 22:21:07 +00:00
|
|
|
PKG_BUILD_DEPENDS:=glib2/host gettext
|
2015-12-13 16:00:00 +00:00
|
|
|
HOST_BUILD_DEPENDS:=gettext-full/host libiconv/host libffi/host
|
2014-06-30 13:56:56 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
2015-01-27 21:35:24 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2014-06-30 13:56:56 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
|
|
|
define Package/glib2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2014-07-06 07:49:32 +00:00
|
|
|
DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi +libattr
|
2014-06-30 13:56:56 +00:00
|
|
|
TITLE:=glib 2.0
|
2014-07-01 18:52:44 +00:00
|
|
|
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
2014-06-30 13:56:56 +00:00
|
|
|
URL:=http://www.gtk.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/glib2/description
|
|
|
|
The GLib library of C routines
|
|
|
|
endef
|
|
|
|
|
2018-09-25 20:29:32 +00:00
|
|
|
TARGET_CFLAGS += -Wno-error=implicit-function-declaration
|
|
|
|
|
2014-07-16 19:07:34 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2016-01-20 15:14:55 +00:00
|
|
|
--disable-selinux \
|
2016-09-19 19:45:24 +00:00
|
|
|
--with-libiconv=gnu \
|
2017-01-13 18:14:28 +00:00
|
|
|
--with-pcre=internal \
|
2018-09-25 20:29:32 +00:00
|
|
|
--disable-libmount
|
2014-07-16 19:07:34 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2018-08-19 23:09:03 +00:00
|
|
|
--disable-debug \
|
2014-07-16 19:07:34 +00:00
|
|
|
--disable-selinux \
|
2018-08-19 23:09:03 +00:00
|
|
|
--disable-libmount \
|
2014-07-16 19:07:34 +00:00
|
|
|
--disable-fam \
|
2018-08-19 23:09:03 +00:00
|
|
|
--disable-gtk-doc-html \
|
|
|
|
--disable-man \
|
2016-09-19 19:45:24 +00:00
|
|
|
--with-libiconv=gnu \
|
|
|
|
--with-pcre=internal
|
2014-07-16 19:07:34 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
glib_cv_stack_grows=no \
|
|
|
|
glib_cv_uscore=no \
|
2017-01-10 14:02:50 +00:00
|
|
|
ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
|
2014-07-16 19:07:34 +00:00
|
|
|
ac_cv_func_mmap_fixed_mapped=yes \
|
|
|
|
ac_cv_func_posix_getpwuid_r=yes \
|
|
|
|
ac_cv_func_posix_getgrgid_r=yes
|
2014-06-30 13:56:56 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2018-10-13 10:30:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/* \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
|
2014-06-30 13:56:56 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
|
|
|
|
$(1)/usr/include/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
|
|
|
|
$(1)/usr/include/glib-2.0/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(2)/share/aclocal/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4 \
|
|
|
|
$(2)/share/aclocal/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/glib2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,glib2))
|