summaryrefslogtreecommitdiff
path: root/emulators/mupen64plus-qt/Makefile
blob: 52dcfeb0f32e1d52524ad1adeffda61f82a0ec6d (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
PORTNAME=	mupen64plus-qt
DISTVERSION=	1.14
PORTREVISION=	1
CATEGORIES=	emulators

MAINTAINER=	maintainer@hasting.email
COMMENT=	Basic launcher for Mupen64Plus

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libquazip1-qt5.so:archivers/quazip
RUN_DEPENDS=	${LOCALBASE}/lib/libmupen64plus.so.2:emulators/mupen64plus-core \
		${LOCALBASE}/lib/mupen64plus/mupen64plus-audio-sdl.so:emulators/mupen64plus-audio-sdl \
		${LOCALBASE}/lib/mupen64plus/mupen64plus-input-sdl.so:emulators/mupen64plus-input-sdl \
		${LOCALBASE}/lib/mupen64plus/mupen64plus-rsp-hle.so:emulators/mupen64plus-rsp-hle \
		${LOCALBASE}/lib/mupen64plus/mupen64plus-video-rice.so:emulators/mupen64plus-video-rice \
		mupen64plus:emulators/mupen64plus-ui-console

USES=		gl pkgconfig qmake qt:5
USE_GL=		gl
USE_QT=		core gui network sql widgets xml \
		buildtools_build \
		sql-sqlite3_run

USE_GITHUB=	yes
GH_ACCOUNT=	dh4

PORTDOCS=	README.md

PLIST_FILES=	bin/mupen64plus-qt \
		man/man6/mupen64plus-qt.6.gz \
		share/applications/mupen64plus-qt.desktop \
		share/pixmaps/mupen64plus-qt.png

OPTIONS_DEFINE=		DOCS

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/resources/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/resources/images/mupen64plus.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
	${INSTALL_MAN} ${WRKSRC}/resources/${PORTNAME}.6 ${STAGEDIR}${MANPREFIX}/man/man6

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>