# Created by: Kai Wang <kaiwang27@gmail.com>
# $FreeBSD: games/frobtads/Makefile 327730 2013-09-20 17:36:33Z bapt $

PORTNAME=	frobtads
PORTVERSION=	1.2.2
PORTREVISION=	1
CATEGORIES=	games lang
MASTER_SITES=	http://www.tads.org/${PORTNAME}/ \
		http://www.ifarchive.org/if-archive/programming/tads3/source/

MAINTAINER=	kaiwang27@gmail.com
COMMENT=	TADS interpreter and the compilers for both TADS 2 and 3

LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl \
		execinfo:${PORTSDIR}/devel/libexecinfo

CONFLICTS=	tads-2.*

USE_GMAKE=	yes
USE_AUTOTOOLS=	automake autoconf
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LIBS="-lcompat"

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
pre-configure:
	(cd ${WRKSRC}; ${SH} bootstrap)

.include <bsd.port.mk>
