11685200c2bfa726fc35b3b5bc79b7a01f9c08eb
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-graphics / weekeyboard / weekeyboard.inc
1 DESCRIPTION = "Virtual Keyboard Application"
2 HOMEPAGE = "http://github.com/etrunko/weekeyboard"
3 SECTION = "Graphics & UI Framework/Libraries"
4 LICENSE = "Apache-2.0"
5 PV = "0.0.3"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by weekeyboard
17
18
19 RDEPENDS = ""
20 #RDEPENDS of weekeyboard (${PN})
21 RDEPENDS_${PN} += "ibus-hangul"
22 RDEPENDS_${PN} += "ibus"
23 RDEPENDS_${PN} += "ibus-libpinyin"
24
25
26 DEPENDS = ""
27 #DEPENDS of weekeyboard
28 DEPENDS += "edje"
29 DEPENDS += "ibus"
30 DEPENDS += "evas"
31 inherit pkgconfig
32 DEPENDS += "efreet"
33 DEPENDS += "eina"
34 DEPENDS += "eet"
35 DEPENDS += "ecore"
36 DEPENDS += "eldbus"
37
38 do_prep() {
39  cd ${S}
40  chmod -Rf a+rX,u+w,g-w,o-w ${S}
41  #setup -q
42  cp ${S}/packaging/weekeyboard.manifest .
43  
44  
45 }
46 do_patch_append() {
47     bb.build.exec_func('do_prep', d)
48 }
49
50 do_configure() {
51 }
52
53 do_compile() {
54  cd ${S}
55   LANG=C
56   export LANG
57   unset DISPLAY
58   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
59   
60   
61   
62   autotools_do_configure
63   make ${PARALLEL_MAKE}
64   
65   
66   
67 }
68 EXTRA_OECONF += ""
69
70 do_install() {
71  export RPM_BUILD_ROOT=${D}
72  cd ${S}
73  LANG=C
74  export LANG
75  unset DISPLAY
76  rm -rf ${D}
77  mkdir -p ${D}
78  
79  
80    oe_runmake \
81          DESTDIR=${D} \
82          INSTALL_ROOT=${D} \
83          BINDIR=${prefix}/bin \
84    install  
85    rm -f ${D}${infodir}/dir 
86    find ${D} -regex ".*\.la$" | xargs rm -f -- 
87    find ${D} -regex ".*\.a$" | xargs rm -f --
88  
89  
90 }
91
92 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
93 PACKAGES += " weekeyboard "
94
95 weekeyboard_files = ""
96 weekeyboard_files += "${prefix}/bin/weekeyboard"
97 weekeyboard_files += "${prefix}/share/weekeyboard/*.edj"
98 weekeyboard_files += "${prefix}/share/X11/xkb/symbols/wkb"
99 MANIFESTFILES_${PN} = "weekeyboard.manifest"
100
101 FILES_${PN} = "${weekeyboard_files}"
102
103 PKG_weekeyboard= "weekeyboard"
104
105 require weekeyboard-extraconf.inc
106