# 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.4 2009/01/06 21:54:57 acm Exp $
#

PORTNAME=	mupen64plus
PORTVERSION?=	1.4.1
PORTREVISION?=	0
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>
