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