Files
haikuports/haiku-apps/xaos/xaos-3.4.recipe
fbrosson b293a9ae2b XaoS: fix REQUIRES, add support for x86_gcc2 secondary arch.
* lib:libgsl is neither available nor needed on x86_gcc2.
* XaoS 3.4 fails to build on x86{,_64}, even without libgsl.
2018-06-22 09:59:59 +00:00

88 lines
2.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Real-time interactive fractal zoomer"
DESCRIPTION="
XaoS is an interactive fractal zoomer. It allows the user to continuously \
zoom in or out of a fractal in a fluid, continuous motion. This capability \
makes XaoS great for exploring fractals, and its fun!
If you dont know what fractals are, dont worry. \
XaoS includes many animated tutorials that make learning about fractals fun \
and easy. These tutorials are also a great introduction to all of XaoSs \
features.
XaoS can display many different fractal types, including Mandelbrot, \
Barnsley, Newton, Phoenix, and many more. Fractals can be rendered using \
various coloring methods and planes for an almost endless variety of images. \
XaoS also supports switching between Julia and Mandelbrot sets for each formula.
XaoS currently runs on Windows, Mac OS X, Linux, and other Unix-like systems. \
Older versions are available for DOS, BeoS, and more. Download a copy for your \
operating system today.
XaoS is free software, licensed under the GPL. It was originally written by \
Thomas Marsh and Jan Hubicka, and it is currently maintained by Zoltan Kovacs \
and J.B. Langston. Countless other improvements have been contributed by \
volunteers around the world. You can help improve XaoS, too."
HOMEPAGE="http://xaos.sourceforge.net/"
LICENSE="GNU GPL v2"
COPYRIGHT="2008 GNU XaoS Contributors"
REVISION="3"
SOURCE_URI="https://github.com/xaos-project/XaoS/archive/release-$portVersion.zip"
CHECKSUM_SHA256="7b2a802c638ed880a86db4b2feccc7fc949599916329b799807758dca61d6eb8"
SOURCE_DIR="XaoS-release-$portVersion"
PATCHES="xaos-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
xaos$secondaryArchSuffix = $portVersion
app:XaoS = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
REQUIRES+="
lib:libgsl$secondaryArchSuffix
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
BUILD_REQUIRES+="
devel:libgsl$secondaryArchSuffix
"
fi
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:nasm
"
BUILD()
{
libtoolize --force --copy --install
ldflags="-lintl -liconv"
configureFlags=
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
ldflags="$ldflags -lstdc++"
configureFlags=--disable-cffe
fi
LDFLAGS=$ldflags sh configure $configureFlags
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
cp bin/xaos $appsDir/XaoS
addAppDeskbarSymlink $appsDir/XaoS
}