mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
mame: reduce i686* memory usage
This commit is contained in:
parent
0e200be7fa
commit
4ead58cd9d
1 changed files with 11 additions and 1 deletions
|
@ -20,6 +20,7 @@ replaces="sdlmame>=0 sdlmess>=0"
|
||||||
|
|
||||||
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3 -I${XBPS_CROSS_BASE}/usr/include/libutf8proc"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686*) nodebug=yes ;;
|
||||||
*-musl) CXXFLAGS+=" -DBX_CRT_MUSL=1" ;;
|
*-musl) CXXFLAGS+=" -DBX_CRT_MUSL=1" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -62,12 +63,21 @@ do_build() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
make ${opts} ${makejobs}
|
make ${opts} ${makejobs}
|
||||||
|
if [ "${XBPS_TARGET_MACHINE%-musl}" != "x86_64" ]; then
|
||||||
|
opts=${opts/=arcade/=mess}
|
||||||
|
make ${opts} ${makejobs}
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
local f
|
local f
|
||||||
|
|
||||||
# Install the mame script
|
# Install the mame script
|
||||||
vbin ${FILESDIR}/${pkgname}.sh ${pkgname}
|
vbin ${FILESDIR}/mame.sh mame
|
||||||
|
|
||||||
|
# If mess is a separate binary, also install the mess script
|
||||||
|
if [ "${XBPS_TARGET_MACHINE%-musl}" != "x86_64" ]; then
|
||||||
|
vbin ${FILESDIR}/mess.sh mess
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the main application(s)
|
# Install the main application(s)
|
||||||
for f in mame mame64 mamearcade mamearcade64; do
|
for f in mame mame64 mamearcade mamearcade64; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue