# $Id: Portfile,v 1.1 2005/10/26 19:40:33 mww Exp $

PortSystem 1.0

name			icoconvert
version			2.0
categories		graphics
platforms		darwin
maintainers		mww@opendarwin.org
description		convert Windows .ico icon files into .xpm and .png files
long_description	A small utility to convert Windows .ico icon files into \
			.xpm and .png files. This can be done in batches, and properly \
			supports transparencies as well as non 32x32 icon sizes. It also \
			supports 24 bit icons.

homepage		http://www.mox.net/
master_sites	http://www.mox.net/downloads/ \
				http://www.xunix.org/~flz/distfiles/ \
				freebsd
checksums		md5 56fe4474c8eaae2c8b886331cda41aca

depends_lib		port:gd2

extract.post_args	"| tar -xf - --exclude 'icoconvert' --exclude 'icoconvert.static'"

use_configure	no

build.target
build.args		LIBDIR="-L${prefix}/lib" FLAGS="-I${prefix}/include"

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/bin \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 755 ${worksrcpath}/icoconvert ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
}
