# ex:ts=8
# Ports collection makefile for:	divxcalc
# Date created:			Mar 21, 2002
# Whom:				ijliao
#
# $FreeBSD: ports/graphics/divxcalc/Makefile,v 1.11 2003/02/20 18:07:58 knu Exp $
#

PORTNAME=	divxcalc
PORTVERSION=	0.4a
CATEGORIES=	graphics
MASTER_SITES=	http://members.ams.chello.nl/r.slooten2/divxcalc/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	DivX Calculator

BUILD_DEPENDS=	${LOCALBASE}/share/automake14/install-sh:${PORTSDIR}/devel/automake14

USE_REINPLACE=	yes
USE_GNOMENG=	yes
USE_GNOME=	gtk12
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

post-patch:
	@${REINPLACE_CMD} -e "s,Bison ,Bison,g" ${WRKSRC}/configure

pre-configure:
.for file in config.guess config.sub install-sh missing mkinstalldirs
	@${LN} -sf ${LOCALBASE}/share/automake14/${file} ${WRKSRC}
.endfor

.include <bsd.port.mk>
