PORTNAME=	mupen64plus
PORTVERSION?=	2.5
PORTREVISION?=	2
CATEGORIES=	emulators
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/releases/download/${PORTVERSION}/ \
		LOCAL/acm/${PORTNAME} \
		LOCAL/acm/${PORTNAME}/:plugin
PKGNAMESUFFIX?=	-core
DIST_SUBDIR=	${PORTNAME}

MAINTAINER?=	acm@FreeBSD.org
COMMENT?=	Fork of Mupen64 Nintendo 64 emulator
WWW=		https://www.mupen64plus.org/

USES+=		gl gmake pkgconfig sdl
USE_GL?=	yes
USE_SDL?=	sdl2
USE_LDCONFIG?=	yes
ONLY_FOR_ARCHS=	i386 amd64
LDFLAGS_i386=	-Wl,-znotext

OPTFLAGS=	#

MAKE_ENV+=	OPTFLAGS="${OPTFLAGS}"

OPTIONS_DEFINE=	DOCS

.include "${.CURDIR}/../mupen64plus-core/Makefile.common"
.include <bsd.port.mk>
