Ticket #53671: upgrade-bochs.diff
File upgrade-bochs.diff, 6.6 KB (added by Nax (Maxime Bacoux), 8 years ago) |
---|
-
Portfile
diff -bur bochs.orig/Portfile bochs/Portfile
old new 1 1 PortSystem 1.0 2 2 3 3 name bochs 4 version 2.4.5 5 revision 4 4 version 2.6.8 6 5 categories emulators 7 6 license LGPL-2.1+ 8 7 platforms darwin 9 8 maintainers @Nax 10 9 11 description cross platform ia-32emulator10 description cross platform x86 and x86_64 emulator 12 11 13 long_description Bochs is a highly portable open source IA-32 (x86)\12 long_description Bochs is a highly portable open source x86 and x86_64 \ 14 13 PC emulator written in C++, that runs on most popular \ 15 14 platforms. It emulates the Intel x86 CPU, common I/O \ 16 15 devices, and a custom BIOS. … … 18 17 homepage http://bochs.sourceforge.net/ 19 18 master_sites sourceforge 20 19 21 checksums md5 fda7eadcd9590934d2901f8439631463 \ 22 sha1 e334d31efd79c80454018c9cdafaa0eb75cb018a \ 23 rmd160 a5a52d8f58b8ad7b1d544d4f89043244d99fa242 20 checksums sha256 79700ef0914a0973f62d9908ff700ef7def62d4a28ed5de418ef61f3576585ce \ 21 rmd160 cf6f9a427559c79e18c208a89e7146b6e9798ea5 24 22 25 23 patchfiles patch-.bochsrc.diff 26 24 27 depends_lib port:xorg-libX11 \ 28 port:xorg-libsm \ 29 port:xpm \ 30 port:gettext 25 depends_lib port:gettext \ 26 port:readline 31 27 32 28 configure.args --exec-prefix=${prefix} \ 33 29 --bindir=${prefix}/bin \ 34 30 --mandir=${prefix}/share/man \ 31 --enable-cpu-level=6 \ 35 32 --enable-all-optimizations \ 33 --enable-x86-64 \ 34 --enable-pci \ 36 35 --enable-vbe \ 36 --enable-clgd54xx \ 37 --enable-voodoo \ 38 --enable-ne2000 \ 39 --enable-e1000 \ 40 --enable-usb \ 41 --enable-usb-ohci \ 42 --enable-usb-xhci \ 37 43 --enable-cdrom \ 38 --with-x11 44 --enable-logging \ 45 --enable-plugins \ 46 --enable-readline \ 47 --with-nogui 39 48 40 # Disable sound support, see ticket #23938 41 #configure.args-append --enable-sb16=osx 49 variant debugger description {Enable bochs internal debugger} conflicts gdbstub { 50 configure.args-append --enable-debugger --enable-disasm 51 } 42 52 43 53 variant smp description {Enable symmetric multi-processor support} conflicts gdbstub { 44 configure.args-append --enable-smp --enable-cpu-level=654 configure.args-append --enable-smp 45 55 } 46 56 47 variant gdbstub description {Enable GDB stub debugging} conflicts smp {57 variant gdbstub description {Enable GDB stub debugging} conflicts smp debugger { 48 58 configure.args-append --enable-gdb-stub 49 59 } 50 60 61 variant avx description {Enable AVX support} { 62 configure.args-append --enable-avx --enable-evex 63 } 64 65 variant x11 { 66 configure.args-append --with-x11 67 depends_lib-append port:xorg-libX11 \ 68 port:xorg-libsm \ 69 port:xpm 70 } 71 72 variant sdl description {Enable SDL GUI} { 73 configure.args-append --with-sdl 74 depends_lib-append port:libsdl 75 } 76 77 variant sdl2 description {Enable SDL2 GUI} { 78 configure.args-append --with-sdl2 79 depends_lib-append port:libsdl2 80 } 81 82 variant term description {Enable text-mode GUI} { 83 configure.args-append --with-term 84 depends_lib-append port:ncurses 85 } 86 87 default_variants +smp +avx +sdl2 +term 88 51 89 post-destroot { 52 90 reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \ 53 91 ${destroot}${prefix}/share/doc/bochs/bochsrc-sample.txt -
files/patch-.bochsrc.diff
diff -bur bochs.orig/files/patch-.bochsrc.diff bochs/files/patch-.bochsrc.diff
old new 1 --- .bochsrc.orig 201 0-04-24 04:36:03.000000000 -05002 +++ .bochsrc 201 0-04-27 23:47:57.000000000 -05003 @@ - 276,7 +276,7 @@4 # The parameter 'type' can be used to enable the floppy drive withoutmedia5 # and status specified. Usually the drive type is set up based on the media type.1 --- .bochsrc.orig 2017-03-01 14:04:04.000000000 +0100 2 +++ .bochsrc 2017-03-01 14:06:18.000000000 +0100 3 @@ -623,7 +623,7 @@ 4 # The optional parameter 'write_protected' can be used to control the media 5 # write protect switch. By default it is turned off. 6 6 #======================================================================= 7 7 -floppya: 1_44=/dev/fd0, status=inserted 8 8 +#floppya: 1_44=/dev/fd0, status=inserted 9 9 #floppya: image=../1.44, status=inserted 10 10 #floppya: 1_44=/dev/fd0H1440, status=inserted 11 11 #floppya: 1_2=../1_2, status=inserted 12 @@ - 553,7 +553,7 @@13 # parport2: enabled=1, file="/dev/lp0"14 # parport1: enabled=012 @@ -711,7 +711,7 @@ 13 # ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63 14 # ata3-slave: type=cdrom, path=iso.sample, status=inserted 15 15 #======================================================================= 16 - parport1: enabled=1, file="parport.out"17 +# parport1: enabled=1, file="parport.out"18 19 # =======================================================================20 # SB16:21 @@ - 591,7 +591,7 @@22 # sb16: midimode=1, midi="", wavemode=1, wave="" # win3223 # s b16: midimode=1, midi=alsa:128:0, wavemode=1, wave=alsa # Linux with ALSA16 -ata0-master: type=disk, mode=flat, path="30M.sample" 17 +#ata0-master: type=disk, mode=flat, path="30M.sample" 18 #ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17 19 #ata0-master: type=disk, mode=flat, path="c.img", cylinders=0 # autodetect 20 #ata0-slave: type=disk, mode=vvfat, path=/bochs/images/vvfat, journal=vvfat.redolog 21 @@ -904,7 +904,7 @@ 22 # Example for different drivers: 23 # sound: waveoutdrv=sdl, waveindrv=alsa, midioutdrv=dummy 24 24 #======================================================================= 25 - #sb16: midimode=1, midi=/dev/midi00, wavemode=1, wave=/dev/dsp, loglevel=2, log=sb16.log, dmatimer=60000026 + sb16: midimode=1, midi=/dev/midi00, wavemode=1, wave=/dev/dsp, loglevel=2, log=sb16.log, dmatimer=60000025 -sound: driver=default, waveout=/dev/dsp. wavein=, midiout= 26 +#sound: driver=default, waveout=/dev/dsp. wavein=, midiout= 27 27 28 28 #======================================================================= 29 # VGA_UPDATE_INTERVAL:29 # SPEAKER: