# $Id: Portfile 60538 2009-11-15 07:09:31Z ryandesign@macports.org $

PortSystem 1.0

name			png2ico
version			2002-12-08
categories		graphics
platforms		darwin
maintainers		nomaintainer
license			GPLv2
description		Converts PNG files to Windows icon resource files.
long_description	${description}

homepage		http://www.winterdrache.de/freeware/png2ico/
master_sites	http://www.winterdrache.de/freeware/png2ico/data/
distname		${name}-src-${version}
checksums		sha1 955004bee9a20f12b225aa01895762cbbafaeb28

depends_lib		port:libpng port:zlib

worksrcdir		${name}

patchfiles		patch-Makefile

use_configure	no

build.args		CXX=${configure.cxx} \
				CPPFLAGS=${configure.cppflags} \
				LDFLAGS=${configure.ldflags}

destroot {
	xinstall -m 755 ${worksrcpath}/png2ico ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} LICENSE README README.unix README.win \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/doc/png2ico.1 \
		${destroot}${prefix}/share/man/man1/
}
