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 / gsignond-plugin-oauth / gsignond-plugin-oauth.inc
1 DESCRIPTION = "OAuth plugin for GLib"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Security/Accounts"
4 LICENSE = "LGPL-2.1+"
5 PV = "1.0.0"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by gsignond-plugin-oauth
17
18
19 #PROVIDES by gsignond-plugin-oauth-doc
20 PROVIDES += "gsignond-plugin-oauth-doc"
21
22
23 RDEPENDS = ""
24 #RDEPENDS of gsignond-plugin-oauth (${PN})
25 RDEPENDS_${PN} += "glibc"
26
27 #RDEPENDS of gsignond-plugin-oauth-doc (${PN}-doc)
28 RDEPENDS_${PN}-doc += "gsignond-plugin-oauth"
29
30
31 DEPENDS = ""
32 #DEPENDS of gsignond-plugin-oauth
33 DEPENDS += "gsignond"
34 inherit pkgconfig
35 DEPENDS += "glib-2.0"
36 DEPENDS += "libsoup-2.4"
37 DEPENDS += "json-glib"
38 DEPENDS += "gnutls"
39
40 do_prep() {
41  cd ${S}
42  chmod -Rf a+rX,u+w,g-w,o-w ${S}
43  #setup -q -n gsignond-plugin-oauth-1.0.0
44  cp ${S}/packaging/gsignond-plugin-oauth.manifest .
45  
46  
47  
48 }
49 do_patch_append() {
50     bb.build.exec_func('do_prep', d)
51 }
52
53 do_configure() {
54 }
55
56 do_compile() {
57  cd ${S}
58   LANG=C
59   export LANG
60   unset DISPLAY
61   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
62   
63   
64   autotools_do_configure
65   oe_runmake -j16
66   
67   
68   
69   
70 }
71 EXTRA_OECONF += ""
72
73 do_install() {
74  export RPM_BUILD_ROOT=${D}
75  cd ${S}
76  LANG=C
77  export LANG
78  unset DISPLAY
79  rm -rf ${D}
80  mkdir -p ${D}
81  
82  rm -rf ${D}
83  
84    oe_runmake \
85          DESTDIR=${D} \
86          INSTALL_ROOT=${D} \
87          BINDIR=${prefix}/bin \
88    install  
89    rm -f ${D}${infodir}/dir 
90    find ${D} -regex ".*\.la$" | xargs rm -f -- 
91    find ${D} -regex ".*\.a$" | xargs rm -f --
92  
93  
94  
95 }
96
97 pkg_postinst_${PN}() {
98     #!/bin/sh -e
99
100     [ "x$D" == "x" ] && ldconfig
101 }
102
103 pkg_postrm_${PN}() {
104     #!/bin/sh -e
105
106     [ "x$D" == "x" ] && ldconfig
107 }
108
109 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
110 PACKAGES += " gsignond-plugin-oauth "
111
112 gsignond-plugin-oauth_files = ""
113 gsignond-plugin-oauth_files += "${prefix}/lib/gsignond/gplugins/liboauth*.so"
114 MANIFESTFILES_${PN} = "gsignond-plugin-oauth.manifest"
115
116 gsignond-plugin-oauth-doc_files = ""
117 gsignond-plugin-oauth-doc_files += "${prefix}/share/gtk-doc/html/gsignond-plugin-oauth/*"
118
119 FILES_${PN} = "${gsignond-plugin-oauth_files}"
120 FILES_${PN}-doc = "${gsignond-plugin-oauth-doc_files}"
121
122 PKG_gsignond-plugin-oauth= "gsignond-plugin-oauth"
123 PKG_gsignond-plugin-oauth-doc= "gsignond-plugin-oauth-doc"
124
125 require gsignond-plugin-oauth-extraconf.inc
126