30521fa467336f732d4c23a2654a62da319f2983
[openwrt/svn-archive/archive.git] / libs / dbus-glib / Makefile
1 #
2 # Copyright (C) 2007 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.74
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:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21
22 define Package/libdbus-glib
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=D-Bus Glib bindings
26 URL:=http://dbus.freedesktop.org/doc/dbus-glib/
27 DEPENDS:= +dbus +glib2 +libiconv +libintl
28 endef
29
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
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/include/dbus-1.0/dbus
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/dbus-glib{,-error-enum,-lowlevel}.h \
58 $(PKG_INSTALL_DIR)/usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h \
59 $(1)/usr/include//dbus-1.0/dbus/
60 mkdir -p $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-glib-1.{a,so*} \
62 $(1)/usr/lib/
63 mkdir -p $(1)/usr/lib/pkgconfig
64 $(CP) $(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))
75