From 69148170670028517c9a5e72b845c94055526154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 27 Apr 2016 17:42:02 +0200 Subject: [PATCH] mame: fix binaries names and manpage source --- srcpkgs/mame/template | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/srcpkgs/mame/template b/srcpkgs/mame/template index 654ba3ead80..d98a202dea7 100644 --- a/srcpkgs/mame/template +++ b/srcpkgs/mame/template @@ -1,7 +1,7 @@ # Template file for 'mame' pkgname=mame version=0173 -revision=1 +revision=2 wrksrc="mame-mame${version}" homepage="http://mamedev.org" distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz" @@ -48,11 +48,12 @@ do_build() { opts+=" CROSS_BUILD=1 OVERRIDE_CC=${CC} OVERRIDE_CXX=${CXX} OVERRIDE_LD=${CC}" fi case "$XBPS_TARGET_MACHINE" in - i686*) # Build mame and mess separately + i686*) # Build mamearcade and mess separately to + # overcome linker memory exhaustion make ${opts} SUBTARGET=arcade ${makejobs} make ${opts} SUBTARGET=mess ${makejobs} ;; - *) # Build all in one mame + *) # Build all in one mame[64] make ${opts} ${makejobs} ;; esac @@ -63,29 +64,31 @@ do_install() { # Install the mame script vbin ${FILESDIR}/${pkgname}.sh ${pkgname} - # Install the applications and the UI font in /usr/share/${pkgname} - if [ -r mame64 ]; then - vinstall mame64 755 usr/share/${pkgname} ${pkgname} - fi - if [ -r mame ]; then - vinstall mame 755 usr/share/${pkgname} ${pkgname} - fi - if [ -r arcade ]; then - vinstall arcade 755 usr/share/${pkgname} ${pkgname} - fi - if [ -r mess ]; then - vinstall mess 755 usr/share/${pkgname} - fi + # Install the main application(s) + for f in mame mame64 mamearcade mamearcade64; do + if [ -r ${f} ]; then + vinstall ${f} 755 usr/share/${pkgname} mame + fi + done + for f in mess mess64; do + if [ -r ${f} ]; then + vinstall ${f} 755 usr/share/${pkgname} mess + fi + done + # Install the tools for f in chdman jedutil regrep pngcmp romcmp src2html srcclean \ ldverify ldresample unidasm castool floptool imgtool; do vinstall ${f} 755 usr/share/${pkgname} - if [ -f src/osd/sdl/man/${f}.1 ]; then - vman src/osd/sdl/man/${f}.1 + if [ -f docs/man/${f}.1 ]; then + vman docs/man/${f}.1 + fi + done + for f in mame mess; do + if [ -r docs/man/${f}.6 ]; then + vman docs/man/${f}.6 fi done - [ -r docs/man/mame.6 ] && vman docs/man/mame.6 - [ -r docs/man/mess.6 ] && vman docs/man/mess.6 # Install the extra bits for f in artwork bgfx docs hash hlsl keymaps plugins samples; do