summaryrefslogtreecommitdiff
path: root/emulators/rpcemu/Makefile
blob: a5e1173d86e6d1628ef0d5d1698c27f4897c62ed (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
# $NetBSD: Makefile,v 1.10 2021/11/15 22:54:11 wiz Exp $

DISTNAME=	rpcemu-0.9.3
PKGREVISION=	8
CATEGORIES=	emulators
MASTER_SITES=	http://www.marutan.net/rpcemu/cgi/download.php?sFName=${PKGVERSION_NOREV}/

MAINTAINER=	js@pkgsrc.org
HOMEPAGE=	https://www.marutan.net/rpcemu/
COMMENT=	Emulator of classic Acorn computer systems
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c c++
USE_TOOLS+=	patch
TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../x11/qt5-qttools

INSTALLATION_DIRS+=	bin

CFLAGS.NetBSD+=	-Dfopen64=fopen
CFLAGS.NetBSD+=	-Dftello64=ftello
CFLAGS.NetBSD+=	-Dfseeko64=fseeko
CFLAGS.NetBSD+=	-Doff64_t=off_t

post-patch:
	${RUN} cd ${WRKSRC}/src && \
		${PATCH} -p1 <${FILESDIR}/rpcemu-0.9.3-mac-patch-v1.patch
	${RUN} ${MKDIR} ${WRKSRC}/src/macosx
	${RUN} cp ${FILESDIR}/Info.plist ${WRKSRC}/src/macosx/Info.plist

do-configure:
	cd ${WRKSRC} && ${QTDIR}/bin/qmake src/qt5/rpcemu.pro

do-install:
	${INSTALL} -m 0755 ${WRKSRC}/rpcemu-interpreter \
		${DESTDIR}${PREFIX}/bin/rpcemu-interpreter

.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"