first commit
[scm/bb/meta-tizen.git] / recipes-tizen / dmxproto / dmxproto.inc
1 DESCRIPTION = "X.org DMXProto protocol headers"
2 HOMEPAGE = "http://www.x.org"
3 SECTION = "Development/X11 Protocols"
4 LICENSE = "MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by dmxproto 
13 PROVIDES += "dmxproto"
14 RPROVIDES_dmxproto += "dmxproto"
15
16 RDEPENDS = ""
17
18 DEPENDS = ""
19 #DEPENDS of dmxproto 
20 DEPENDS += "pkgconfig-native"
21 DEPENDS += "pkgconfig(xorg-macros)"
22
23 do_patch() {
24  chmod -Rf a+rX,u+w,g-w,o-w ${S}
25  #setup -q
26  cp ${S}/packaging/dmxproto.manifest .
27  
28  
29 }
30
31 do_configure() {
32 }
33
34 do_compile() {
35  LANG=C
36  export LANG
37  unset DISPLAY
38  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
39  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
40  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
41  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
42  
43  
44    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
45    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
46    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
47    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
48          --target=noarch-tizen-linux \
49          --program-prefix= \
50          --prefix=/usr \
51          --exec-prefix=/usr \
52          --bindir=/usr/bin \
53          --sbindir=/usr/sbin \
54          --sysconfdir=/etc \
55          --datadir=/usr/share \
56          --includedir=/usr/include \
57          --libdir=/usr/lib \
58          --libexecdir=/usr/libexec \
59          --localstatedir=/var \
60          --sharedstatedir=/usr/com \
61          --mandir=/usr/share/man \
62          --infodir=/usr/share/info --disable-static \
63               --libdir=/usr/share \
64               --without-xmlto
65  
66  make -j16
67  
68  
69  
70 }
71
72 do_install() {
73  echo export RPM_BUILD_ROOT=${D}
74  LANG=C
75  export LANG
76  unset DISPLAY
77  rm -rf ${D} 
78  mkdir -p ${D} 
79  
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/dmxproto 
94    rm -rf ${D}/usr/share/doc/dmxproto-2.3.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 += "dmxproto"
108
109 dmxproto_files = ""
110 dmxproto_files += "dmxproto.manifest"
111 dmxproto_files += "/usr/include/X11/extensions/*.h"
112 dmxproto_files += "/usr/share/pkgconfig/*.pc"
113
114 FILES_${PN} = "${dmxproto_files}"
115
116 PKG_dmxproto= "dmxproto"
117
118 require dmxproto-extraconf.inc