SUMMARY="Library for IPTC metadata manipulation"
DESCRIPTION="
libiptcdata is a library, written in C, for manipulating the International \
Press Telecommunications Council (IPTC) metadata stored within multimedia \
files such as images. This metadata can include captions and keywords, often \
used by popular photo management applications. The library provides routines \
for parsing, viewing, modifying, and saving this metadata.
"
HOMEPAGE="http://libiptcdata.sourceforge.net/"
COPYRIGHT="
	2005 David Moore
	"
LICENSE="GNU LGPL v2.1"
SRC_URI="http://prdownloads.sourceforge.net/libiptcdata/libiptcdata-1.0.4.tar.gz?download"
CHECKSUM_SHA256="79f63b8ce71ee45cefd34efbb66e39a22101443f4060809b8fc29c5eebdcee0e"
SRC_FILENAME="libiptcdata-1.0.4.tar.gz"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	libiptcdata = $portVersion
	cmd:iptc = $portVersion
	lib:libiptcdata = 0.3.3
	"
REQUIRES="
	haiku >= $haikuVersion
	lib:libiconv
	lib:libintl
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libiconv
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:libtool
	cmd:autoconf 
	cmd:automake
	"
PATCHES="libiptcdata-1.0.4.patch"

BUILD()
{
	libtoolize --force --copy --install
	aclocal -I m4
	autoconf
	automake
	runConfigure ./configure --disable-gtk-doc --enable-static --enable-shared
	make $jobArgs
}

INSTALL()
{
	make install

	prepareInstalledDevelLibs libiptcdata
	fixPkgconfig

	# devel package
	packageEntries devel \
		$developDir
}

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

PROVIDES_devel="
	libiptcdata_devel = $portVersion
	devel:libiptcdata = 0.3.3
	"
REQUIRES_devel="
	libiptcdata == $portVersion base
	"
