Tizen recipes : Fix tizen common build and get little more closer to current Tizen...
[scm/bb/meta-tizen.git] / meta-tizen-common-share / recipes-devtools / xtrans / xtrans.inc
1 DESCRIPTION = "Library to handle network protocol transport in X"
2 HOMEPAGE = "http://xorg.freedesktop.org/"
3 SECTION = "Development/Libraries/X11"
4 LICENSE = "MIT"
5 PV = "1.3.4"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by xtrans
17
18
19 RDEPENDS = ""
20
21 DEPENDS = ""
22 #DEPENDS of xtrans
23 DEPENDS += "util-macros"
24 inherit pkgconfig
25
26 do_prep() {
27  cd ${S}
28  chmod -Rf a+rX,u+w,g-w,o-w ${S}
29  #setup -q
30  cp ${S}/packaging/xtrans.manifest .
31  
32  
33 }
34 do_patch_append() {
35     bb.build.exec_func('do_prep', d)
36 }
37
38 do_configure() {
39 }
40
41 do_compile() {
42  cd ${S}
43   LANG=C
44   export LANG
45   unset DISPLAY
46   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
47   
48   
49    
50   autotools_do_configure
51   make -j16
52   
53   
54   
55 }
56 EXTRA_OECONF += " --docdir=${prefix}/share/doc/packages/xtrans"
57
58 do_install() {
59  export RPM_BUILD_ROOT=${D}
60  cd ${S}
61  LANG=C
62  export LANG
63  unset DISPLAY
64  rm -rf ${D}
65  mkdir -p ${D}
66  
67  
68    oe_runmake \
69          DESTDIR=${D} \
70          INSTALL_ROOT=${D} \
71          BINDIR=${prefix}/bin \
72    install  
73    rm -f ${D}${infodir}/dir 
74    find ${D} -regex ".*\.la$" | xargs rm -f -- 
75    find ${D} -regex ".*\.a$" | xargs rm -f --
76  
77  
78 }
79
80 pkg_preinst_${PN}() {
81     #!/bin/sh -e
82
83     test -L usr/include/X11 && rm usr/include/X11
84     exit 0
85
86 }
87
88 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
89 PACKAGES += " xtrans "
90
91 xtrans_files = ""
92 xtrans_files += "${prefix}/share/doc/packages/xtrans/xtrans.xml"
93 xtrans_files += "${prefix}/include/X11/Xtrans/"
94 xtrans_files += "${prefix}/share/aclocal/xtrans.m4"
95 xtrans_files += "${prefix}/share/pkgconfig/xtrans.pc"
96 MANIFESTFILES_${PN} = "xtrans.manifest"
97
98 FILES_${PN} = "${xtrans_files}"
99
100 PKG_xtrans= "xtrans"
101
102 require xtrans-extraconf.inc
103