2006-05-05 13:08:09 +00:00
|
|
|
# Description: Fast CPU emulator and virtualizer
|
|
|
|
# URL: http://fabrice.bellard.free.fr/qemu/
|
|
|
|
# Maintainer: Jukka Heino, jukka dot heino at gmail dot com
|
|
|
|
# Packager: Jukka Heino, jukka dot heino at gmail dot com
|
|
|
|
# Depends on: libsdl
|
|
|
|
# Nice to have: kqemu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=qemu
|
2006-05-05 13:08:09 +00:00
|
|
|
version=0.8.1
|
|
|
|
release=1
|
2006-02-23 15:26:10 +00:00
|
|
|
source=(http://fabrice.bellard.free.fr/$name/$name-$version.tar.gz \
|
2006-03-30 14:11:17 +00:00
|
|
|
$name-0.7.0-gcc4.patch \
|
|
|
|
$name-0.7.2-dyngen-check-stack-clobbers.patch \
|
|
|
|
$name-0.7.2-gcc4-opts.patch \
|
|
|
|
$name-0.8.0-gcc4-hacks.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2006-03-30 14:11:17 +00:00
|
|
|
cd $name-$version
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-03-30 14:11:17 +00:00
|
|
|
patch -p1 -i $SRC/$name-0.7.0-gcc4.patch
|
|
|
|
patch -p1 -i $SRC/$name-0.7.2-dyngen-check-stack-clobbers.patch
|
|
|
|
patch -p1 -i $SRC/$name-0.7.2-gcc4-opts.patch
|
|
|
|
patch -p1 -i $SRC/$name-0.8.0-gcc4-hacks.patch
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-03-30 14:11:17 +00:00
|
|
|
./configure --prefix=/usr \
|
2006-05-05 13:08:09 +00:00
|
|
|
--enable-adlib \
|
|
|
|
--target-list=i386-softmmu \
|
|
|
|
--disable-gcc-check
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-05-05 13:08:09 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2006-03-30 14:11:17 +00:00
|
|
|
rm -rf $PKG/usr/share/doc
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|