Merge branch 'master' of git.vannes:/srv/git/gitcache/github.com/eurogiciel-oss/meta...
[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 License, Version 2.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 PROVIDES = ""
13
14 #PROVIDES by app-checker-server-dev 
15
16
17 #PROVIDES by app-checker-dev 
18
19
20 #PROVIDES by app-checker 
21
22
23 #PROVIDES by app-checker-server 
24
25
26 RDEPENDS = ""
27 #RDEPENDS of app-checker-server-dev (${PN}-server-dev)
28 RDEPENDS_${PN}-server-dev += "app-checker-server"
29
30 #RDEPENDS of app-checker-dev (${PN}-dev)
31 RDEPENDS_${PN}-dev += "app-checker"
32
33 #RDEPENDS of app-checker-server (${PN}-server)
34 RDEPENDS_${PN}-server += "app-checker"
35
36
37 DEPENDS = ""
38 #DEPENDS of app-checker 
39 DEPENDS_append_class-native = " cmake-native"
40 DEPENDS_append_class-target = " cmake-native"
41 DEPENDS += "dlog"
42
43 do_prep() {
44  cd ${S}
45  chmod -Rf a+rX,u+w,g-w,o-w ${S}
46  #setup -q
47  cp ${S}/packaging/app-checker.manifest .
48  
49  
50  
51 }
52 do_patch_append() {
53     bb.build.exec_func('do_prep', d)
54 }
55
56 do_configure() {
57 }
58
59 do_compile() {
60  cd ${S}
61  LANG=C
62  export LANG
63  unset DISPLAY
64  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
65  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
66  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
67  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
68  
69  
70  
71    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
72    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
73    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
74    cmake \
75          -DCMAKE_VERBOSE_MAKEFILE=ON \
76          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
77          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
78          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
79          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
80          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
81          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
82          -DCMAKE_SKIP_RPATH:BOOL=ON \
83          -DBUILD_SHARED_LIBS:BOOL=ON . 
84  
85  make -j16
86  
87  
88  
89 }
90
91 do_install() {
92  echo export RPM_BUILD_ROOT=${D}
93  cd ${S}
94  LANG=C
95  export LANG
96  unset DISPLAY
97  rm -rf ${D} 
98  mkdir -p ${D} 
99  
100  rm -rf ${D}
101  
102    oe_runmake \
103          DESTDIR=${D} \
104          INSTALL_ROOT=${D} \
105          BINDIR=${prefix}/bin \
106    install  
107    rm -f ${D}${infodir}/dir 
108    find ${D} -regex ".*\.la$" | xargs rm -f -- 
109    find ${D} -regex ".*\.a$" | xargs rm -f --
110  mkdir -p ${D}${prefix}/lib/ac-plugins
111  
112  
113  
114 }
115
116 PACKAGES += " app-checker-server-dev "
117 PACKAGES += " app-checker-server "
118
119 app-checker-server-dev_files = ""
120 app-checker-server-dev_files += "app-checker.manifest"
121 app-checker-server-dev_files += "${prefix}/lib/libapp-checker-server.so"
122 app-checker-server-dev_files += "${prefix}/lib/pkgconfig/app-checker-server.pc"
123 app-checker-server-dev_files += "/usr/include/app-checker/app-checker-server.h"
124
125 app-checker-server_files = ""
126 app-checker-server_files += "app-checker.manifest"
127 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0"
128 app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0.1.0"
129
130 app-checker_files = ""
131 app-checker_files += "app-checker.manifest"
132 app-checker_files += "${prefix}/lib/libapp-checker.so.0"
133 app-checker_files += "${prefix}/lib/libapp-checker.so.0.1.0"
134 app-checker_files += "${prefix}/lib/ac-plugins"
135
136 app-checker-dev_files = ""
137 app-checker-dev_files += "app-checker.manifest"
138 app-checker-dev_files += "${prefix}/lib/libapp-checker.so"
139 app-checker-dev_files += "${prefix}/lib/pkgconfig/app-checker.pc"
140 app-checker-dev_files += "/usr/include/app-checker/app-checker.h"
141
142 FILES_${PN}-server-dev = "${app-checker-server-dev_files}"
143 FILES_${PN}-server = "${app-checker-server_files}"
144 FILES_${PN} = "${app-checker_files}"
145 FILES_${PN}-dev = "${app-checker-dev_files}"
146
147 PKG_app-checker-server-dev= "app-checker-server-dev"
148 PKG_app-checker-server= "app-checker-server"
149 PKG_app-checker= "app-checker"
150 PKG_app-checker-dev= "app-checker-dev"
151
152 require app-checker-extraconf.inc
153