summaryrefslogtreecommitdiff
path: root/community/bochs/PKGBUILD
blob: 37357c57e0452b9709781b4b9617619f3ced82d4 (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
47
48
49
50
51
52
53
54
55
# $Id: PKGBUILD 112550 2014-06-03 12:08:57Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Kevin Piche <kevin@archlinux.org>

pkgname=bochs
pkgver=2.6.5
pkgrel=1
pkgdesc="A portable x86 PC emulation software package"
arch=('i686' 'x86_64')
url="http://bochs.sourceforge.net/"
license=('LGPL')
depends=('gcc-libs' 'libxrandr')
#makedepends=('sdl')
#optdepends=('sdl: debuggers')
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('455020b528ac31477a58779a9a4a96e4')

build() {
    cd "$srcdir/$pkgname-$pkgver"

    # typos in 2.6.5
    sed -i 's/Bx3DNowOpcode\[i->modRMForm.Ib/&\[0\]/' cpu/fetchdecode{,64}.cc

    # todo, figure out why debuggers won't build (FS#38274)
    ./configure \
        --prefix=/usr \
        --without-wx \
        --with-x11 \
        --disable-docbook \
        --enable-cpu-level=6 \
        --enable-fpu \
        --enable-3dnow \
        --enable-disasm \
        --enable-smp \
        --enable-x86-64 \
        --enable-avx \
        --enable-long-phy-address \
        --enable-disasm \
        --enable-pcidev \
        --enable-usb
        #--with-sdl
        #--enable-debugger
        #--enable-x86-debugger
        #--enable-all-optimizations
        #--enable-plugins
    #sed -i 's/^LIBS = /LIBS = -lpthread/g' Makefile
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir" install
    install -Dm644 .bochsrc "$pkgdir/etc/bochsrc-sample.txt"
}