SUMMARY="A simple BeOS application/file/folder launcher"
DESCRIPTION="
A simple BeOS application/file/folder launcher.
"
HOMEPAGE="https://sourceforge.net/projects/launchpad"
SOURCE_URI="http://launchpad.cvs.sourceforge.net/viewvc/launchpad/buta/LaunchPad/?view=tar&pathrev=release-1-3-0"
SOURCE_FILENAME="launchpad-1.3.tar.gz"
CHECKSUM_MD5="9001e130b7ceb90aaef9791b8fac1afb"

REVISION="3"
LICENSE="BSD (3-clause)"
COPYRIGHT="1997-2000 Hiromasa Kato"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	launchpad = $portVersion
	app:LaunchPad = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libprefs
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	lib:libprefs
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:autoconf
	cmd:libtool
	cmd:aclocal
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

SOURCE_DIR="LaunchPad"

PATCHES="
	configure.patch
	configure.in.patch
	Makefile.in.patch
	"

BUILD()
{
	libtoolize --force --copy --install
	./configure --with-libprefs=$portPackageLinksDir/lib~libprefs/lib
	make
}

INSTALL()
{
	mkdir -p $appsDir
	cp src/LaunchPad $appsDir
	addAppDeskbarSymlink $appsDir/LaunchPad

}
