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