[packages/xmlrpc-c] split xmlrpc-c library suite into several packages
[packages.git] / libs / gconf2 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gconf2
4 PKG_VERSION:=2.24.0
5 PKG_RELEASE:=1
6
7 PKG_BUILD_DIR:=$(BUILD_DIR)/GConf-$(PKG_VERSION)
8 PKG_SOURCE:=GConf-$(PKG_VERSION).tar.bz2
9 PKG_SOURCE_URL:=@GNOME/GConf/2.24
10 PKG_MD5SUM:=4971d96f5ba94fe4a69396267bd5afe8
11
12 PKG_FIXUP:=libtool
13
14 include $(INCLUDE_DIR)/package.mk
15
16 PKG_BUILD_DEPENDS:=orbit2/host intltool/host
17
18 PKG_INSTALL=1
19
20 TARGET_CFLAGS+= \
21         -I$(STAGING_DIR)/usr/lib/libintl/include \
22         -I$(STAGING_DIR)/usr/libiconv/include
23
24 TARGET_LDFLAGS+= \
25         -L$(STAGING_DIR)/usr/lib/libintl/lib \
26         -L$(STAGING_DIR)/usr/lib/libiconv/lib \
27         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
28
29 define Package/libgconf2
30   SECTION:=libs
31   CATEGORY:=Libraries
32   TITLE:=GConf2 library
33   URL:=http://www.gnome.org/projects/gconf/
34   DEPENDS:=+orbit2 +glib2 +dbus +libdbus-glib +libxml2
35 endef
36
37 define Package/libgconf2/description
38 GConf is a configuration database system for storing application preferences.
39 endef
40
41 define Package/gconf2
42   SECTION:=utils
43   CATEGORY:=Utilities
44   TITLE:=GConf2 command line utils
45   URL:=http://www.gnome.org/projects/gconf/
46   DEPENDS:=+libgconf2
47 endef
48
49 define Package/gconf2/description
50 GConf is a configuration database system for storing application preferences.
51 endef
52
53 define Build/Configure
54         $(call Build/Configure/Default, \
55             --disable-gtk \
56         )
57         find $(PKG_BUILD_DIR) -name Makefile -exec sed -i 's,ORBIT_IDL.*orbit-idl-2,ORBIT_IDL = $(STAGING_DIR_HOST)/bin/orbit-idl-2,g' {} \; # tell gconf2 to use the host-built idl-compiler
58 endef
59
60 define Build/InstallDev
61         $(INSTALL_DIR) $(1)/usr/{include/gconf/2/gconf,lib/pkgconfig,share/aclocal}
62
63         $(INSTALL_DATA) \
64                 $(PKG_INSTALL_DIR)/usr/include/gconf/2/gconf/* \
65                 $(1)/usr/include/gconf/2/gconf/
66
67         $(CP) \
68                 $(PKG_INSTALL_DIR)/usr/lib/libgconf-2.{so*,la,a} \
69                 $(1)/usr/lib/
70
71         $(INSTALL_DATA) \
72                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
73                 $(1)/usr/lib/pkgconfig/
74
75         $(INSTALL_DATA) \
76                 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
77                 $(1)/usr/share/aclocal/
78 endef
79
80 define Package/libgconf2/install
81         $(INSTALL_DIR) $(1)/etc/gconf
82         $(CP) \
83                 $(PKG_INSTALL_DIR)/etc/gconf/* \
84                 $(1)/etc/gconf/
85
86         $(INSTALL_DIR) $(1)/usr/lib
87         $(CP) \
88                 $(PKG_INSTALL_DIR)/usr/lib/libgconf-2.so* \
89                 $(1)/usr/lib/
90
91         $(INSTALL_BIN) \
92                 $(PKG_INSTALL_DIR)/usr/lib/gconfd-2 \
93                 $(1)/usr/lib/
94
95         $(INSTALL_DIR) $(1)/usr/lib/GConf/2
96         $(INSTALL_DATA) \
97                 $(PKG_INSTALL_DIR)/usr/lib/GConf/2/libgconfbackend-xml.so \
98                 $(1)/usr/lib/GConf/2/
99
100         $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
101         $(INSTALL_DATA) \
102                 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
103                 $(1)/usr/share/dbus-1/services/
104 endef
105
106 define Package/gconf2/install
107         $(INSTALL_DIR) $(1)/usr/bin
108         $(INSTALL_BIN) \
109                 $(PKG_INSTALL_DIR)/usr/bin/* \
110                 $(1)/usr/bin/
111 endef
112
113 $(eval $(call BuildPackage,libgconf2))
114 $(eval $(call BuildPackage,gconf2))