summaryrefslogtreecommitdiff
path: root/emulators/dolphin-emu/Makefile
blob: bc1041b8e8b75891fa44d87721924240c288506d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile,v 1.2 2019/01/02 00:30:01 nia Exp $

DISTNAME=	dolphin-emu-5.0
PKGREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=dolphin-emu/}
GITHUB_PROJECT=	dolphin
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://dolphin-emu.org/
COMMENT=	Nintendo GameCube and Wii emulator
LICENSE=	gnu-gpl-v2

EXTRACT_USING=	bsdtar
USE_TOOLS+=	pkg-config
USE_CMAKE=	yes
USE_LANGUAGES=	c c++

# Since SFML is not available in pkgsrc, make sure the included version
# is always used.
CMAKE_ARGS+=	-DCMAKE_DISABLE_FIND_PACKAGE_SFML=ON

CMAKE_ARGS+=	-DPKGMANDIR=${PKGMANDIR}

.include "../../mk/bsd.prefs.mk"

ONLY_FOR_PLATFORM=	${LITTLEENDIANPLATFORMS}
BROKEN_ON_PLATFORM+=	SunOS-*-*

.if ${MACHINE_ARCH} != "x86_64" && ${MACHINE_ARCH} != "aarch64"
CMAKE_ARGS+=		-DENABLE_GENERIC=1
.endif

BUILDLINK_TRANSFORM+=	rm:-ldl

NOT_PAX_MPROTECT_SAFE+=	bin/dolphin-emu
NOT_PAX_MPROTECT_SAFE+=	bin/dolphin-emu-nogui

.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.include "../../net/miniupnpc/buildlink3.mk"
.include "../../security/mbedtls/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.if ${OPSYS} != "Darwin"
.include "../../archivers/lzo/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.endif
.include "../../x11/wxGTK30/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"