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