[net] Telephony: Yate: Added conffiles. Fixes overwriting of configuration on reinst...
[openwrt/svn-archive/archive.git] / libs / glib / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=glib
11 PKG_VERSION:=1.2.10
12 PKG_RELEASE:=1
13
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
20
21 PKG_FIXUP:=autoreconf
22 PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/glib1
29 SECTION:=libs
30 CATEGORY:=Libraries
31 DEPENDS:=+libpthread
32 TITLE:=The GLib library of C routines
33 URL:=http://www.gtk.org/
34 endef
35
36 define Package/glib1/description
37 GLib is a library containing many useful C routines for things such
38 as trees, hashes, and lists.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42 TARGET_LDFLAGS += -L$(TOOLCHAIN_DIR)/lib
43
44 CONFIGURE_ARGS += \
45 --enable-shared \
46 --enable-static \
47
48 CONFIGURE_VARS += \
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 \
54 glib_cv_va_copy=no \
55 glib_cv___va_copy=yes \
56 glib_cv_va_val_copy=yes \
57 glib_cv_rtldglobal_broken=no \
58 glib_cv_uscore=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
68
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
78 endef
79
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/
83 endef
84
85 $(eval $(call BuildPackage,glib1))