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