first commit
[scm/bb/meta-tizen.git] / recipes-tizen / xf86dgaproto / xf86dgaproto.inc
1 DESCRIPTION = "X.Org X11 Protocol xf86dgaproto"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Development/System"
4 LICENSE = "MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by xf86dgaproto 
13 PROVIDES += "xf86dgaproto"
14 RPROVIDES_xf86dgaproto += "xf86dgaproto"
15
16 RDEPENDS = ""
17
18 DEPENDS = ""
19 #DEPENDS of xf86dgaproto 
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/xf86dgaproto.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=x86_64-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 --disable-static \
62               --libdir=/usr/share \
63               --without-xmlto
64  
65  make -j16
66  
67  
68  
69 }
70
71 do_install() {
72  echo export RPM_BUILD_ROOT=${D}
73  LANG=C
74  export LANG
75  unset DISPLAY
76  rm -rf ${D} 
77  mkdir -p ${D} 
78  
79  rm -rf ${D}
80  
81    oe_runmake \
82          DESTDIR=${D} \
83          INSTALL_ROOT=${D} \
84          BINDIR=/usr/bin \
85    install  
86    rm -f ${D}/usr/share/info/dir 
87    find ${D} -regex ".*\.la$" | xargs rm -f -- 
88    find ${D} -regex ".*\.a$" | xargs rm -f --
89  
90  
91    rm -rf ${D}/usr/share/info 
92    rm -rf ${D}/usr/share/doc/packages 
93    rm -rf ${D}/usr/share/doc/xf86dgaproto 
94    rm -rf ${D}/usr/share/doc/xf86dgaproto-2.1 
95    rm -rf ${D}/usr/share/gtk-doc 
96    rm -rf ${D}/usr/share/doc 
97    rm -rf ${D}/usr/share/man 
98    find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f -- 
99    find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f -- 
100    find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
101  
102  
103  
104 }
105
106 PACKAGES = ""
107 PACKAGES += "xf86dgaproto"
108
109 xf86dgaproto_files = ""
110 xf86dgaproto_files += "xf86dgaproto.manifest"
111 xf86dgaproto_files += "/usr/include/X11/extensions/*.h"
112 xf86dgaproto_files += "/usr/share/pkgconfig/*.pc"
113
114 FILES_${PN} = "${xf86dgaproto_files}"
115
116 PKG_xf86dgaproto= "xf86dgaproto"
117
118 require xf86dgaproto-extraconf.inc