nuke $Id$ in /packages as well
[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_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23
24 define Package/libdbus-glib
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=D-Bus Glib bindings
28 URL:=http://dbus.freedesktop.org/doc/dbus-glib/
29 DEPENDS:=+libdbus +glib2 +libiconv +libintl
30 endef
31
32 TARGET_CFLAGS += $(FPIC)
33
34 CONFIGURE_ARGS += \
35 --enable-shared \
36 --enable-static \
37 --disable-tests \
38 --disable-xml-docs \
39 --disable-doxygen-docs \
40
41 CONFIGURE_VARS+= \
42 ac_cv_func_posix_getpwnam_r="yes" \
43 ac_cv_have_abstract_sockets="yes" \
44 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
45 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
46 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
47 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/dbus-1.0/dbus
51 $(INSTALL_DATA) \
52 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/*.h \
53 $(1)/usr/include/dbus-1.0/dbus/
54
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.{la,a,so*} \
58 $(1)/usr/lib/
59
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-glib-1.pc \
63 $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libdbus-glib/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.so.* $(1)/usr/lib/
69 endef
70
71
72 $(eval $(call BuildPackage,libdbus-glib))