source: packages/libs/gconf2/Makefile @ 20327

Last change on this file since 20327 was 20327, checked in by swalker, 6 years ago

[packages] check, gconf2, libxapian: fix section names

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