# New ports collection makefile for:	ems-flasher
# Date created:        2012-03-22
# Whom:                Nicole Reid <root@cooltrainer.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/comms/ems-flasher/Makefile 300895 2012-07-14 12:56:14Z beat $
#

PORTNAME=	ems-flasher
PORTVERSION=	0.03
CATEGORIES=	comms
MASTER_SITES=	http://lacklustre.net/redmine/attachments/download/10/ \
	http://update.cooltrainer.org/freebsd-ports/comms/ems-flasher/
EXTRACT_SUFX=	.tgz

MAINTAINER=	root@cooltrainer.org
COMMENT=	Utility to flash ROM images to the EMS USB 64mb flash cart

LICENSE=	MIT

USE_GMAKE=	yes
CFLAGS+=	-g -Wall
LDFLAGS+=	-lusb
USE_GCC=	4.6+

PLIST_FILES=	bin/ems-flasher

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800069
IGNORE=	does not compile with the old USB stack
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ems-flasher ${PREFIX}/bin

.include <bsd.port.post.mk>
