SUMMARY="A picture browser based on the translators"
DESCRIPTION="
Butterfly is a picture browser based on the translators for displaying
bitmap images. It was inspired by Sea, a DOS picture browser.
Its aim is to allow easy and fast browsing of an important number of pictures.
"
HOMEPAGE="http://oxben.free.fr/butterfly/Butterfly.html"
SOURCE_URI="git://github.com/HaikuArchives/Butterfly#bbd853ecae91e7c1fd3e5e4339f872cdf379b60e"
COPYRIGHT="2006 Thomas Thery"
LICENSE="MIT"
REVISION="1"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	butterfly$secondaryArchSuffix = $portVersion
	app:Butterfly = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	cd source
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp source/objects/Butterfly $appsDir

	addAppDeskbarSymlink $appsDir/Butterfly
}
