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