blob: 4f61eedeefca8a7ea728a10ea0be8260228495b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: trya <tryagainprod@gmail.com>
# Contributor: Zhukov Pavel <gelios@gmail.com>
# Contributor: Stalwart <stlwrt@gmail.com>
# Contributor: Leslie P. Polzer <polzer@gnu.org>
pkgname=generator
pkgver=0.35_cbiere_r4
_realver=0.35-cbiere-r4
pkgrel=7
pkgdesc="A Sega Megadrive/Genesis emulator"
arch=('i686' 'x86_64')
url="http://www.squish.net/generator"
license=("GPL")
depends=('gtk' 'sdl' 'bzip2' 'zlib' 'libjpeg')
makedepends=('nasm')
source=("http://www.squish.net/generator/cbiere/generator/generator-0.35-cbiere-r4.tar.bz2")
md5sums=('db4142912872a3f34d6d4e3bfe693b64')
options=(!makeflags)
prepare() {
cd "$srcdir/$pkgname-$_realver"
sed -e 's/INLINE void CALC_FCSLOT/static INLINE void CALC_FCSLOT/' \
-i ym2612/fm.c
sed -e 's/inline void vdp_plotcell/static inline void vdp_plotcell/' \
-i main/vdp.c
sed -e 's/CONTEXTMZ80 cpuz80_z80/extern CONTEXTMZ80 cpuz80_z80/' \
-i hdr/cpuz80.h
}
build() {
cd "$srcdir/$pkgname-$_realver"
if [ "$CARCH" = "x86_64" ]; then
# raze is a 32-bit-only emulator, must use a 64-bit compatible implementation
./configure --prefix=/usr --with-cmz80 --with-sdl-audio --with-gtk
else
# raze global macro causes an infinite recursion with recent nasm versions
sed -e '13d' -i raze/raze.asm.in
./configure --prefix=/usr --with-raze --with-sdl-audio --with-gtk
fi
make
}
package() {
cd "$srcdir/$pkgname-$_realver"
make DESTDIR="$pkgdir" install
}
|