PortSystem 1.0

name			libhermes
version			1.3.3
revision		1
categories		graphics devel
license			LGPL-2
platforms		darwin
maintainers		nomaintainer
description		Hermes is a pixel conversion library.
long_description	Hermes is a pixel conversion library. Its only purpose \
				is to take a buffer full of pixels and convert it into a \
				target buffer full of pixels. The two can differ both in size \
				and in format. Hermes is primarily intended for fast graphics \
				display and it is optimized for that. Where this goal can be \
				achieved by dismissing minimal graphic errors, Hermes will do \
				so (minimal means almost not noticeable). But that is likely \
				to be very configurable in the near future to allow for user \
				selection of trade-off.

homepage		http://www.clanlib.org/hermes
master_sites	http://www.clanlib.org/download/legacy/
distname		Hermes-${version}
checksums		md5 1b99f623169cf62b70f3de081a633d14
use_bzip2		yes
patchfiles		patch-autogen.sh.diff patch-configure.in.diff

depends_build   port:autoconf port:automake port:libtool

pre-configure	{
	system "cd ${worksrcpath} && ./autogen.sh"
}
configure.args	--with-pic --enable-shared --enable-static

build.type		gnu

destroot.args	includedir=${destroot}${prefix}/include
post-destroot	{
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog FAQ \
		INSTALL INSTALL.BSD INSTALL.unix NEWS README TODO \
		TODO.Blitters TODO.conversion ${destroot}${prefix}/share/doc/${name}
}