DESCRIPTION="Libnsgif is a decoding library for GIF image file format"
SUMMARY="A decoding library for GIF images" 
HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/" 
COPYRIGHT="2006 Richard Wilson, 2008 - 2013 Sean Fox"
LICENSE="MIT"
SOURCE_URI="http://download.netsurf-browser.org/libs/releases/libnsgif-$portVersion-src.tar.gz"
CHECKSUM_SHA256="d450ea0a9da234486e997248b30a86524f75f1021ca67017b5597423cf6c0a15"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="libnsgif-$portVersion.patchset"

PROVIDES="
	libnsgif = $portVersion
	"
REQUIRES="
	haiku
	"	
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	netsurf_buildsystem
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
}

INSTALL()
{
	make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
		INCLUDEDIR=$relativeIncludeDir install

	prepareInstalledDevelLib libnsgif
	fixPkgconfig
	
	# devel package
	packageEntries devel \
		$developDir
}

# ----- devel package -------------------------------------------------------

PROVIDES_devel="
	libnsgif_devel = $portVersion
	devel:libnsgif = $portVersion
	"
REQUIRES_devel="
	libnsgif$secondaryArchSuffix == $portVersion base
	"
