# $Id: Portfile,v 1.3 2004/08/14 11:53:42 mww Exp $

PortSystem 1.0

name		mdate
version		1.5.1
categories	sysutils
platforms	darwin freebsd
maintainers	mww@opendarwin.org
description	utility that converts Gregorian dates to Mayan Long Count dates
long_description	${description}

homepage	http://mdate.sourceforge.net/
master_sites	sourceforge
checksums		md5 a759efa3838a990f4e5332d45fa89cab

use_configure	no

variant darwin	{
	build.target	target=osx
}

variant freebsd	{
	build.target	target=freebsd
}

destroot	{
	xinstall -s -m 755 ${worksrcpath}/mdate ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/mdate.1 \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} API AUTHORS BUGS ChangeLog NEWS \
		README Translators mdate-1.html mdate-2.html mdate-3.html \
		mdate-4.html mdate.html ${destroot}${prefix}/share/doc/${name}
}
