Update recipes
[scm/bb/meta-tizen.git] / recipes-tizen / app-checker / app-checker.inc
1 DESCRIPTION = "App Checker"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
4 LICENSE = "Apache-2.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 BBCLASSEXTEND = ""
13 PROVIDES = ""
14
15 #PROVIDES by app-checker-server-dev
16
17
18 #PROVIDES by app-checker-dev
19
20
21 #PROVIDES by app-checker
22
23
24 #PROVIDES by app-checker-server
25
26
27 RDEPENDS = ""
28 #RDEPENDS of app-checker-server-dev (${PN}-server-dev)
29 RDEPENDS_${PN}-server-dev += "app-checker-server"
30
31 #RDEPENDS of app-checker-dev (${PN}-dev)
32 RDEPENDS_${PN}-dev += "app-checker"
33
34 #RDEPENDS of app-checker-server (${PN}-server)
35 RDEPENDS_${PN}-server += "app-checker"
36
37
38 DEPENDS = ""
39 #DEPENDS of app-checker
40 DEPENDS_append_class-native = " cmake-native"
41 DEPENDS_append_class-target = " cmake-native"
42 DEPENDS += "dlog"
43 DEPENDS += "glib-2.0"
44
45 do_prep() {
46  cd ${S}
47  chmod -Rf a+rX,u+w,g-w,o-w ${S}
48  #setup -q
49  cp ${S}/packaging/app-checker.manifest .
50  
51  
52  
53 }
54 do_patch_append() {
55     bb.build.exec_func('do_prep', d)
56 }
57
58 do_configure() {
59 }
60
61 do_compile() {
62  cd ${S}
63  LANG=C
64  export LANG
65  unset DISPLAY
66  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
67  
68  
69  
70    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
71    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
72    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
73    cmake \
74          -DCMAKE_VERBOSE_MAKEFILE=ON \
75          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
76          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
77          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
78          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
79          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
80          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
81          -DCMAKE_SKIP_RPATH:BOOL=ON \
82          -DBUILD_SHARED_LIBS:BOOL=ON .
83  
84  make -j16
85  
86  
87  
88 }
89
90 do_install() {
91  echo 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  rm -rf ${D}
100  
101    oe_runmake \
102          DESTDIR=${D} \
103          INSTALL_ROOT=${D} \
104          BINDIR=${prefix}/bin \
105    install  
106    rm -f ${D}${infodir}/dir 
107    find ${D} -regex ".*\.la$" | xargs rm -f -- 
108    find ${D} -regex ".*\.a$" | xargs rm -f --
109  mkdir -p ${D}${prefix}/lib/ac-plugins
110  
111  mkdir -p ${D}/usr/share/license
112  cp LICENSE ${D}/usr/share/license/app-checker
113  cp LICENSE ${D}/usr/share/license/app-checker-devel
114  cp LICENSE ${D}/usr/share/license/app-checker-server
115  cp LICENSE ${D}/usr/share/license/app-checker-server-devel
116  
117  
118 }
119
120 pkg_postinst_${PN}() {
121     #!/bin/sh -e
122
123     ldconfig
124 }
125
126 pkg_postrm_${PN}() {
127     #!/bin/sh -e
128
129     ldconfig
130 }
131
132 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
133 PACKAGES += " app-checker-server-dev "
134 PACKAGES += " app-checker-server "
135 PACKAGES += " app-checker "
136 PACKAGES += " app-checker-dev "
137
138 app-checker-server-dev_files = ""
139 app-checker-server-dev_files += "app-checker.manifest"
140 app-checker-server-dev_files += "${prefix}/lib/libapp-checker-server.so"
141 app-checker-server-dev_files += "${prefix}/lib/pkgconfig/app-checker-server.pc"
142 app-checker-server-dev_files += "${prefix}/include/app-checker/app-checker-server.h"
143 app-checker-server-dev_files += "/usr/share/license/app-checker-server-devel"
144
145 app-checker-server_files = ""
146 app-checker-server_files += "app-checker.manifest"
147 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0"
148 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0.1.0"
149 app-checker-server_files += "/usr/share/license/app-checker-server"
150
151 app-checker_files = ""
152 app-checker_files += "app-checker.manifest"
153 app-checker_files += "${prefix}/lib/libapp-checker.so.0"
154 app-checker_files += "${prefix}/lib/libapp-checker.so.0.1.0"
155 app-checker_files += "${prefix}/lib/ac-plugins"
156 app-checker_files += "/usr/share/license/app-checker"
157
158 app-checker-dev_files = ""
159 app-checker-dev_files += "app-checker.manifest"
160 app-checker-dev_files += "${prefix}/lib/libapp-checker.so"
161 app-checker-dev_files += "${prefix}/lib/pkgconfig/app-checker.pc"
162 app-checker-dev_files += "${prefix}/include/app-checker/app-checker.h"
163 app-checker-dev_files += "/usr/share/license/app-checker-devel"
164
165 FILES_${PN}-server-dev = "${app-checker-server-dev_files}"
166 FILES_${PN}-server = "${app-checker-server_files}"
167 FILES_${PN} = "${app-checker_files}"
168 FILES_${PN}-dev = "${app-checker-dev_files}"
169
170 PKG_app-checker-server-dev= "app-checker-server-dev"
171 PKG_app-checker-server= "app-checker-server"
172 PKG_app-checker= "app-checker"
173 PKG_app-checker-dev= "app-checker-dev"
174
175 require app-checker-extraconf.inc
176