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

View file

@ -1,7 +1,7 @@
# Template file for 'mame' # Template file for 'mame'
pkgname=mame pkgname=mame
version=0173 version=0173
revision=1 revision=2
wrksrc="mame-mame${version}" wrksrc="mame-mame${version}"
homepage="http://mamedev.org" homepage="http://mamedev.org"
distfiles="https://github.com/mamedev/mame/archive/mame${version}.tar.gz" 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}" opts+=" CROSS_BUILD=1 OVERRIDE_CC=${CC} OVERRIDE_CXX=${CXX} OVERRIDE_LD=${CC}"
fi fi
case "$XBPS_TARGET_MACHINE" in 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=arcade ${makejobs}
make ${opts} SUBTARGET=mess ${makejobs} make ${opts} SUBTARGET=mess ${makejobs}
;; ;;
*) # Build all in one mame *) # Build all in one mame[64]
make ${opts} ${makejobs} make ${opts} ${makejobs}
;; ;;
esac esac
@ -63,29 +64,31 @@ do_install() {
# Install the mame script # Install the mame script
vbin ${FILESDIR}/${pkgname}.sh ${pkgname} vbin ${FILESDIR}/${pkgname}.sh ${pkgname}
# Install the applications and the UI font in /usr/share/${pkgname} # Install the main application(s)
if [ -r mame64 ]; then for f in mame mame64 mamearcade mamearcade64; do
vinstall mame64 755 usr/share/${pkgname} ${pkgname} if [ -r ${f} ]; then
fi vinstall ${f} 755 usr/share/${pkgname} mame
if [ -r mame ]; then fi
vinstall mame 755 usr/share/${pkgname} ${pkgname} done
fi for f in mess mess64; do
if [ -r arcade ]; then if [ -r ${f} ]; then
vinstall arcade 755 usr/share/${pkgname} ${pkgname} vinstall ${f} 755 usr/share/${pkgname} mess
fi fi
if [ -r mess ]; then done
vinstall mess 755 usr/share/${pkgname}
fi
# Install the tools
for f in chdman jedutil regrep pngcmp romcmp src2html srcclean \ for f in chdman jedutil regrep pngcmp romcmp src2html srcclean \
ldverify ldresample unidasm castool floptool imgtool; do ldverify ldresample unidasm castool floptool imgtool; do
vinstall ${f} 755 usr/share/${pkgname} vinstall ${f} 755 usr/share/${pkgname}
if [ -f src/osd/sdl/man/${f}.1 ]; then if [ -f docs/man/${f}.1 ]; then
vman src/osd/sdl/man/${f}.1 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 fi
done 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 # Install the extra bits
for f in artwork bgfx docs hash hlsl keymaps plugins samples; do for f in artwork bgfx docs hash hlsl keymaps plugins samples; do