SUMMARY="Freedesktop MIME database specification"
DESCRIPTION="The shared-mime-info package contains the core database \
of common types and the update-mime-database command used to extend it. \
It requires glib2 to be installed for building the update command. \
Additionally, it uses intltool for translations, though this is only a \
dependency for the maintainers."
HOMEPAGE="http://freedesktop.org/wiki/Software/shared-mime-info" 
SOURCE_URI="http://freedesktop.org/~hadess/shared-mime-info-1.3.tar.xz"
CHECKSUM_SHA256="4fd49c8c7ca9ecb10c59845094a18dbb73b69c72b4bad3db5e864f2111cb323a"
SOURCE_DIR="shared-mime-info-1.3"
LICENSE="GNU GPL v2"
COPYRIGHT="2009-2014 Freedesktop.org"
REVISION="2"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	shared_mime_info$secondaryArchSuffix = $portVersion
	cmd:update_mime_database = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	glib2$secondaryArchSuffix >= 2
	lib:libxml2$secondaryArchSuffix
	lib:libintl$secondaryArchSuffix
	"

BUILD_REQUIRES="
	devel:libglib_2.0$secondaryArchSuffix
	devel:libxml2$secondaryArchSuffix
	devel:libintl$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:autoconf
	cmd:pkg_config$secondaryArchSuffix
	cmd:xmllint
	intltool
	cmd:awk
	cmd:make
	cmd:g++$secondaryArchSuffix
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	fixPkgconfig
}
