# Template file for 'potrace'
pkgname=potrace
version=1.11
revision=1
build_style=gnu-configure
makedepends="zlib-devel"
configure_args="--with-libpotrace"
short_desc="Transforming bitmaps into vector graphics"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://potrace.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=5aa5eb496e00206d68b67edf8f6067999a45d1b69f848c18af5cbdf8e4a17ead
long_desc="
 Potrace(TM) is a tool for tracing a bitmap, which means, transforming a
 bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM,
 PPM, or BMP format), and the default output is an encapsulated PostScript
 file (EPS). A typical use is to create EPS files from scanned data, such
 as company or university logos, handwritten notes, etc. The resulting image
 is not "jaggy" like a bitmap, but smooth. It can then be rendered at any
 resolution."

libpotrace_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

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

potrace_package() {
	pkg_install() {
		vmove all
	}
}