Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[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:=3
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 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
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:=+dbus +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))
73