2011-10-26 00:39:43 +02:00
|
|
|
# Template file for 'mame'
|
|
|
|
pkgname=sdlmame
|
2012-12-20 14:38:27 +01:00
|
|
|
_distver=0147
|
2012-07-31 14:18:22 +02:00
|
|
|
_patchver=4
|
2012-07-03 15:15:09 +02:00
|
|
|
version=${_distver}u${_patchver}
|
2012-06-03 20:15:07 +02:00
|
|
|
revision=1
|
2011-10-26 00:39:43 +02:00
|
|
|
wrksrc=mame-${_distver}s
|
|
|
|
homepage="http://mamedev.org"
|
|
|
|
distfiles="${homepage}/downloader.php?file=releases/mame${_distver}s.zip"
|
|
|
|
short_desc="Multiple Arcade Machine Emulator"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="mame"
|
2012-12-20 14:38:27 +01:00
|
|
|
checksum=4567df6ff381248fdf6e731a87f784d242b17086a1e0dd46826fac29f9304d68
|
2011-10-26 00:39:43 +02:00
|
|
|
long_desc="
|
|
|
|
A port of the popular Multiple Arcade Machine Emulator using SDL with
|
|
|
|
OpenGL support."
|
|
|
|
|
2012-12-20 14:38:27 +01:00
|
|
|
noextract=yes
|
|
|
|
nonfree=yes
|
|
|
|
|
|
|
|
fulldepends="liberation-fonts-ttf"
|
|
|
|
|
2012-12-20 16:33:31 +01:00
|
|
|
makedepends="unzip perl pkg-config SDL-devel>=1.2.15_4 SDL_ttf-devel
|
2012-12-20 16:09:19 +01:00
|
|
|
libXinerama-devel gtk+-devel GConf-devel python"
|
2012-12-20 14:38:27 +01:00
|
|
|
|
2011-10-26 00:39:43 +02:00
|
|
|
do_extract() {
|
|
|
|
# mame source code is double-zipped to save space.
|
|
|
|
cd ${wrksrc}
|
|
|
|
unzip -q ${XBPS_SRCDISTDIR}/$(basename $distfiles)
|
|
|
|
unzip -q mame.zip
|
|
|
|
rm -f mame.zip
|
2012-01-09 17:49:26 +01:00
|
|
|
find . -type f -not -name \*.png | xargs perl -pi -e 's/\r\n?/\n/g'
|
2011-10-26 00:39:43 +02:00
|
|
|
|
|
|
|
# Download and apply released patches.
|
|
|
|
for p in $(seq -w 1 ${_patchver}); do
|
|
|
|
_patch=${_distver}u${p}
|
|
|
|
msg_normal "Fetching patch: ${_patch} ...\n"
|
|
|
|
${XBPS_FETCH_CMD} ${homepage}/updates/${_patch}_diff.zip
|
|
|
|
msg_normal "Applying patch: ${_patch} ...\n"
|
|
|
|
unzip -q ${_patch}_diff.zip \
|
|
|
|
&& patch -p0 -E -i ${_patch}.diff
|
|
|
|
rm -f ${_patch}_diff
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2012-07-31 14:44:25 +02:00
|
|
|
make NOWERROR=1 ${makejobs}
|
|
|
|
make NOWERROR=1 ${makejobs} tools
|
2011-10-26 00:39:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# Install the sdlmame script
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.sh 755 usr/bin ${pkgname}
|
|
|
|
|
|
|
|
# Install the applications and the UI font in /usr/share
|
|
|
|
if [ -r mame64 ]; then
|
|
|
|
vinstall mame64 755 usr/share/${pkgname} ${pkgname}
|
|
|
|
else
|
|
|
|
vinstall mame 755 usr/share/${pkgname} ${pkgname}
|
|
|
|
fi
|
|
|
|
|
|
|
|
for f in chdman jedutil regrep romcmp testkeys src2html srcclean \
|
|
|
|
ldverify ldresample; do
|
|
|
|
vinstall ${f} 755 usr/share/${pkgname}
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install the extra bits
|
|
|
|
install -d ${DESTDIR}/usr/share/${pkgname}/{artwork,ctrlr,keymaps,shader}
|
|
|
|
install -d ${DESTDIR}/usr/share/man/man1
|
|
|
|
install -m644 src/osd/sdl/shader/glsl*.*h \
|
|
|
|
${DESTDIR}/usr/share/${pkgname}/shader
|
|
|
|
install -m644 src/osd/sdl/man/* ${DESTDIR}/usr/share/man/man1
|
|
|
|
|
|
|
|
install -m644 artwork/* ${DESTDIR}/usr/share/${pkgname}/artwork
|
|
|
|
install -m644 src/osd/sdl/keymaps/* \
|
|
|
|
${DESTDIR}/usr/share/${pkgname}/keymaps
|
|
|
|
|
|
|
|
# Include the license
|
|
|
|
vinstall docs/license.txt 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|