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