# Template file for 'synfig'
pkgname=synfig
version=1.2.0
revision=2
build_style=gnu-configure
hostmakedepends="boost-build ImageMagick pkg-config"
makedepends="ETL gettext-devel libxml++-devel mlt-devel
 libmng-devel boost-build boost-devel libopenexr-devel ffmpeg-devel"
depends="ImageMagick"
short_desc="Open Source 2D vector and timeline-based animation software"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-3"
homepage="http://www.synfig.org/"
distfiles="${SOURCEFORGE_SITE}/synfig/releases/${version}/source/synfig-${version}.tar.gz"
checksum=611ea9f156188c9ecbb99a21116b5330e5070c51a0ffa721c7791c46ec231dbf
nocross=yes

CXXFLAGS="-std=c++11"

synfig-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/*.so
	}
}
