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 it’s fun!

If you don’t know what fractals are, don’t worry. \
XaoS includes many animated tutorials that make learning about fractals fun \
and easy. These tutorials are also a great introduction to all of XaoS’s \
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.sf.net"
SOURCE_URI="https://github.com/xaos-project/XaoS/archive/release-$portVersion.zip"
CHECKSUM_SHA256="00ae75ee6ecfb8493286330d1ccadc91e8e915a5867387a2c08a0ff72d59bb24"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2008 GNU XaoS Contributors"

PROVIDES="
	xaos
	app:XaoS = $portVersion
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:libtoolize
	cmd:make
	cmd:nasm	
	"
BUILD_REQUIRES="
	devel:libiconv$secondaryArchSuffix
	devel:libintl$secondaryArchSuffix
	"

REQUIRES="
	lib:libiconv$secondaryArchSuffix
	lib:libintl$secondaryArchSuffix
	"

SOURCE_DIR="XaoS-release-$portVersion"

PATCHES="xaos-$portVersion.patchset"

BUILD()
{
	libtoolize --force --copy --install
	LDFLAGS="-lintl -liconv" sh configure
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp bin/xaos $appsDir/XaoS
	addAppDeskbarSymlink $appsDir/XaoS
}
