2007-05-08 14:59:19 +00:00
|
|
|
#
|
2007-05-13 09:03:59 +00:00
|
|
|
# Copyright (C) 2007 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.
|
|
|
|
#
|
2007-07-01 23:09:45 +00:00
|
|
|
# $Id$
|
2007-05-08 14:59:19 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=glib2
|
|
|
|
PKG_VERSION:=2.12.12
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=glib-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.gtk.org/pub/glib/2.12/
|
|
|
|
PKG_MD5SUM:=6c6a61e4b08fb4b110ca7953f71c8b5e
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-10-03 07:42:01 +00:00
|
|
|
|
2007-05-08 14:59:19 +00:00
|
|
|
define Package/glib2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-05-11 17:03:54 +00:00
|
|
|
DEPENDS:=+libiconv +libintl
|
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
|
|
|
|
The GLib library of C routines
|
|
|
|
endef
|
|
|
|
|
2007-10-03 07:42:01 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
|
2007-10-21 14:19:26 +00:00
|
|
|
( cd $(PKG_BUILD_DIR); CONFIG_SITE= \
|
|
|
|
./configure \
|
2007-10-03 07:42:01 +00:00
|
|
|
--target=$(GNU_HOST_NAME) \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME) \
|
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-debug=no \
|
|
|
|
);
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) install clean
|
|
|
|
|
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 \
|
2007-05-08 14:59:19 +00:00
|
|
|
, \
|
2007-10-03 07:42:01 +00:00
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
|
2007-05-08 14:59:19 +00:00
|
|
|
glib_cv_stack_grows=no \
|
|
|
|
glib_cv_uscore=no \
|
2007-10-03 07:42:01 +00:00
|
|
|
ac_cv_path_GLIB_GENMARSHAL=$(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)/bin/glib-genmarshal \
|
|
|
|
);
|
|
|
|
$(call libtool_disable_rpath)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) all
|
|
|
|
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
2007-05-08 14:59:19 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/glib-2.0 $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,object,thread}-2.0.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/g{lib,module,module-no-export,object,thread}-2.0.pc $(1)/usr/lib/pkgconfig
|
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
|
2007-08-06 15:54:01 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libg*-2.0.so* $(1)/usr/lib/
|
2007-05-08 14:59:19 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-03 07:42:01 +00:00
|
|
|
|
2007-05-08 14:59:19 +00:00
|
|
|
$(eval $(call BuildPackage,glib2))
|
2007-08-06 23:10:20 +00:00
|
|
|
|