1 # $NetBSD: Makefile,v 1.17 2013/01/21 12:53:16 wiz Exp $
4 PKGNAME
= ${DISTNAME
:S
/0/-0.
/:S
/s
$//}
6 MASTER_SITES
= http
://mamedev.org
/downloader.php?file
=releases
/
8 COMMENT
= Multiple Arcade Machine Emulator
10 CONFLICTS
= xmame-
[0-9]* sdlmame-
[0-9]*
12 DOCDIR
= share
/doc
/mame
13 INSTALLATION_DIRS
= bin
${DOCDIR} ${PKGMANDIR}/man1
${PKGMANDIR}/man6
15 # mame source is double-zipped
17 cd
${WRKDIR} && ${.CURDIR
}/..
/..
/mk
/extract
/extract mame.zip
20 # not installed, because not found necessary so far:
21 # regrep, split, src2html, srcclean, testkeys
24 for prg in chdman jedutil ldresample ldverify mame romcmp unidasm
; \
26 ${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin
; \
29 for doc in config.txt license.txt mame.txt
; do \
30 ${INSTALL_DATA} ${WRKSRC}/docs
/"$$doc" ${DESTDIR}${PREFIX}/${DOCDIR}; \
32 # skipped: ldplayer man page exists, but no binary?
33 # skipped: testkeys, binary not installed
35 for man in chdman
.1 jedutil
.1 ldverify
.1 romcmp
.1; \
37 ${INSTALL_DATA} ${WRKSRC}/src
/osd
/sdl
/man
/"$$man" ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
; \
39 ${INSTALL_DATA} ${WRKSRC}/src
/osd
/sdl
/man
/mame
.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
; \
41 .
include "Makefile.common"