summaryrefslogtreecommitdiff
path: root/emulators/raine/Makefile
blob: 1f9c18d53597755e6d3e63ea2f8676a49ffe9233 (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
# $NetBSD: Makefile,v 1.10 2005/06/01 18:02:48 jlam Exp $
#

DISTNAME=	raines-0.40.2
PKGNAME=	${DISTNAME:S/raines/raine/}
PKGREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	http://www.rainemu.com/html/archive/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.rainemu.com/
COMMENT=	680x0 Arcade Emulator

BUILD_DEPENDS+=	nasm-[0-9]*:../../devel/nasm

WRKSRC=		${WRKDIR}/raine
USE_TOOLS+=	gmake
MAKEFILE=	makefile
MAKE_ENV+=	OSTYPE=linux
USE_PERL5=	run
REPLACE_PERL=	makedep
PTHREAD_OPTS+=	require

# XXX Really?
ONLY_FOR_PLATFORM=  *-*-i386

post-build:
	@(							\
	${ECHO} "#!${SH}";					\
	${ECHO} "cd ${PREFIX}/share/raine && ./raine $$@"	\
	) > ${WRKSRC}/raine.sh

pre-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/raine.sh ${PREFIX}/bin/raine

.include "../../devel/allegro/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"