Files
haikuports/dev-java/jamvm/jamvm-2.0.0.recipe
Oliver Tappe 52b344b97b Drop references to $haikuVersion.
* Referring the current haiku version explicitly is not needed, since
  the RequiresUpdater takes care of setting the version of Haiku used
  for building a package.
2014-12-14 23:08:52 +01:00

65 lines
1.5 KiB
Plaintext

SUMMARY="JamVM"
DESCRIPTION="
JamVM is a new Java Virtual Machine which conforms to the JVM specification \
version 2 (blue book). In comparison to most other VM's (free and commercial) \
it is extremely small.
"
HOMEPAGE="http://jamvm.sourceforge.net/"
SRC_URI="http://sourceforge.net/projects/jamvm/files/jamvm/JamVM%20$portVersion/jamvm-$portVersion.tar.gz"
CHECKSUM_SHA256="76428e96df0ae9dd964c7a7c74c1e9a837e2f312c39e9a357fa8178f7eff80da"
REVISION="1"
DEPEND=""
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2010 Robert Lougher"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
jamvm$secondaryArchSuffix = $portVersion
cmd:jamvm$secondaryArchSuffix = $portVersion
lib:libjvm$secondaryArchSuffix
devel:libjvm$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix >= 1.2.8
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:aclocal
cmd:libtool
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:find
"
PATCHES="jamvm-$portVersion.patchset"
BUILD()
{
mkdir -p m4
autoreconf -fi
runConfigure ./configure \
--with-classpath-install-dir=$prefix
make
}
INSTALL()
{
make install
prepareInstalledDevelLib libjvm
}