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