Tizen recipes : Fix tizen common build and get little more closer to current Tizen...
[scm/bb/meta-tizen.git] / meta-tizen-ivi / meta-tizen-common-base / recipes-security / libsecret / libsecret.inc
1 DESCRIPTION = "Library for accessing the Secret Service API"
2 HOMEPAGE = "http://www.gnome.org/"
3 SECTION = "System/Libraries"
4 LICENSE = "LGPL-2.1+"
5 PV = "0.18"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by typelib-Secret
17 PROVIDES += "typelib-Secret"
18
19
20 #PROVIDES by libsecret-dev
21 PROVIDES += "libsecret-dev"
22
23
24 #PROVIDES by libsecret
25
26
27 #PROVIDES by libsecret-docs
28 PROVIDES += "libsecret-docs "
29
30
31 #PROVIDES by libsecret-tools
32 PROVIDES += "libsecret-tools"
33
34
35 RDEPENDS = ""
36 #RDEPENDS of libsecret-dev (${PN}-dev)
37 RDEPENDS_${PN}-dev += "typelib-Secret"
38 RDEPENDS_${PN}-dev += "libsecret"
39
40
41 DEPENDS = ""
42 #DEPENDS of libsecret
43 #Replace "DEPENDS" on gettext by "inherit gettext"
44 inherit gettext
45 DEPENDS_append_class-native = " intltool-native"
46 DEPENDS_append_class-target = " intltool-native"
47 DEPENDS += "vala"
48 inherit pkgconfig
49 DEPENDS += "glib-2.0"
50 DEPENDS += "docbook-xsl-stylesheets"
51 DEPENDS += "gtk-doc-stub"
52 DEPENDS += "libxslt"
53 DEPENDS_append_class-native = " fdupes-native"
54 DEPENDS_append_class-target = " fdupes-native"
55 DEPENDS += "libgcrypt"
56 DEPENDS += "gtk-doc"
57
58 do_prep() {
59  cd ${S}
60  chmod -Rf a+rX,u+w,g-w,o-w ${S}
61  #setup -q
62  
63  
64 }
65 do_patch_append() {
66     bb.build.exec_func('do_prep', d)
67 }
68
69 do_configure() {
70 }
71
72 do_compile() {
73  cd ${S}
74   LANG=C
75   export LANG
76   unset DISPLAY
77   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
78   
79   
80    
81   autotools_do_configure
82   
83   oe_runmake  -j16
84   
85   
86   
87 }
88 EXTRA_OECONF += " --disable-static"
89
90 do_install() {
91  export RPM_BUILD_ROOT=${D}
92  cd ${S}
93  LANG=C
94  export LANG
95  unset DISPLAY
96  rm -rf ${D}
97  mkdir -p ${D}
98  
99  
100    oe_runmake \
101          DESTDIR=${D} \
102          INSTALL_ROOT=${D} \
103          BINDIR=${prefix}/bin \
104    install  
105    rm -f ${D}${infodir}/dir 
106    find ${D} -regex ".*\.la$" | xargs rm -f -- 
107    find ${D} -regex ".*\.a$" | xargs rm -f --
108  #find_lang libsecret
109  rm -rf ${D}${prefix}/share/locales/*
110  #fdupes ${D}
111  
112  
113 }
114
115 pkg_postinst_${PN}() {
116     #!/bin/sh -e
117
118     [ "x$D" == "x" ] && ldconfig
119 }
120
121 pkg_postrm_${PN}() {
122     #!/bin/sh -e
123
124     [ "x$D" == "x" ] && ldconfig
125 }
126
127 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
128 PACKAGES += " libsecret-tools "
129 PACKAGES += " libsecret-dev "
130 PACKAGES += " typelib-Secret "
131 PACKAGES += " libsecret-docs "
132 PACKAGES += " libsecret "
133
134 libsecret-tools_files = ""
135 libsecret-tools_files += "${prefix}/bin/secret-tool"
136
137 libsecret-dev_files = ""
138 libsecret-dev_files += "AUTHORS ChangeLog NEWS README"
139 libsecret-dev_files += "${prefix}/lib/libsecret-1.so"
140 libsecret-dev_files += "${prefix}/lib/pkgconfig/libsecret-1.pc"
141 libsecret-dev_files += "${prefix}/lib/pkgconfig/libsecret-unstable.pc"
142 libsecret-dev_files += "${prefix}/include/libsecret-1/"
143 libsecret-dev_files += "${prefix}/share/gir-1.0/Secret-1.gir"
144 libsecret-dev_files += "${prefix}/share/vala/vapi/libsecret-1.deps"
145 libsecret-dev_files += "${prefix}/share/vala/vapi/libsecret-1.vapi"
146
147 typelib-Secret_files = ""
148 typelib-Secret_files += "${prefix}/lib/girepository-1.0/Secret-1.typelib"
149
150 libsecret-docs_files = ""
151
152 libsecret_files = ""
153 libsecret_files += "${prefix}/lib/libsecret-1.so.*"
154
155 FILES_${PN}-tools = "${libsecret-tools_files}"
156 FILES_${PN}-dev = "${libsecret-dev_files}"
157 FILES_typelib-Secret = "${typelib-Secret_files}"
158 FILES_${PN}-docs = "${libsecret-docs_files}"
159 FILES_${PN} = "${libsecret_files}"
160
161 PKG_libsecret-tools= "libsecret-tools"
162 PKG_libsecret-dev= "libsecret-dev"
163 PKG_typelib-Secret= "typelib-Secret"
164 PKG_libsecret-docs= "libsecret-docs"
165 PKG_libsecret= "libsecret"
166
167 require libsecret-extraconf.inc
168