remove UninstallDev
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=glib
12 PKG_VERSION:=1.2.10
13 PKG_RELEASE:=1
14
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
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/glib1
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+libpthread
28 TITLE:=The GLib library of C routines
29 URL:=http://www.gtk.org/
30 endef
31
32 define Package/glib1/description
33 GLib is a library containing many useful C routines for things such
34 as trees, hashes, and lists.
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-shared \
39 --enable-static \
40
41 CONFIGURE_VARS += \
42 glib_cv_prog_cc_ansi_proto=no \
43 glib_cv_has__inline=yes \
44 glib_cv_has__inline__=yes \
45 glib_cv_hasinline=yes \
46 glib_cv_sane_realloc=yes \
47 glib_cv_va_copy=no \
48 glib_cv___va_copy=yes \
49 glib_cv_va_val_copy=yes \
50 glib_cv_rtldglobal_broken=no \
51 glib_cv_uscore=no \
52 glib_cv_func_pthread_mutex_trylock_posix=yes \
53 glib_cv_func_pthread_cond_timedwait_posix=yes \
54 glib_cv_sizeof_gmutex=24 \
55 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" \
56
57 define Build/Configure
58 $(call Build/Configure/Default)
59 $(call libtool_disable_rpath)
60 endef
61
62 define Build/Compile
63 $(MAKE) -C $(PKG_BUILD_DIR) all
64 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
65 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
66 endef
67
68 define Build/InstallDev
69 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
70 $(CP) $(PKG_BUILD_DIR)/.libs/*.a $(PKG_BUILD_DIR)/*/.libs/*.a $(1)/usr/lib
71 $(CP) $(PKG_BUILD_DIR)/glibconfig-sysdefs.h $(1)/usr/include/glib-1.2/
72 $(SED) 's,-I$$$${prefix}/include/glib,-I$(1)/usr/include/glib,g' $(1)/usr/bin/glib-config
73 $(SED) 's,-I$$$${exec_prefix}/lib/glib,-I$(1)/usr/lib/glib,g' $(1)/usr/bin/glib-config
74 $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/glib-config
75 endef
76
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/
80 endef
81
82 $(eval $(call BuildPackage,glib1))