Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / mame / Makefile
bloba360e0d0e02fd342b3ff839c88c85b75092999a0
1 # $NetBSD: Makefile,v 1.17 2013/01/21 12:53:16 wiz Exp $
3 DISTNAME= mame0148s
4 PKGNAME= ${DISTNAME:S/0/-0./:S/s$//}
5 PKGREVISION= 1
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
16 post-extract:
17 cd ${WRKDIR} && ${.CURDIR}/../../mk/extract/extract mame.zip
18 rm ${WRKDIR}/mame.zip
20 # not installed, because not found necessary so far:
21 # regrep, split, src2html, srcclean, testkeys
22 do-install:
23 set -e; \
24 for prg in chdman jedutil ldresample ldverify mame romcmp unidasm; \
25 do \
26 ${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin; \
27 done
28 set -e; \
29 for doc in config.txt license.txt mame.txt; do \
30 ${INSTALL_DATA} ${WRKSRC}/docs/"$$doc" ${DESTDIR}${PREFIX}/${DOCDIR}; \
31 done
32 # skipped: ldplayer man page exists, but no binary?
33 # skipped: testkeys, binary not installed
34 set -e; \
35 for man in chdman.1 jedutil.1 ldverify.1 romcmp.1; \
36 do \
37 ${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/man/"$$man" ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
38 done
39 ${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/man/mame.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6; \
41 .include "Makefile.common"