PORTNAME=	aamath
PORTVERSION=	0.3
PORTREVISION=	4
CATEGORIES=	math textproc
MASTER_SITES=	http://fuse.superglue.se/${PORTNAME}/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Renders ASCII art from mathematical expressions
WWW=		http://fuse.superglue.se/aamath/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		ncurses readline
WRKSRC=		${WRKDIR}/${PORTNAME}
CFLAGS+=	-I${LOCALBASE}/include
MAKE_ARGS=	LIBS="-lreadline -lncurses"

PLIST_FILES=	bin/aamath man/man1/aamath.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>
