aboutsummaryrefslogtreecommitdiff
path: root/emulators/fuse-roms/Makefile
blob: f566f679b1fd0cb4134af30ba46f7871c19119d5 (plain) (blame)
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
# Created by: Vladimir Kondratiev <wulf@mail.mipt.ru>

PORTNAME=	fuse-roms
PORTVERSION=	0.9.0
PORTREVISION=	3
CATEGORIES=	emulators
MASTER_SITES=	ftp://ftp.pbone.net/mirror/rpmfusion.org/${FC_SUBDIR}/:1 \
		http://zxspectrum.it.omegahg.com/rom/:2
DISTFILES=	fuse-emulator-roms-${PORTVERSION}-${FCREV}.fc${FCVER}.noarch.rpm:1 \
		Opus-22.rom:2
EXTRACT_ONLY=	fuse-emulator-roms-${PORTVERSION}-${FCREV}.fc${FCVER}.noarch.rpm

MAINTAINER=	rene@FreeBSD.org
COMMENT=	Spectrum ROM files, for use with the Fuse emulator

LICENSE=	NONE

FCREV=		14
FCVER=		33
FC_SUBDIR=	nonfree/fedora/releases/${FCVER}/Everything/x86_64/os/Packages/f
NO_ARCH=	yes
NO_BUILD=	yes
DATADIR=	${PREFIX}/share/fuse

ROMS=		128p-0.rom 128p-1.rom 256s-0.rom 256s-1.rom 256s-2.rom \
		256s-3.rom gluck.rom if1-1.rom if1-2.rom opus.rom trdos.rom
PLIST_FILES=	${ROMS:S|^|${DATADIR_REL}/|}

RESTRICTED=	No explicit permission to redistribute

OPTIONS_DEFINE=	DOCS

DOCS_PLIST_FILES=${DOCSDIR_REL}/rom-distribution.txt

post-extract:
	${CP} ${DISTDIR}/Opus-22.rom ${WRKDIR}/usr/share/fuse/opus.rom

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKDIR}/usr/share/fuse && \
		${INSTALL_DATA} ${ROMS} ${STAGEDIR}${DATADIR})
do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKDIR}/usr/share/doc/fuse-emulator-roms && \
		${INSTALL_DATA} rom-distribution.txt ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>