# New ports collection makefile for:	mupen64plus-base
# Date created:		2008-05-16
# Whom:			Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD: ports/emulators/mupen64plus-base/Makefile,v 1.3 2008/07/25 09:38:45 pav Exp $
#

PORTNAME=	mupen64plus
PORTVERSION?=	1.3
PORTREVISION?=	1
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
PKGNAMESUFFIX?=	-base
DIST_SUBDIR=	${PORTNAME}

MAINTAINER?=	acm@FreeBSD.org
COMMENT?=	A fork of Mupen64 Nintendo 64 emulator

USE_ZIP=	yes
USE_GNOME?=	pkgconfig gtk20
USE_GL?=	#
USE_SDL?=	#
USE_GMAKE=	yes
ONLY_FOR_ARCHS=	i386 amd64

MAKE_ENV+=	PTHREAD_LIBS="${PTHREAD_LIBS}"
OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options

FIXFILES?=	r4300/r4300.c r4300/recomp.c memory/dma.c r4300/x86/assemble.c \
		r4300/x86_64/assemble.c main/gui_gtk/main_gtk.c main/vcr.c

OPTIONS?=	NOGUI	"Build without GUI support"	off

.include <bsd.port.pre.mk>

.if defined(WITH_NOGUI)
HAVE_NOGUI=	true
.endif

.include "${MASTERDIR}/Makefile.common"

.include <bsd.port.post.mk>
