# $Id: Portfile,v 1.4 2006/05/16 06:36:27 mww Exp $

PortSystem 1.0

name			calcurse
version			1.4
categories		sysutils
platforms		darwin
maintainers		mww@opendarwin.org
description		text-based personal organizer
long_description	Calcurse is a text-based personal organizer which helps \
			keep track of events and everyday tasks.

homepage		http://culot.org/calcurse/
master_sites	http://www.opendarwin.org/~mww/files/ \
				ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/arved/ \
				freebsd
checksums		sha1 af7cdc67e860b9ab520c53ddad182e7751e30c01

depends_lib		port:ncurses port:gettext

configure.args	--mandir=${prefix}/share/man
configure.env	CFLAGS=-I${prefix}/include LDFLAGS="-L${prefix}/lib -lintl"

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS \
		README TODO ${destroot}${prefix}/share/doc/${name}
}

platform darwin 8 {
	configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0
}

