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