Tizen recipes: avoid -j16
[scm/bb/meta-tizen.git] / meta-tizen-common-devtools / recipes-devtools / wayland-fits-master / wayland-fits-master.inc
1 DESCRIPTION = "Wayland Test Suite"
2 HOMEPAGE = "https://github.com/01org/wayland-fits"
3 SECTION = "Applications/Core Applications"
4 LICENSE = "GPL-2.0+"
5 PV = "0.2.2"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by wayland-fits-master
17
18
19 RDEPENDS = ""
20
21 DEPENDS = ""
22 #DEPENDS of wayland-fits-master
23 DEPENDS += "libcheck"
24 DEPENDS += "libxkbcommon"
25 DEPENDS += "evas"
26 inherit pkgconfig
27 DEPENDS += "weston"
28 DEPENDS += "wayland"
29 DEPENDS += "unzip"
30 DEPENDS += "efl"
31 DEPENDS += "elementary"
32 DEPENDS += "ecore"
33 DEPENDS += "boost"
34 DEPENDS += "pixman"
35
36 do_prep() {
37  cd ${S}
38  chmod -Rf a+rX,u+w,g-w,o-w ${S}
39  #setup -q
40  
41  
42 }
43 do_patch_append() {
44     bb.build.exec_func('do_prep', d)
45 }
46
47 do_configure() {
48 }
49
50 do_compile() {
51  cd ${S}
52   LANG=C
53   export LANG
54   unset DISPLAY
55   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
56   
57   export CXXFLAGS="-DMEDIA_PATH='\"${prefix}/share/media\"'"
58   ./autogen.sh
59   
60   autotools_do_configure
61   make ${PARALLEL_MAKE}
62   
63   
64   
65 }
66 EXTRA_OECONF += ""
67
68 do_install() {
69  export RPM_BUILD_ROOT=${D}
70  cd ${S}
71  LANG=C
72  export LANG
73  unset DISPLAY
74  rm -rf ${D}
75  mkdir -p ${D}
76  
77  
78    oe_runmake \
79          DESTDIR=${D} \
80          INSTALL_ROOT=${D} \
81          BINDIR=${prefix}/bin \
82    install  
83    rm -f ${D}${infodir}/dir 
84    find ${D} -regex ".*\.la$" | xargs rm -f -- 
85    find ${D} -regex ".*\.a$" | xargs rm -f --
86  mkdir -p -m 755 ${D}${prefix}/share/media
87  install -m 755 ${S}/packaging/ADN_animation.gif ${D}${prefix}/share/media
88  install -m 755 ${S}/packaging/bridge_of_the_gods.png ${D}${prefix}/share/media
89  
90  
91 }
92
93 pkg_postinst_${PN}() {
94     #!/bin/sh -e
95
96     [ "x$D" == "x" ] && ldconfig
97 }
98
99 pkg_postrm_${PN}() {
100     #!/bin/sh -e
101
102     [ "x$D" == "x" ] && ldconfig
103 }
104
105 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
106 PACKAGES += " wayland-fits-master "
107
108 wayland-fits-master_files = ""
109 wayland-fits-master_files += "${prefix}/bin/wfits"
110 wayland-fits-master_files += "${prefix}/lib/weston/weston-wfits.so"
111 wayland-fits-master_files += "${prefix}/share/media/*"
112 wayland-fits-master_files += "README"
113
114 FILES_${PN} = "${wayland-fits-master_files}"
115
116 PKG_wayland-fits-master= "wayland-fits-master"
117
118 require wayland-fits-master-extraconf.inc
119