SUMMARY="Deprecated custom widget library"
DESCRIPTION="Santa's Gift Bag has some useful custom widgets \
(color picker, column list view, scroll view etc.) DO NOT use for new \
applications! Use libwalter or Haiku's experimental widgets (libshared). \
This package only exists for applications that have not yet been migrated."
HOMEPAGE="https://github.com/HaikuArchives/SantasGiftBag"
COPYRIGHT="1997-2000 Brian Tietz"
LICENSE="libsanta"
SOURCE_URI="https://github.com/HaikuArchives/SantasGiftBag/archive/41e3b43058acb99959582187d31495cfbb8435f3.tar.gz"
CHECKSUM_SHA256="1c5ff2b0b3e2e81bbd99b226313ebf74f29fc969046bf1cf1f929bbfcb9ca763"
SOURCE_DIR="SantasGiftBag-41e3b43058acb99959582187d31495cfbb8435f3"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	libsanta$secondaryArchSuffix = $portVersion
	lib:libsanta$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libstdc++$secondaryArchSuffix
	lib:libgcc_s$secondaryArchSuffix
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

PROVIDES_devel="
	libsanta${secondaryArchSuffix}_devel = $portVersion
	devel:libsanta$secondaryArchSuffix = $portVersion
	"
REQUIRES_devel="
	libsanta$secondaryArchSuffix == $portVersion base
	"

BUILD()
{
	make OBJ_DIR=objects $jobArgs
}

INSTALL()
{
	mkdir -p $developDocDir/ $includeDir $libDir

	cp -R docs/* $developDocDir/

	cp objects/libsanta.so $libDir/libsanta.so.3.0.1
	ln -s $libDir/libsanta.so.3.0.1 $libDir/libsanta.so.3
	ln -s $libDir/libsanta.so.3.0.1 $libDir/libsanta.so

	cp -R include/. $includeDir/
	
	packageEntries devel \
		$developDir
}
