2007-05-08 14:59:19 +00:00
|
|
|
#
|
2012-08-11 00:43:39 +00:00
|
|
|
# Copyright (C) 2007-2012 OpenWrt.org
|
2007-05-08 14:59:19 +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
|
2011-02-02 19:01:16 +00:00
|
|
|
PKG_VERSION:=2.26.1
|
2012-08-11 00:43:39 +00:00
|
|
|
PKG_RELEASE:=3
|
2007-05-08 14:59:19 +00:00
|
|
|
|
2008-09-01 22:15:32 +00:00
|
|
|
PKG_SOURCE:=glib-$(PKG_VERSION).tar.bz2
|
2007-05-08 14:59:19 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
|
2011-02-02 19:01:16 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/glib/2.26
|
|
|
|
PKG_MD5SUM:=17535accceef55bcb17a74d73f9c2aef
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2011-03-08 05:59:25 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2012-08-11 00:43:39 +00:00
|
|
|
PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl
|
2011-02-20 03:26:52 +00:00
|
|
|
HOST_BUILD_DEPENDS:=gettext/host libiconv/host
|
2009-06-01 14:11:37 +00:00
|
|
|
PKG_INSTALL:=1
|
2009-05-04 23:33:10 +00:00
|
|
|
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2007-05-08 14:59:19 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-05-08 14:59:19 +00:00
|
|
|
|
|
|
|
define Package/glib2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2012-09-19 15:35:00 +00:00
|
|
|
DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread
|
2007-05-08 14:59:19 +00:00
|
|
|
TITLE:=glib 2.0
|
|
|
|
URL:=http://www.gtk.org/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/glib2/description
|
2008-10-03 16:11:38 +00:00
|
|
|
The GLib library of C routines
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-03 07:42:01 +00:00
|
|
|
define Build/Configure
|
2007-05-08 14:59:19 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2007-10-03 07:42:01 +00:00
|
|
|
--enable-debug=no \
|
2009-06-01 14:11:37 +00:00
|
|
|
--disable-selinux \
|
|
|
|
--disable-fam \
|
2011-02-02 18:54:24 +00:00
|
|
|
$(if $(ICONV_FULL),--with-libiconv=gnu) \
|
2007-05-08 14:59:19 +00:00
|
|
|
, \
|
|
|
|
glib_cv_stack_grows=no \
|
|
|
|
glib_cv_uscore=no \
|
2009-05-04 23:33:10 +00:00
|
|
|
ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \
|
2008-09-01 22:15:32 +00:00
|
|
|
ac_cv_func_mmap_fixed_mapped=yes \
|
2011-03-08 05:59:25 +00:00
|
|
|
ac_cv_func_posix_getpwuid_r=yes \
|
|
|
|
ac_cv_func_posix_getgrgid_r=yes \
|
2007-10-03 07:42:01 +00:00
|
|
|
);
|
2007-12-27 02:12:04 +00:00
|
|
|
endef
|
|
|
|
|
2007-05-08 14:59:19 +00:00
|
|
|
define Build/InstallDev
|
2008-09-01 22:15:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2008-10-03 16:11:38 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
|
|
|
|
$(1)/usr/include/
|
2010-12-26 01:44:48 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
|
|
|
|
$(1)/usr/include/glib-2.0/
|
2008-10-03 16:11:38 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
2008-09-01 22:15:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-10-03 16:11:38 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
2008-10-03 16:11:38 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
2008-09-01 22:15:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2008-10-03 16:11:38 +00:00
|
|
|
$(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/
|
2007-05-08 14:59:19 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-03 07:42:01 +00:00
|
|
|
define Package/glib2/install
|
2007-05-08 14:59:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-10-03 16:11:38 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
2007-05-08 14:59:19 +00:00
|
|
|
endef
|
|
|
|
|
2009-05-04 23:33:10 +00:00
|
|
|
$(eval $(call HostBuild))
|
2007-05-08 14:59:19 +00:00
|
|
|
$(eval $(call BuildPackage,glib2))
|