SUMMARY="A program to create ASCII art"
DESCRIPTION="FIGlet is a program for making large letter ASCII banners \
out of ordinary text. It can generate characters in many different styles \
and it can kern and 'smush' the letters these letters together in \
various ways."
HOMEPAGE="http://www.figlet.org/"
COPYRIGHT="1991, 1993, 1994 Glenn Chappell and Ian Chai
	1996, 1997, 1998, 1999, 2000, 2001 John Cowan
	2002 Christiaan Keet"
LICENSE="AFL v2.1"
REVISION="2"
SOURCE_URI="http://ftp.nsysu.edu.tw/FreeBSD/ports/local-distfiles/obrien/figlet222.tar.gz"
CHECKSUM_SHA256="21f8f9e9b2190fbc0f801fb4704355e5d73d36c55670272cd08cad3408d1f5fe"
SOURCE_DIR="figlet222"

ARCHITECTURES="all"

PROVIDES="
	figlet = $portVersion
	cmd:figlet = $portVersion
	cmd:chkfont = $portVersion
	cmd:figlist = $portVersion
	cmd:showfigfonts = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

fontFolder=$dataDir/figlet/fonts

BUILD()
{
	mkdir -p $binDir $manDir/man6 $fontFolder
	make DESTDIR=$binDir MANDIR=$manDir/man6 DEFAULTFONTDIR=$fontFolder
}

INSTALL()
{
	make install DESTDIR=$binDir MANDIR=$manDir/man6 DEFAULTFONTDIR=$fontFolder
	chmod +x $binDir/figlist $binDir/showfigfonts
}

