1 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
2 # maintainer: gebjgd <robinking623623@yahoo.de>
6 pkgdesc="Multiple Arcade Machine Emulator with OpenGL/XV support"
8 url='http://x.mame.net'
10 depends=('libgl' 'libxv' 'expat>=2.0' 'sdl' 'zlib')
11 conflicts=('xmame-sdl')
12 source=(http://caltaxcn.googlecode.com/files/xmame-${pkgver}.tar.bz2
13 makefile.unix-x11.patch)
14 md5sums=('b2b18d32a03ebd4d9c9476fbb93695ca' 'dd6730ef2f3c4db3f35afa4b9085a956')
17 cd ${startdir}/src/xmame-${pkgver}
18 patch -Np0 -i ${startdir}/src/makefile.unix-x11.patch || return 1
19 [ -z "${CC}" ] || sed -i "s/CC\t= gcc/CC\t= ${CC}/" makefile.unix
20 sed -i "s/^CFLAGS =/CFLAGS = ${CFLAGS}/" makefile.unix
22 make PREFIX=/usr || return 1
23 make PREFIX=${startdir}/pkg/usr install
26 cd ${startdir}/pkg/usr/bin
29 chown -R root:root ${startdir}/pkg/usr