summaryrefslogtreecommitdiff
path: root/emulators/mame/Makefile
blob: 5d30714a642a9c80a2919e535b69f7087b06eb7c (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
# $NetBSD: Makefile,v 1.3 2011/04/22 13:43:29 obache Exp $
#

DISTNAME=		mame0142s
PKGNAME=		${DISTNAME:S/0/-0./:S/s$//}
PKGREVISION=		1
MASTER_SITES=		http://mamedev.org/downloader.php?file=releases/

COMMENT=		Multiple Arcade Machine Emulator

CONFLICTS=		xmame-[0-9]* sdlmame-[0-9]*

DOCDIR=			share/doc/mame
INSTALLATION_DIRS=	bin ${DOCDIR} ${PKGMANDIR}/man1

# not installed, because not found necessary so far:
# regrep, split, src2html, srcclean, testkeys
do-install:
	set -e; \
	for prg in chdman jedutil ldresample ldverify mame romcmp unidasm; \
	do \
		${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin; \
	done
	set -e; \
	for doc in config.txt license.txt mame.txt; do \
		${INSTALL_DATA} ${WRKSRC}/docs/"$$doc" ${DESTDIR}${PREFIX}/${DOCDIR}; \
	done
# skipped: ldplayer man page exists, but no binary?
# skipped: testkeys, binary not installed
	set -e; \
	for man in chdman.1 jedutil.1 ldverify.1 mame.1 romcmp.1; \
	do \
		${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/man/"$$man" ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
	done

.include "Makefile.common"