# Ports collection makefile for:	simulavr
# Date created:				3 Sep 2002
# Whom:					Joerg Wunsch <joerg@FreeBSD.org>
#
# $FreeBSD: ports/devel/simulavr/Makefile,v 1.16 2005/08/03 19:47:02 joerg Exp $
#

PORTNAME=	simulavr
PORTVERSION=	0.1.2
PORTREVISION=	6
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}
# special name only this time, don't let this go into ${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}.2

MAINTAINER=	joerg@FreeBSD.org
COMMENT=	A simulator for AVR microcontrollers

BUILD_DEPENDS=	${LOCALBASE}/avr/include/avr/io.h:${PORTSDIR}/devel/avr-libc \
		avr-ld:${PORTSDIR}/devel/avr-binutils \
		doxygen:${PORTSDIR}/devel/doxygen \
		latex:${PORTSDIR}/print/teTeX

#USE_BZIP2=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

CONFIGURE_TARGET=
CONFIGURE_ARGS=	--disable-versioned-doc

MAN1=		simulavr.1 simulavr-disp.1
INFO=		simulavr

post-install:
		@${ECHO} "Removing obsolete files after installation:"
		${RM} -f ${PREFIX}/share/doc/simulavr/html/simulavr_ovr.html

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		"Does not compile"
.endif

.include <bsd.port.post.mk>
