blob: 4594cab09a87e3781169c3f70f282788f65131cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
DESCRIPTION = "NFC framework manager"
HOMEPAGE = "http://nohomepage.org"
SECTION = "Network & Connectivity/NFC"
LICENSE = "Flora"
SRC_URI = ""
S = "${WORKDIR}/git"
inherit autotools-brokensep
BBCLASSEXTEND = ""
PROVIDES = ""
#PROVIDES by nfc-common-neard-dev
PROVIDES += "nfc-common-neard-dev"
#PROVIDES by nfc-client-lib-neard
PROVIDES += "nfc-client-lib-neard"
#PROVIDES by nfc-manager-neard
#PROVIDES by nfc-client-lib-neard-dev
PROVIDES += "nfc-client-lib-neard-dev"
RDEPENDS = ""
#RDEPENDS of nfc-client-lib-neard-dev (nfc-client-lib-neard-dev)
RDEPENDS_nfc-client-lib-neard-dev += "nfc-client-lib-neard"
#RDEPENDS of nfc-manager-neard (${PN})
RDEPENDS_${PN} += "neardal"
RDEPENDS_${PN} += "neard"
RDEPENDS_${PN} += "eglibc"
RDEPENDS_${PN} += "nfc-client-lib-neard"
RDEPENDS_${PN} += "vconf"
DEPENDS = ""
#DEPENDS of nfc-manager-neard
DEPENDS += "security-server"
DEPENDS += "libtapi-legacy"
DEPENDS += "curl"
DEPENDS_append_class-native = " cmake-native"
DEPENDS_append_class-target = " cmake-native"
DEPENDS += "slp-pkgmgr"
DEPENDS += "app-svc"
DEPENDS += "aul"
DEPENDS += "dlog"
DEPENDS += "glib-2.0"
DEPENDS += "system-server"
DEPENDS += "bluetooth-frwk"
inherit pythonnative
DEPENDS += "libsvi"
DEPENDS += "tizen-platform-config"
#Replace "DEPENDS" on gettext by "inherit gettext"
inherit gettext
DEPENDS += "pkgmgr-info"
DEPENDS += "python-xml"
DEPENDS += "ecore"
DEPENDS += "vconf"
DEPENDS += "libmm-sound"
DEPENDS += "wav-player"
DEPENDS += "wifi"
DEPENDS += "openssl"
DEPENDS += "neardal"
do_prep() {
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q
cp ${S}/packaging/nfc-manager-neard.manifest .
}
do_patch_append() {
bb.build.exec_func('do_prep', d)
}
do_configure() {
}
do_compile() {
cd ${S}
LANG=C
export LANG
unset DISPLAY
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
MAJORVER=`echo 0.1.6 | awk 'BEGIN {FS="."}{print $1}'`
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
-DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
-DLIB_INSTALL_DIR:PATH=${prefix}/lib \
-DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
-DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
${EXTRA_OECMAKE} . -DMAJORVER=${MAJORVER} -DFULLVER=0.1.6 \
-DWAYLAND_SUPPORT=On \
-DX11_SUPPORT=Off
}
do_install() {
export RPM_BUILD_ROOT=${D}
cd ${S}
LANG=C
export LANG
unset DISPLAY
rm -rf ${D}
mkdir -p ${D}
oe_runmake \
DESTDIR=${D} \
INSTALL_ROOT=${D} \
BINDIR=${prefix}/bin \
install
rm -f ${D}${infodir}/dir
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
mkdir -p ${D}${prefix}/lib/systemd/system/multi-user.target.wants
cp -af ${S}/packaging/nfc-manager-neard.service ${D}${prefix}/lib/systemd/system/
ln -s ../nfc-manager-neard.service ${D}${prefix}/lib/systemd/system/multi-user.target.wants/nfc-manager-neard.service
}
pkg_postinst_nfc-client-lib-neard() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
USER_GROUP_ID=$(getent group users | cut -d: -f3)
vconftool set -t bool db/nfc/feature 0 -g $USER_GROUP_ID -f
vconftool set -t bool db/nfc/predefined_item_state 0 -g $USER_GROUP_ID -f
vconftool set -t string db/nfc/predefined_item "None" -g $USER_GROUP_ID -f
vconftool set -t bool db/nfc/enable 0 -g $USER_GROUP_ID -f
vconftool set -t int db/nfc/se_type 0 -g $USER_GROUP_ID -f
}
pkg_postinst_${PN}() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
systemctl daemon-reload
if [ $1 == 1 ]; then
systemctl restart nfc-manager-neard.service
fi
}
pkg_postrm_${PN}() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
if [ $1 == 0 ]; then
systemctl stop nfc-manager-neard.service
fi
systemctl daemon-reload
}
pkg_postrm_nfc-client-lib-neard() {
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
}
PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
PACKAGES += " nfc-client-lib-neard "
PACKAGES += " nfc-client-lib-neard-dev "
PACKAGES += " nfc-manager-neard "
PACKAGES += " nfc-common-neard-dev "
nfc-client-lib-neard_files = ""
nfc-client-lib-neard_files += "${prefix}/lib/libnfc.so.*"
MANIFESTFILES_nfc-client-lib-neard = "nfc-manager-neard.manifest"
nfc-client-lib-neard-dev_files = ""
nfc-client-lib-neard-dev_files += "${prefix}/lib/libnfc.so"
nfc-client-lib-neard-dev_files += "${prefix}/lib/pkgconfig/nfc.pc"
nfc-client-lib-neard-dev_files += "${prefix}/include/nfc/*.h"
nfc-manager-neard_files = ""
nfc-manager-neard_files += "${prefix}/bin/nfc-manager-daemon"
nfc-manager-neard_files += "${prefix}/lib/systemd/system/nfc-manager-neard.service"
nfc-manager-neard_files += "${prefix}/lib/systemd/system/multi-user.target.wants/nfc-manager-neard.service"
nfc-manager-neard_files += "${prefix}/share/dbus-1/system-services/org.tizen.NetNfcService.service"
nfc-manager-neard_files += "${prefix}/share/packages/nfc-manager.xml"
nfc-manager-neard_files += "${prefix}/share/nfc-manager-daemon/sounds/*"
MANIFESTFILES_${PN} = "nfc-manager-neard.manifest"
nfc-common-neard-dev_files = ""
nfc-common-neard-dev_files += "${prefix}/lib/pkgconfig/nfc-common.pc"
nfc-common-neard-dev_files += "${prefix}/include/nfc-common/*.h"
FILES_nfc-client-lib-neard = "${nfc-client-lib-neard_files}"
FILES_nfc-client-lib-neard-dev = "${nfc-client-lib-neard-dev_files}"
FILES_${PN} = "${nfc-manager-neard_files}"
FILES_nfc-common-neard-dev = "${nfc-common-neard-dev_files}"
PKG_nfc-client-lib-neard= "nfc-client-lib-neard"
PKG_nfc-client-lib-neard-dev= "nfc-client-lib-neard-dev"
PKG_nfc-manager-neard= "nfc-manager-neard"
PKG_nfc-common-neard-dev= "nfc-common-neard-dev"
require nfc-manager-neard-extraconf.inc
|