]>
Commit | Line | Data |
---|---|---|
798d2771 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = bison | |
e7de1c0b | 28 | PKG_VER = 2.4.2 |
798d2771 MT |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = Development/Tools | |
33 | PKG_URL = http://www.gnu.org/software/bison/ | |
34 | PKG_LICENSE = GPLv2+ | |
35 | PKG_SUMMARY = GNU Bison is a parser generator. | |
36 | ||
37 | define PKG_DESCRIPTION | |
38 | Bison is a general-purpose parser generator that converts an annotated \ | |
39 | context-free grammar into an LALR(1) or GLR parser for that grammar. | |
40 | endef | |
41 | ||
42 | PKG_TARBALL = $(THISAPP).tar.bz2 | |
43 | ||
2cf5d4a9 | 44 | define STAGE_CONFIGURE_CMDS |
03778dc1 | 45 | cd $(DIR_APP) && echo '#define YYENABLE_NLS 1' >> lib/config.h |
798d2771 MT |
46 | endef |
47 | ||
44c71dea SS |
48 | define STAGE_TEST |
49 | cd $(DIR_APP) && make check | |
50 | endef | |
6754adb5 | 51 | |
2cf5d4a9 | 52 | define STAGE_INSTALL_CMDS |
798d2771 MT |
53 | -mkdir -pv $(BUILDROOT)/usr/lib |
54 | cd $(DIR_APP)/lib && gcc -shared -Wl,-soname,liby.so.$(PKG_VER) \ | |
55 | -o liby.so.$(PKG_VER) $(CFLAGS) main.o yyerror.o | |
56 | cd $(DIR_APP)/lib && install -v liby.so.$(PKG_VER) \ | |
57 | $(BUILDROOT)/usr/lib/liby.so.$(PKG_VER) | |
58 | ln -vsf liby.so.$(PKG_VER) $(BUILDROOT)/usr/lib/liby.so.2 | |
59 | ln -vsf liby.so.2 $(BUILDROOT)/usr/lib/liby.so | |
60 | endef |