SUMMARY="A library that provides functions to read, create, and modify mp4 files"
DESCRIPTION="
A library that provides functions to read, create, and modify mp4 files.
"
HOMEPAGE="https://code.google.com/p/mp4v2/" 
LICENSE="MPL v1.1"
COPYRIGHT="Kona Blend, Copyright (C) 2008."
SRC_URI="https://mp4v2.googlecode.com/files/mp4v2-2.0.0.tar.bz2"
CHECKSUM_MD5="c91f06711225b34b4c192c9114887b14"
REVISION="1"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"

PATCHES="libmp4v2-${portVersion}.patch"

PROVIDES="
	libmp4v2${secondaryArchSuffix} = $portVersion
	lib:libmp4v2
	cmd:dvdcss_config
	"

REQUIRES="
	haiku${secondaryArchSuffix} >= $haikuVersion
	"

BUILD_REQUIRES="
	"

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

SOURCE_DIR="mp4v2-${portVersion}"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	automake
	runConfigure ./configure
	make
}

INSTALL()
{
	make install

	# prepare develop/lib
	prepareInstalledDevelLibs libmp4v2
	fixPkgconfig

	packageEntries devel \
		$developDir
} 

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

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