mame: fix binaries names and manpage source

This commit is contained in:
Jürgen Buchmüller 2016-04-27 17:42:02 +02:00
parent af11e6c891
commit 6914817067
1 changed files with 23 additions and 20 deletions

View File

@ -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