2006-07-23 11:48:57 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=glib
|
|
|
|
PKG_VERSION:=1.2.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.gtk.org/pub/gtk/v1.2 \
|
|
|
|
http://ftp.gwdg.de/pub/misc/grafik/gimp/gtk/v1.2/ \
|
|
|
|
http://ftp.esat.net/mirrors/ftp.gimp.org/pub/gtk/v1.2/ \
|
|
|
|
http://www.mirrorservice.org/sites/ftp.gimp.org/pub/gtk/v1.2/
|
|
|
|
PKG_MD5SUM:=6fe30dad87c77b91b632def29dd69ef9
|
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2006-07-23 11:48:57 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-08-08 01:13:52 +00:00
|
|
|
define Package/glib1
|
2006-07-23 11:48:57 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libpthread
|
|
|
|
TITLE:=The GLib library of C routines
|
|
|
|
URL:=http://www.gtk.org/
|
|
|
|
endef
|
|
|
|
|
2007-09-21 16:20:00 +00:00
|
|
|
define Package/glib1/description
|
|
|
|
GLib is a library containing many useful C routines for things such
|
|
|
|
as trees, hashes, and lists.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-09-21 16:20:00 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
2006-10-28 22:43:08 +00:00
|
|
|
glib_cv_prog_cc_ansi_proto=no \
|
|
|
|
glib_cv_has__inline=yes \
|
|
|
|
glib_cv_has__inline__=yes \
|
|
|
|
glib_cv_hasinline=yes \
|
|
|
|
glib_cv_sane_realloc=yes \
|
|
|
|
glib_cv_va_copy=no \
|
|
|
|
glib_cv___va_copy=yes \
|
|
|
|
glib_cv_va_val_copy=yes \
|
|
|
|
glib_cv_rtldglobal_broken=no \
|
|
|
|
glib_cv_uscore=no \
|
|
|
|
glib_cv_func_pthread_mutex_trylock_posix=yes \
|
|
|
|
glib_cv_func_pthread_cond_timedwait_posix=yes \
|
|
|
|
glib_cv_sizeof_gmutex=24 \
|
|
|
|
glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" \
|
|
|
|
|
2008-01-14 01:47:16 +00:00
|
|
|
TARGET_LDFLAGS += -L$(TOOLCHAIN_DIR)/lib
|
2006-07-23 11:48:57 +00:00
|
|
|
define Build/Compile
|
2007-12-27 02:12:04 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
|
2006-07-23 11:48:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-27 12:00:46 +00:00
|
|
|
$(INSTALL_DIR) $(1) $(2)/bin
|
2007-12-16 01:50:06 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/*.a $(PKG_BUILD_DIR)/*/.libs/*.a $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/glibconfig-sysdefs.h $(1)/usr/include/glib-1.2/
|
2007-12-27 12:00:46 +00:00
|
|
|
ln -sf $(STAGING_DIR)/usr/bin/glib-config $(2)/bin/
|
|
|
|
$(SED) 's,-I$$$${prefix}/include/glib,-I$(STAGING_DIR)/usr/include/glib,g' $(1)/usr/bin/glib-config
|
|
|
|
$(SED) 's,-I$$$${exec_prefix}/lib/glib,-I$(STAGING_DIR)/usr/lib/glib,g' $(1)/usr/bin/glib-config
|
|
|
|
$(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/glib-config
|
2006-07-23 11:48:57 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/glib1/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-08-08 01:13:52 +00:00
|
|
|
$(eval $(call BuildPackage,glib1))
|