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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.gtk.org
/pub
/gtk
/v1.2 \
16 http
://ftp.gwdg.de
/pub
/misc
/grafik
/gimp
/gtk
/v1.2
/ \
17 http
://ftp.esat.net
/mirrors
/ftp.gimp.org
/pub
/gtk
/v1.2
/ \
18 http
://www.mirrorservice.org
/sites
/ftp.gimp.org
/pub
/gtk
/v1.2
/
19 PKG_MD5SUM
:=6fe30dad87c77b91b632def29dd69ef9
22 PKG_REMOVE_FILES
:=aclocal.m4 acinclude.m4
26 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=The GLib library of C routines
33 URL
:=http
://www.gtk.org
/
36 define Package
/glib1
/description
37 GLib is a library containing many useful C routines for things such
38 as trees
, hashes
, and lists.
41 TARGET_CFLAGS
+= $(FPIC
)
42 TARGET_LDFLAGS
+= -L
$(TOOLCHAIN_DIR
)/lib
49 glib_cv_prog_cc_ansi_proto
=no \
50 glib_cv_has__inline
=yes \
51 glib_cv_has__inline__
=yes \
52 glib_cv_hasinline
=yes \
53 glib_cv_sane_realloc
=yes \
55 glib_cv___va_copy
=yes \
56 glib_cv_va_val_copy
=yes \
57 glib_cv_rtldglobal_broken
=no \
59 glib_cv_func_pthread_mutex_trylock_posix
=yes \
60 glib_cv_func_pthread_cond_timedwait_posix
=yes \
61 glib_cv_sizeof_gmutex
=24 \
62 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" \
63 glib_cv_sys_pthread_getspecific_posix
=yes \
64 glib_cv_sys_pthread_mutex_trylock_posix
=yes \
65 glib_cv_sys_pthread_cond_timedwait_posix
=yes \
66 ac_cv_func_getpwuid_r
=yes \
67 ac_cv_func_getpwuid_r_posix
=yes
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1) $(2)/bin
71 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
72 $(CP
) $(PKG_BUILD_DIR
)/.libs
/*.a
$(PKG_BUILD_DIR
)/*/.libs
/*.a
$(1)/usr
/lib
73 $(CP
) $(PKG_BUILD_DIR
)/glibconfig-sysdefs.h
$(1)/usr
/include/glib-1.2
/
74 ln
-sf
$(STAGING_DIR
)/usr
/bin
/glib-config
$(2)/bin
/
75 $(SED
) 's,-I$$$${prefix}/include/glib,-I$(STAGING_DIR)/usr/include/glib,g' $(1)/usr
/bin
/glib-config
76 $(SED
) 's,-I$$$${exec_prefix}/lib/glib,-I$(STAGING_DIR)/usr/lib/glib,g' $(1)/usr
/bin
/glib-config
77 $(SED
) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr
/bin
/glib-config
80 define Package
/glib1
/install
81 $(INSTALL_DIR
) $(1)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-1.2.so.
* $(1)/usr
/lib
/
85 $(eval
$(call BuildPackage
,glib1
))