summaryrefslogtreecommitdiffstats
path: root/emulators/xgs/Makefile
blob: a7ea7bf445be12fd3a0250d759c43e4e8cc9a148 (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
# New ports collection makefile for:	xgs
# Date created:		2nd May, 1997
# Whom:			Joel Sutton <sutton@aardvark.apana.org.au>
#
# $FreeBSD$
#
# This is the stable release of the xgs emulator. Sound support is
# currently broken.

PORTNAME=	xgs
PORTVERSION=	0.50
CATEGORIES=	emulators
MASTER_SITES=	http://www.inwards.com/xgs/ \
		http://www.inwards.com/xgs/2mg/
DISTFILES=	xgs050.tgz ROM01.ZIP
EXTRACT_ONLY=	xgs050.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Apple IIGS emulator stable release

BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip

DIST_SUBDIR=	xgs
RESTRICTED=	"xgs.rom copyright is owned by Apple and cannot be distributed"
NO_PACKAGE=	${RESTRICTED}

# Source building
#
WRKSRC=		${WRKDIR}/${PORTNAME}
USE_XLIB=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-x

# Directories etc...
#
XGS_DIR=	${PREFIX}/share/xgs
XGS_DOC=	${PREFIX}/share/doc/xgs
PORTDOCS=	CHANGES.TXT COMPAT.TXT INSTALL.TXT IWM-DOC.TXT TODO.TXT \
		XGS-FAQ.TXT

post-extract:
	unzip -L -qq ${_DISTDIR}/ROM01.ZIP -d ${WRKSRC}

post-install:
	${INSTALL_DATA} ${WRKSRC}/xgs.rom ${XGS_DIR}
	${INSTALL_DATA} -m 666 /dev/null ${XGS_DIR}/xgs.ram
.if !defined(NOPORTDOCS)
	@${MKDIR} ${XGS_DOC}
.for file in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/docs/${file} ${XGS_DOC}
.endfor
	${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${XGS_DOC}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud