]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = bison | |
7 | version = 3.0.4 | |
8 | release = 1 | |
9 | ||
10 | groups = Development/Tools | |
11 | url = http://www.gnu.org/software/bison/ | |
12 | license = GPLv2+ | |
13 | summary = GNU Bison is a parser generator. | |
14 | ||
15 | description | |
16 | Bison is a general-purpose parser generator that converts an annotated | |
17 | context-free grammar into an LALR(1) or GLR parser for that grammar. | |
18 | end | |
19 | ||
20 | source_dl = http://ftp.gnu.org/gnu/bison/ | |
21 | sources = %{thisapp}.tar.xz | |
22 | ||
23 | build | |
24 | requires | |
25 | flex >= 2.5.37 | |
26 | m4 >= 1.4.16 | |
27 | perl | |
28 | end | |
29 | ||
30 | configure_cmds | |
31 | echo '#define YYENABLE_NLS 1' >> lib/config.h | |
32 | end | |
33 | ||
34 | build_cmds | |
35 | cd lib | |
36 | gcc -shared -Wl,-soname,liby.so.%{version} \ | |
37 | -o liby.so.%{version} %{CFLAGS} main.o yyerror.o | |
38 | end | |
39 | ||
40 | test | |
41 | make check | |
42 | end | |
43 | ||
44 | install_cmds | |
45 | mkdir -pv %{BUILDROOT}%{libdir} | |
46 | cd lib | |
47 | install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version} | |
48 | ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.3 | |
49 | ln -vsf liby.so.3 %{BUILDROOT}%{libdir}/liby.so | |
50 | end | |
51 | end | |
52 | ||
53 | packages | |
54 | package %{name} | |
55 | requires += m4 | |
56 | end | |
57 | ||
58 | package %{name}-debuginfo | |
59 | template DEBUGINFO | |
60 | end | |
61 | end |