2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.gtk.org
/pub
/gtk
/v1.2 \
17 http
://ftp.gwdg.de
/pub
/misc
/grafik
/gimp
/gtk
/v1.2
/ \
18 http
://ftp.esat.net
/mirrors
/ftp.gimp.org
/pub
/gtk
/v1.2
/ \
19 http
://www.mirrorservice.org
/sites
/ftp.gimp.org
/pub
/gtk
/v1.2
/
20 PKG_MD5SUM
:=6fe30dad87c77b91b632def29dd69ef9
24 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=The GLib library of C routines
31 URL
:=http
://www.gtk.org
/
34 define Package
/glib1
/description
35 GLib is a library containing many useful C routines for things such
36 as trees
, hashes
, and lists.
39 TARGET_CFLAGS
+= $(FPIC
)
46 glib_cv_prog_cc_ansi_proto
=no \
47 glib_cv_has__inline
=yes \
48 glib_cv_has__inline__
=yes \
49 glib_cv_hasinline
=yes \
50 glib_cv_sane_realloc
=yes \
52 glib_cv___va_copy
=yes \
53 glib_cv_va_val_copy
=yes \
54 glib_cv_rtldglobal_broken
=no \
56 glib_cv_func_pthread_mutex_trylock_posix
=yes \
57 glib_cv_func_pthread_cond_timedwait_posix
=yes \
58 glib_cv_sizeof_gmutex
=24 \
59 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" \
61 TARGET_LDFLAGS
+= -L
$(TOOLCHAIN_DIR
)/lib
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
66 define Build
/InstallDev
67 $(INSTALL_DIR
) $(1) $(2)/bin
68 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
69 $(CP
) $(PKG_BUILD_DIR
)/.libs
/*.a
$(PKG_BUILD_DIR
)/*/.libs
/*.a
$(1)/usr
/lib
70 $(CP
) $(PKG_BUILD_DIR
)/glibconfig-sysdefs.h
$(1)/usr
/include/glib-1.2
/
71 ln
-sf
$(STAGING_DIR
)/usr
/bin
/glib-config
$(2)/bin
/
72 $(SED
) 's,-I$$$${prefix}/include/glib,-I$(STAGING_DIR)/usr/include/glib,g' $(1)/usr
/bin
/glib-config
73 $(SED
) 's,-I$$$${exec_prefix}/lib/glib,-I$(STAGING_DIR)/usr/lib/glib,g' $(1)/usr
/bin
/glib-config
74 $(SED
) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr
/bin
/glib-config
77 define Package
/glib1
/install
78 $(INSTALL_DIR
) $(1)/usr
/lib
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-1.2.so.
* $(1)/usr
/lib
/
82 $(eval
$(call BuildPackage
,glib1
))