first commit
[scm/bb/meta-tizen.git] / recipes-tizen / 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
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by weekeyboard 
13 PROVIDES += "weekeyboard"
14 RPROVIDES_weekeyboard += "weekeyboard"
15
16 RDEPENDS = ""
17 #RDEPENDS of weekeyboard (${PN})
18 RDEPENDS_${PN} += "ibus-hangul"
19 RDEPENDS_${PN} += "ibus"
20 RDEPENDS_${PN} += "ibus-libpinyin"
21
22
23 DEPENDS = ""
24 #DEPENDS of weekeyboard 
25 DEPENDS += "pkgconfig(evas)"
26 DEPENDS += "pkgconfig(edje)"
27 DEPENDS += "pkgconfig(eldbus)"
28 DEPENDS += "pkgconfig(ecore-evas)"
29 DEPENDS += "pkgconfig(eet)"
30 DEPENDS += "pkgconfig(ecore-wayland)"
31 DEPENDS += "ibus"
32 DEPENDS += "pkgconfig(efreet)"
33 DEPENDS += "ecore"
34 DEPENDS += "pkgconfig(eina)"
35
36 do_patch() {
37  chmod -Rf a+rX,u+w,g-w,o-w ${S}
38  #setup -q
39  cp ${S}/packaging/weekeyboard.manifest .
40  
41  
42 }
43
44 do_configure() {
45 }
46
47 do_compile() {
48  LANG=C
49  export LANG
50  unset DISPLAY
51  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
52  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
53  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
54  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
55  
56  
57  
58    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
59    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
60    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
61    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
62          --target=x86_64-tizen-linux \
63          --program-prefix= \
64          --prefix=/usr \
65          --exec-prefix=/usr \
66          --bindir=/usr/bin \
67          --sbindir=/usr/sbin \
68          --sysconfdir=/etc \
69          --datadir=/usr/share \
70          --includedir=/usr/include \
71          --libdir=/usr/lib \
72          --libexecdir=/usr/libexec \
73          --localstatedir=/var \
74          --sharedstatedir=/usr/com \
75          --mandir=/usr/share/man \
76          --infodir=/usr/share/info --disable-ibus
77  make -j16
78  
79  
80  
81 }
82
83 do_install() {
84  echo export RPM_BUILD_ROOT=${D}
85  LANG=C
86  export LANG
87  unset DISPLAY
88  rm -rf ${D} 
89  mkdir -p ${D} 
90  
91  
92    oe_runmake \
93          DESTDIR=${D} \
94          INSTALL_ROOT=${D} \
95          BINDIR=/usr/bin \
96    install  
97    rm -f ${D}/usr/share/info/dir 
98    find ${D} -regex ".*\.la$" | xargs rm -f -- 
99    find ${D} -regex ".*\.a$" | xargs rm -f --
100  
101  
102 }
103
104 PACKAGES = ""
105 PACKAGES += "weekeyboard"
106
107 weekeyboard_files = ""
108 weekeyboard_files += "weekeyboard.manifest"
109 weekeyboard_files += "/usr/bin/weekeyboard"
110 weekeyboard_files += "/usr/share/weekeyboard/*.edj"
111
112 FILES_${PN} = "${weekeyboard_files}"
113
114 PKG_weekeyboard= "weekeyboard"
115
116 require weekeyboard-extraconf.inc