]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/bison/bison.nm
cracklib: Update package to be built with the new version of the buildsystem.
[ipfire-3.x.git] / pkgs / core / bison / bison.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = bison
e7de1c0b 28PKG_VER = 2.4.2
798d2771
MT
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Development/Tools
33PKG_URL = http://www.gnu.org/software/bison/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = GNU Bison is a parser generator.
36
37define 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.
40endef
41
42PKG_TARBALL = $(THISAPP).tar.bz2
43
2cf5d4a9 44define STAGE_CONFIGURE_CMDS
03778dc1 45 cd $(DIR_APP) && echo '#define YYENABLE_NLS 1' >> lib/config.h
798d2771
MT
46endef
47
44c71dea
SS
48define STAGE_TEST
49 cd $(DIR_APP) && make check
50endef
6754adb5 51
2cf5d4a9 52define 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
60endef