[packages] make libintl and libiconv stub/full implementations switchable, use the...
[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 include $(INCLUDE_DIR)/nls.mk
16
17 PKG_BUILD_DEPENDS:=orbit2/host intltool/host
18
19 PKG_INSTALL=1
20
21 TARGET_LDFLAGS+= \
22         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
23
24 define Package/libgconf2
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=GConf2 library
28   URL:=http://www.gnome.org/projects/gconf/
29   DEPENDS:=+orbit2 +glib2 +dbus +libdbus-glib +libxml2
30 endef
31
32 define Package/libgconf2/description
33 GConf is a configuration database system for storing application preferences.
34 endef
35
36 define Package/gconf2
37   SECTION:=utils
38   CATEGORY:=Utilities
39   TITLE:=GConf2 command line utils
40   URL:=http://www.gnome.org/projects/gconf/
41   DEPENDS:=+libgconf2
42 endef
43
44 define Package/gconf2/description
45 GConf is a configuration database system for storing application preferences.
46 endef
47
48 define Build/Configure
49         $(call Build/Configure/Default, \
50             --disable-gtk \
51         )
52         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
53 endef
54
55 define Build/InstallDev
56         $(INSTALL_DIR) $(1)/usr/{include/gconf/2/gconf,lib/pkgconfig,share/aclocal}
57
58         $(INSTALL_DATA) \
59                 $(PKG_INSTALL_DIR)/usr/include/gconf/2/gconf/* \
60                 $(1)/usr/include/gconf/2/gconf/
61
62         $(CP) \
63                 $(PKG_INSTALL_DIR)/usr/lib/libgconf-2.{so*,la,a} \
64                 $(1)/usr/lib/
65
66         $(INSTALL_DATA) \
67                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
68                 $(1)/usr/lib/pkgconfig/
69
70         $(INSTALL_DATA) \
71                 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
72                 $(1)/usr/share/aclocal/
73 endef
74
75 define Package/libgconf2/install
76         $(INSTALL_DIR) $(1)/etc/gconf
77         $(CP) \
78                 $(PKG_INSTALL_DIR)/etc/gconf/* \
79                 $(1)/etc/gconf/
80
81         $(INSTALL_DIR) $(1)/usr/lib
82         $(CP) \
83                 $(PKG_INSTALL_DIR)/usr/lib/libgconf-2.so* \
84                 $(1)/usr/lib/
85
86         $(INSTALL_BIN) \
87                 $(PKG_INSTALL_DIR)/usr/lib/gconfd-2 \
88                 $(1)/usr/lib/
89
90         $(INSTALL_DIR) $(1)/usr/lib/GConf/2
91         $(INSTALL_DATA) \
92                 $(PKG_INSTALL_DIR)/usr/lib/GConf/2/libgconfbackend-xml.so \
93                 $(1)/usr/lib/GConf/2/
94
95         $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
96         $(INSTALL_DATA) \
97                 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
98                 $(1)/usr/share/dbus-1/services/
99 endef
100
101 define Package/gconf2/install
102         $(INSTALL_DIR) $(1)/usr/bin
103         $(INSTALL_BIN) \
104                 $(PKG_INSTALL_DIR)/usr/bin/* \
105                 $(1)/usr/bin/
106 endef
107
108 $(eval $(call BuildPackage,libgconf2))
109 $(eval $(call BuildPackage,gconf2))