# New ports collection makefile for:	sfront
# Date created:				Nov 4, 2001
# Whom:					ijliao
#
# $FreeBSD: ports/audio/sfront/Makefile,v 1.30 2009/03/27 09:53:20 ehaupt Exp $
#

PORTNAME=	sfront
PORTVERSION=	0.91
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	CRITICAL

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	A translator that converts MP4-SA files into efficient C programs

PORTDOCS=	book sfman

WRKSRC=		${WRKDIR}/${PORTNAME}/src

USE_BISON=	build
MAKE_JOBS_SAFE=	yes

MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"

ALL_TARGET=	${PORTNAME}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sfront ${PREFIX}/bin
	${CP} -R ${WRKDIR}/sfront/examples/ ${EXAMPLESDIR}

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for d in ${PORTDOCS}
	${CP} -R ${WRKDIR}/sfront/${d} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>
