summaryrefslogtreecommitdiff
path: root/meta-tizen/meta-tizen-ivi/meta-tizen-common-base/recipes-security/gcr/gcr.inc
blob: ef5227102253b85dd85283080180be978266e075 (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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
DESCRIPTION = "Library for Crypto UI related task"
HOMEPAGE = "http://www.gnome.org"
SECTION = "Security/Crypto Libraries"
LICENSE = "LGPL-2.1+"
PV = "3.8.2"

SRC_URI = ""

S = "${WORKDIR}/git"

inherit manifest autotools-brokensep

BBCLASSEXTEND = ""
PROVIDES = ""

#PROVIDES by typelib-Gcr
PROVIDES += "typelib-Gcr"


#PROVIDES by libgcr
PROVIDES += "libgcr"


#PROVIDES by libgcr-dev
PROVIDES += "libgcr-dev"


#PROVIDES by gcr


#PROVIDES by typelib-Gck
PROVIDES += "typelib-Gck"


#PROVIDES by libgck
PROVIDES += "libgck"
# the PROVIDES rules is ignore "gck = 3.8.2"
PROVIDES += "gck"
RPROVIDES_libgck += "gck"


#PROVIDES by gcr-data
PROVIDES += "gcr-data"


#PROVIDES by libgck-dev
PROVIDES += "libgck-dev"


RDEPENDS = ""
#RDEPENDS of libgcr (lib${PN})
RDEPENDS_lib${PN} += "gcr-data"

#RDEPENDS of libgcr-dev (lib${PN}-dev)
RDEPENDS_lib${PN}-dev += "typelib-Gcr"
RDEPENDS_lib${PN}-dev += "libgcr"

#RDEPENDS of gcr-data (${PN}-data)
RDEPENDS_${PN}-data += "glib-2.0"

#RDEPENDS of libgck-dev (libgck-dev)
RDEPENDS_libgck-dev += "typelib-Gck"
RDEPENDS_libgck-dev += "libgck"


DEPENDS = ""
#DEPENDS of gcr
DEPENDS += "shared-mime-info"
DEPENDS_append_class-native = " intltool-native"
DEPENDS_append_class-target = " intltool-native"
DEPENDS += "p11-kit"
DEPENDS += "gnome-common"
DEPENDS += "dbus"
DEPENDS += "libtasn1"
inherit pkgconfig
DEPENDS += "gpg2"
DEPENDS += "glib-2.0"
DEPENDS += "update-desktop-files"
DEPENDS += "gtk-doc-stub"
DEPENDS += "libgcrypt"
DEPENDS += "gtk-doc"

do_prep() {
 cd ${S}
 chmod -Rf a+rX,u+w,g-w,o-w ${S}
 #setup -q
 
 
}
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 ;
  
  
  
   
  autotools_do_configure
  
  make
  
  
  
}
EXTRA_OECONF += " --with-gtk=no --disable-gtk-doc-html"

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 --
 #find_lang gcr
 
 
 
}

pkg_postinst_${PN}() {
    #!/bin/sh -e

    %glib2_gsettings_schema_post
    %icon_theme_cache_post

}

pkg_postinst_libgcr() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postinst_libgck() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postrm_libgcr() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postrm_libgck() {
    #!/bin/sh -e

    [ "x$D" == "x" ] && ldconfig
}

pkg_postrm_${PN}() {
    #!/bin/sh -e

    %glib2_gsettings_schema_postun
    %icon_theme_cache_postun

}

PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
PACKAGES += " typelib-Gcr "
PACKAGES += " libgcr "
PACKAGES += " libgcr-dev "
PACKAGES += " typelib-Gck "
PACKAGES += " libgck "
PACKAGES += " gcr-data "
PACKAGES += " libgck-dev "

typelib-Gcr_files = ""
typelib-Gcr_files += "${prefix}/lib/girepository-1.0/Gcr-3.typelib"

libgcr_files = ""
libgcr_files += "${prefix}/lib/libgcr-base-3.so.*"

libgcr-dev_files = ""
libgcr-dev_files += "${prefix}/lib/libgcr-base-3.so"
libgcr-dev_files += "${prefix}/lib/pkgconfig/gcr-base-3.pc"
libgcr-dev_files += "${prefix}/include/gcr-3/"

typelib-Gck_files = ""
typelib-Gck_files += "${prefix}/lib/girepository-1.0/Gck-1.typelib"

libgck_files = ""
libgck_files += "${prefix}/lib/libgck-1.so.*"

gcr-data_files = ""
gcr-data_files += "${prefix}/share/GConf"
gcr-data_files += "${prefix}/share/GConf/gsettings"
gcr-data_files += "${prefix}/share/GConf/gsettings/org.gnome.crypto.pgp.convert"
gcr-data_files += "${prefix}/share/GConf/gsettings/org.gnome.crypto.pgp_keyservers.convert"
gcr-data_files += "${prefix}/share/glib-2.0/schemas/org.gnome.crypto.pgp.gschema.xml"
DIRFILES_${PN}-data = ""
DIRFILES_${PN}-data += "${prefix}/share/GConf"
DIRFILES_${PN}-data += "${prefix}/share/GConf/gsettings"

libgck-dev_files = ""
libgck-dev_files += "${prefix}/lib/libgck-1.so"
libgck-dev_files += "${prefix}/lib/pkgconfig/gck-1.pc"
libgck-dev_files += "${prefix}/include/gck-1/"
libgck-dev_files += "${prefix}/share/gir-1.0/Gck-1.gir"
libgck-dev_files += "${prefix}/share/gir-1.0/Gcr-3.gir"

FILES_typelib-Gcr = "${typelib-Gcr_files}"
FILES_lib${PN} = "${libgcr_files}"
FILES_lib${PN}-dev = "${libgcr-dev_files}"
FILES_typelib-Gck = "${typelib-Gck_files}"
FILES_libgck = "${libgck_files}"
FILES_${PN}-data = "${gcr-data_files}"
FILES_libgck-dev = "${libgck-dev_files}"

PKG_typelib-Gcr= "typelib-Gcr"
PKG_libgcr= "libgcr"
PKG_libgcr-dev= "libgcr-dev"
PKG_typelib-Gck= "typelib-Gck"
PKG_libgck= "libgck"
PKG_gcr-data= "gcr-data"
PKG_libgck-dev= "libgck-dev"

require gcr-extraconf.inc