]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - bison/bison.nm
Merge remote-tracking branch 'stevee/compat-packages'
[people/ms/ipfire-3.x.git] / bison / bison.nm
CommitLineData
798d2771 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
798d2771
MT
4###############################################################################
5
802ea3af 6name = bison
bea58a22 7version = 2.7.1
309682b0 8release = 1
798d2771 9
802ea3af
MT
10groups = Development/Tools
11url = http://www.gnu.org/software/bison/
12license = GPLv2+
13summary = GNU Bison is a parser generator.
24831176 14
802ea3af 15description
798d2771
MT
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.
802ea3af
MT
18end
19
20source_dl = http://ftp.gnu.org/gnu/bison/
21
22build
23 requires
f9805fbe 24 m4 >= 1.4.16
a702a8ad 25 perl
802ea3af
MT
26 end
27
28 configure_cmds
29 echo '#define YYENABLE_NLS 1' >> lib/config.h
30 end
31
531618b7
MT
32 build_cmds
33 cd lib
34 gcc -shared -Wl,-soname,liby.so.%{version} \
35 -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
36 end
37
802ea3af
MT
38 test
39 make check
40 end
41
42 install_cmds
531618b7
MT
43 mkdir -pv %{BUILDROOT}%{libdir}
44 cd lib
45 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
46 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.2
47 ln -vsf liby.so.2 %{BUILDROOT}%{libdir}/liby.so
802ea3af
MT
48 end
49end
50
51packages
52 package %{name}
53 requires += m4
54 end
1f9bc2f0
MT
55
56 package %{name}-debuginfo
57 template DEBUGINFO
58 end
802ea3af 59end