# $Id: Portfile,v 1.7 2006/08/06 18:29:52 markd Exp $

PortSystem 1.0

name			ncurses
version			5.5
revision		1
categories		devel
platforms		darwin
maintainers		mww@opendarwin.org
description		emulation of curses in System V Release 4.0
long_description	The Ncurses (new curses) library is a free software \
				emulation of curses in System V Release 4.0, and more. It uses \
				Terminfo format, supports pads and color and multiple \
				highlights and forms characters and function-key mapping, and \
				has all the other SYSV-curses enhancements over BSD Curses.

homepage		http://www.gnu.org/software/ncurses/ncurses.html
master_sites	gnu
checksums		md5 e73c1ac10b4bfc46db43b2ddfd6244ef

# required for terminfo
depends_run		port:ncursesw

configure.args	--with-shared \
				--without-debug  \
				--without-ada \
				--enable-safe-sprintf \
				--mandir=${prefix}/share/delete-me

post-destroot {
	# binaries come with ncursesw
	delete ${destroot}${prefix}/bin
	# terminfo & manpages also do come with ncursesw
	delete ${destroot}${prefix}/share \
		${destroot}${prefix}/lib/terminfo
}

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