summaryrefslogtreecommitdiff
path: root/emulators/nestopia/Makefile
blob: ea3bea7dd8ac6494a4e91e9e4e9072968bf2804f (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
# $NetBSD: Makefile,v 1.3 2009/07/08 16:38:35 joerg Exp $
#

DISTNAME=	Nestopia140src
PKGNAME=	nestopia-1.40h
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=nestopia/}
EXTRACT_SUFX=	.zip
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} nst140_lnx_release_h.zip

SITES.nst140_lnx_release_h.zip=	http://rbelmont.mameworld.info/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://rbelmont.mameworld.info/?page_id=200
COMMENT=	Portable, very accurate NES emulator with UNIF support

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}
USE_LANGUAGES=	c c++
USE_TOOLS=	gmake pkg-config
EXTRACT_OPTS_ZIP=	-aqo

SUBST_CLASSES+=		oss
SUBST_SED.oss=		-e "s,/dev/dsp,${DEVOSSAUDIO},"
SUBST_FILES.oss=	source/linux/oss.cpp
SUBST_MESSAGE.oss=	Fixing path to OSS device.
SUBST_STAGE.oss=	pre-build

INSTALLATION_DIRS=	bin share/doc/nestopia share/examples/nestopia

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/nst ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README.Linux \
		${DESTDIR}${PREFIX}/share/doc/nestopia
	${INSTALL_DATA} ${WRKSRC}/readme.html \
		${DESTDIR}${PREFIX}/share/doc/nestopia
	${INSTALL_DATA} ${WRKSRC}/NstDatabase.xml \
		${DESTDIR}${PREFIX}/share/examples/nestopia
	${INSTALL_DATA} ${WRKSRC}/nstcontrols \
		${DESTDIR}${PREFIX}/share/examples/nestopia

.include "../../audio/alsa-lib/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"