Replace all occurrences of make -j16 by oe_runmake
[scm/bb/meta-tizen.git] / meta-tizen-ivi / meta-tizen-common-base / recipes-application-framework / vconf-buxton / vconf-buxton.inc
1 DESCRIPTION = "Configuration system library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
4 LICENSE = "Apache-2.0"
5 PV = "0.3"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by vconf-buxton-dev
17 PROVIDES += "vconf-buxton-dev"
18 # the PROVIDES rules is ignore "vconf-dev  "
19 PROVIDES += "vconf-dev"
20 RPROVIDES_vconf-buxton-dev += "vconf-dev"
21
22
23 #PROVIDES by vconf-buxton-keys-dev
24 PROVIDES += "vconf-buxton-keys-dev"
25 # the PROVIDES rules is ignore "vconf-keys-dev  "
26 PROVIDES += "vconf-keys-dev"
27 RPROVIDES_vconf-buxton-keys-dev += "vconf-keys-dev"
28
29
30 #PROVIDES by vconf-buxton
31 # the PROVIDES rules is ignore "vconf  "
32 PROVIDES += "vconf"
33 RPROVIDES_vconf-buxton += "vconf"
34
35
36 RDEPENDS = ""
37 #RDEPENDS of vconf-buxton-dev (${PN}-dev)
38 RDEPENDS_${PN}-dev += "vconf-buxton-keys-dev"
39 RDEPENDS_${PN}-dev += "vconf-buxton"
40
41 #RDEPENDS of vconf-buxton-keys-dev (${PN}-keys-dev)
42 RDEPENDS_${PN}-keys-dev += "vconf-buxton"
43 RDEPENDS_${PN}-keys-dev += "vconf-internal-keys-dev"
44
45 #RDEPENDS of vconf-buxton (${PN})
46 RDEPENDS_${PN} += "glibc"
47 RDEPENDS_${PN} += "util-linux"
48
49
50 DEPENDS = ""
51 #DEPENDS of vconf-buxton
52 DEPENDS += "vconf-internal-keys"
53 DEPENDS += "buxton"
54 inherit tizen_cmake
55 inherit pkgconfig
56 DEPENDS += "glib-2.0"
57
58 do_prep() {
59  cd ${S}
60  chmod -Rf a+rX,u+w,g-w,o-w ${S}
61  #setup -q -n vconf-buxton-0.3
62  cp ${S}/packaging/vconf-buxton.manifest .
63  
64  
65 }
66 do_patch_append() {
67     bb.build.exec_func('do_prep', d)
68 }
69
70 do_configure() {
71 }
72
73 do_compile() {
74  cd ${S}
75  LANG=C
76  export LANG
77  unset DISPLAY
78  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
79  
80  
81    cmake \
82          -DCMAKE_VERBOSE_MAKEFILE=ON \
83          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
84          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
85          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
86          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
87          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
88          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
89          -DCMAKE_SKIP_RPATH:BOOL=ON \
90          -DBUILD_SHARED_LIBS:BOOL=ON \
91          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
92          ${EXTRA_OECMAKE} -DLIBNAME:STRING=vconf -DTOOLNAME:STRING=vconftool .
93  oe_runmake
94  
95  
96  
97 }
98
99 do_install() {
100  export RPM_BUILD_ROOT=${D}
101  cd ${S}
102  LANG=C
103  export LANG
104  unset DISPLAY
105  rm -rf ${D}
106  mkdir -p ${D}
107  
108  
109    oe_runmake \
110          DESTDIR=${D} \
111          INSTALL_ROOT=${D} \
112          BINDIR=${prefix}/bin \
113    install  
114    rm -f ${D}${infodir}/dir 
115    find ${D} -regex ".*\.la$" | xargs rm -f -- 
116    find ${D} -regex ".*\.a$" | xargs rm -f --
117  mv ${D}${systemd_unitdir}/system/vconf-buxton-setup.service ${D}${systemd_unitdir}/system/vconf-setup.service
118  mkdir -p ${D}${systemd_unitdir}/system/basic.target.wants
119  ln -sf ../vconf-setup.service ${D}${systemd_unitdir}/system/basic.target.wants/
120  
121  
122 }
123
124 pkg_postinst_${PN}() {
125     #!/bin/sh -e
126
127     [ "x$D" == "x" ] && ldconfig
128     vconf-buxton-init-from-vconf.sh
129
130 }
131
132 pkg_postrm_${PN}() {
133     #!/bin/sh -e
134
135     [ "x$D" == "x" ] && ldconfig
136
137 }
138
139 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
140 PACKAGES += " vconf-buxton-dev "
141 PACKAGES += " vconf-buxton-keys-dev "
142 PACKAGES += " vconf-buxton "
143
144 vconf-buxton-dev_files = ""
145 vconf-buxton-dev_files += "${prefix}/include/vconf/vconf.h"
146 vconf-buxton-dev_files += "${prefix}/include/vconf/vconf-buxton.h"
147 vconf-buxton-dev_files += "${prefix}/lib/pkgconfig/vconf.pc"
148 vconf-buxton-dev_files += "${prefix}/lib/libvconf.so"
149 MANIFESTFILES_${PN}-dev = "vconf-buxton.manifest"
150
151 vconf-buxton-keys-dev_files = ""
152 vconf-buxton-keys-dev_files += "${prefix}/include/vconf/vconf-keys.h"
153 vconf-buxton-keys-dev_files += "${prefix}/include/vconf/vconf-buxton-keys.h"
154 MANIFESTFILES_${PN}-keys-dev = "vconf-buxton.manifest"
155
156 vconf-buxton_files = ""
157 vconf-buxton_files += "${prefix}/bin/vconftool"
158 vconf-buxton_files += "${prefix}/bin/vconf-buxton-init-from-vconf.sh"
159 vconf-buxton_files += "${prefix}/bin/vconf-buxton-restore-mem-layer.sh"
160 vconf-buxton_files += "${prefix}/bin/vconf-buxton-backup-mem-layer.sh"
161 vconf-buxton_files += "${prefix}/lib/libvconf.so.*"
162 vconf-buxton_files += "${systemd_unitdir}/system/basic.target.wants/vconf-setup.service"
163 vconf-buxton_files += "${systemd_unitdir}/system/vconf-setup.service"
164 MANIFESTFILES_${PN} = "vconf-buxton.manifest"
165
166 FILES_${PN}-dev = "${vconf-buxton-dev_files}"
167 FILES_${PN}-keys-dev = "${vconf-buxton-keys-dev_files}"
168 FILES_${PN} = "${vconf-buxton_files}"
169
170 PKG_vconf-buxton-dev= "vconf-buxton-dev"
171 PKG_vconf-buxton-keys-dev= "vconf-buxton-keys-dev"
172 PKG_vconf-buxton= "vconf-buxton"
173
174 require vconf-buxton-extraconf.inc
175