Update for hpkg building

This commit is contained in:
Ingo Weinhold
2011-07-21 23:27:21 +00:00
parent a129add7ef
commit 322ca78eb6

View File

@@ -1,35 +1,44 @@
DESCRIPTION="bison - A yacc-compatible parser generator"
SUMMARY="A yacc-compatible parser generator"
DESCRIPTION="Bison is a general-purpose parser generator that converts an annotated
context-free grammar into an LALR(1) or GLR parser for that grammar. Once you
are proficient with Bison, you can use it to develop a wide range of language
parsers, from those used in simple desk calculators to complex programming
languages.
Bison is upward compatible with Yacc: all properly-written Yacc grammars ought
to work with Bison with no change. Anyone familiar with Yacc should be able to
use Bison with little trouble. You need to be fluent in C or C++ programming in
order to use Bison."
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.4.3.tar.gz"
CHECKSUM_MD5="ea45c778b36bdc7a720096819e292a73"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
PROVIDES="cmd:bison = $portVersion compat >= 2.4
cmd:yacc
lib:liby.a = $portVersion compat >= 2.4"
DEPEND="haiku >= $haikuVersion
sh"
BUILD_DEPEND="haiku-devel >= $haikuVersion
gcc
ld"
SOURCE_DIR="$portVersionedName"
BUILD {
cd bison-2.4.3
prefix=$(finddir B_PACKAGE_LINKS_DIRECTORY)/bison-2.4.3
# bison looks for m4 in an absolute path, but uses that only within
# its own testsuite, so we let it be ...
./configure --prefix=$prefix \
--datarootdir=$prefix/data \
--sbindir=$prefix/bin \
--includedir=$prefix/develop/headers \
--sysconfdir=$prefix/settings \
--docdir=$prefix/documentation/packages/bison \
--infodir=$prefix/documentation/info \
--mandir=$prefix/documentation/man \
./configure $configureDirArgs \
--disable-rpath --with-gnu-ld
make
make -j$jobs
}
INSTALL {
cd bison-2.4.3
make install
}
TEST {
cd bison-2.4.3
make check
}