Update dbus-glib package to version 0.76.
[openwrt/svn-archive/archive.git] / libs / dbus-glib / Makefile
1 #
2 # Copyright (C) 2007-2008 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:=dbus-glib
12 PKG_VERSION:=0.76
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus-glib/
17 PKG_MD5SUM:=d3b716a7e798faa1c6a867675f00306a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL=1
22
23 define Package/libdbus-glib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=D-Bus Glib bindings
27 URL:=http://dbus.freedesktop.org/doc/dbus-glib/
28 DEPENDS:=+dbus +glib2 +libiconv +libintl
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36 --disable-tests \
37 --disable-xml-docs \
38 --disable-doxygen-docs \
39
40 CONFIGURE_VARS+= \
41 ac_cv_func_posix_getpwnam_r="yes" \
42 ac_cv_have_abstract_sockets="yes" \
43 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
44 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
45 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
46 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
50 $(INSTALL_DATA) \
51 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/*.h \
52 $(1)/usr/include/dbus-1.0/dbus/
53
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(INSTALL_DATA) \
56 $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.{la,so*} \
57 $(1)/usr/lib/
58
59 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-glib-1.pc \
62 $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libdbus-glib/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.so.* $(1)/usr/lib/
68 endef
69
70
71 $(eval $(call BuildPackage,libdbus-glib))
72