Ignore:
Timestamp:
Mar 28, 2006, 6:51:46 AM (14 years ago)
Author:
markd
Message:

Bug: 7551 7902
Submitted by: markd@…
Reviewed by: markd@…
Approved by: markd@…
Obtained from:
Committed version bump to latest bochs 2.2.6; previous version 1.4.1 was broken.

Location:
trunk/dports/emulators/bochs
Files:
1 added
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/bochs/Portfile

    r17112 r17208  
    1 # $Id: Portfile,v 1.17 2006/03/21 16:43:27 mww Exp $
     1# $Id: Portfile,v 1.18 2006/03/28 06:51:45 markd Exp $
    22
    33PortSystem 1.0
    44name            bochs
    5 version         1.4.1
     5version         2.2.6
    66categories      emulators
    77maintainers     darwinports@opendarwin.org
     
    99long_description        Bochs is a highly portable open source IA-32 (x86) \
    1010        PC emulator written in C++, that runs on most popular platforms. \
    11         It includes emulation of the Intel x86 CPU, common I/O devices, \
    12         and a custom BIOS.  Currently, bochs can be compiled to emulate a \
    13         386, 486 or Pentium CPU.
     11        It emulates the Intel x86 CPU, common I/O devices, and a custom BIOS.
     12
    1413platforms       darwin
    1514homepage        http://bochs.sourceforge.net/
    1615master_sites     sourceforge
    17 checksums       md5 12e591b5cec2e0051e18605483f64678
    18 patchfiles      patch-Makefile.in patch-cdrom_osx patch-poly
    19 post-patch {
    20         set path "${workpath}/${worksrcdir}"
    21         set data_dir "${prefix}/bochs"
    22        
    23         reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs-dlx.1"
    24         reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs.1"
    25         reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochsrc.1"
    26         reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bximage.1"
    27        
    28         reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochs-dlx.1"
    29         reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochs.1"
    30         reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochsrc.1"
    31         reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bximage.1"
     16checksums       md5 961482eb78b55fe3e0e0639e34b4c2c1
    3217
    33         reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${version}/|g" "${path}/doc/man/bochsrc.1"
    34         reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${version}/|g" "${path}/doc/man/bochsrc.1"
     18patchfiles      patch-Makefile.in patch-.bochsrc
    3519
    36         reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${version}/|g" "${path}/.bochsrc"
    37         reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${version}/|g" "${path}/.bochsrc"
     20depends_run     port:wget
     21
     22configure.args  --prefix=${prefix} \
     23                --exec-prefix=${prefix} \
     24                --bindir=${prefix}/bin \
     25                --mandir=${prefix}/share/man \
     26                --enable-all-optimizations \
     27                --enable-sb16=osx \
     28                --enable-vbe \
     29                --enable-cdrom
     30
     31variant smp {
     32# Enable symmetric multi-processor support
     33        configure.args-append --enable-smp --enable-cpu-level=6
    3834}
    39 depends_run     bin:wget:wget
     35
     36pre-destroot {
     37        xinstall -m 755 -d ${destroot}${prefix}/bin     
     38        xinstall -m 755 -d ${destroot}${prefix}/share/bochs
     39        xinstall -m 755 -d ${destroot}/Applications/DarwinPorts
     40}
     41
     42post-destroot {
     43        file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
     44        system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}/Applications/DarwinPorts/bochs.app"
     45        xinstall -m 755 ${worksrcpath}/bochs ${destroot}${prefix}/bin
     46        xinstall -m 755 ${worksrcpath}/bximage ${destroot}${prefix}/bin
     47        xinstall -m 755 ${worksrcpath}/bxcommit ${destroot}${prefix}/bin
     48        reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
     49                ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
     50}
     51
     52post-activate {
     53        ui_msg "\n
     54
     55        **** To prepare bochs for use ****
     56
     571) Rename file bochsrc-sample.txt to bochrc.txt for use.
     58   -cd ${prefix}/share/bochs
     59   -sudo cp bochsrc-sample.txt bochrc.txt
     60
     612) Create a disk image for the emulator.
     62   -cd ${prefix}/share/bochs
     63   -sudo bximage (prompts will guide you)
     64   -sudo chmod 777 <diskimg-name>
     65
     663) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
     67   and replace it with the 'ata0-master:' string displayed at the end of the bximage
     68   process.
     69
     704) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
     71   according to the bochs documentation. (http://bochs.sourceforge.net/)
     72
     735) Now start bochs using the /Applications/DarwinPorts/bochs.app program;
     74   you may also use the bochs command line utility. \n"
     75}
  • trunk/dports/emulators/bochs/files/patch-Makefile.in

    r2091 r17208  
    1 --- Makefile.in.orig    Thu Feb 27 13:16:44 2003
    2 +++ Makefile.in Thu Feb 27 13:22:07 2003
    3 @@ -52,7 +52,7 @@
    4  DLXLINUX_TAR_URL=http://bochs.sourceforge.net/guestos/$(DLXLINUX_TAR)
    5  DLXLINUX_ROMFILE=BIOS-bochs-latest
    6  GUNZIP=gunzip
    7 -WGET=wget
    8 +WGET=curl -O
    9  SED=sed
    10  MKDIR=mkdir
    11  RMDIR=rmdir
    12 @@ -330,18 +330,18 @@
    13         (cd dlxlinux; $(MV) bochsrc.txt bochsrc.txt.orig; $(SED) -e "s/1\.1\.2/$(VERSION)/g"  -e 's,/usr/local,$(prefix),g' < bochsrc.txt.orig > bochsrc.txt; rm -f bochsrc.txt.orig)
     1--- Makefile.in.org     2006-03-26 08:40:52.000000000 -0800
     2+++ Makefile.in 2006-03-27 21:27:49.000000000 -0800
     3@@ -52,9 +52,9 @@
     4 INSTALL_LIST_BIN=bochs@EXE@ bximage@EXE@ bxcommit@EXE@
     5 INSTALL_LIST_BIN_OPTIONAL=bochsdbg@EXE@
     6 INSTALL_LIST_WIN32=$(INSTALL_LIST_SHARE) $(INSTALL_LIST_DOC) $(INSTALL_LIST_BIN) $(INSTALL_LIST_BIN_OPTIONAL) niclist@EXE@
     7-INSTALL_LIST_MACOSX=$(INSTALL_LIST_SHARE) $(INSTALL_LIST_DOC) bochs.app bochs.scpt bximage bxcommit
     8+INSTALL_LIST_MACOSX=$(INSTALL_LIST_SHARE) $(INSTALL_LIST_DOC) bochs.scpt
     9 # for win32 and macosx, these files get renamed to *.txt in install process
     10-TEXT_FILE_LIST=README CHANGES COPYING TODO VGABIOS-elpin-LICENSE VGABIOS-lgpl-README
     11+TEXT_FILE_LIST=README CHANGES COPYING TODO
     12 CP=cp
     13 CAT=cat
     14 RM=rm
     15@@ -652,19 +652,19 @@
     16        $(LIBTOOL) --finish $(STANDALONE_LIBDIR);
     17        touch $(APP)/.build_plugins
    1418 
    15  install_dlx:
    16 -       $(RM) -rf $(BOCHSDIR)/dlxlinux
    17 -       cp -r dlxlinux $(BOCHSDIR)/dlxlinux
    18 -       $(CHMOD) 755 $(BOCHSDIR)/dlxlinux
    19 -       $(GZIP) $(BOCHSDIR)/dlxlinux/hd10meg.img
    20 -       $(CHMOD) 644 $(BOCHSDIR)/dlxlinux/*
    21 -       for i in bochs-dlx; do cp $(srcdir)/build/linux/$$i $(bindir)/$$i; $(CHMOD) 755 $(bindir)/$$i; done
    22 +       $(RM) -rf $(DESTDIR)$(BOCHSDIR)/dlxlinux
    23 +       cp -r dlxlinux $(DESTDIR)$(BOCHSDIR)/dlxlinux
    24 +       $(CHMOD) 755 $(DESTDIR)$(BOCHSDIR)/dlxlinux
    25 +       $(GZIP) $(DESTDIR)$(BOCHSDIR)/dlxlinux/hd10meg.img
    26 +       $(CHMOD) 644 $(DESTDIR)$(BOCHSDIR)/dlxlinux/*
    27 +       for i in bochs-dlx; do cp $(srcdir)/build/linux/$$i $(DESTDIR)$(bindir)/$$i; $(CHMOD) 755 $(DESTDIR)$(bindir)/$$i; done
     19-install_macosx: all download_dlx @INSTALL_DOCBOOK_VAR@
     20-       -mkdir -p $(prefix)
     21-       for i in $(INSTALL_LIST_MACOSX); do if test -e $$i; then $(CPMAC) -r $$i $(prefix); else $(CPMAC) -r $(srcdir)/$$i $(prefix); fi; done
     22-       $(CPMAC) $(srcdir)/.bochsrc $(prefix)/bochsrc-sample.txt
     23-       -mkdir $(prefix)/keymaps
     24-       $(CPMAC) $(srcdir)/gui/keymaps/*.map $(prefix)/keymaps
     25-       cat $(DLXLINUX_TAR) | (cd $(prefix) && tar xzvf -)
     26-       dlxrc=$(prefix)/dlxlinux/bochsrc.txt; mv "$$dlxrc" "$$dlxrc.orig" && sed < "$$dlxrc.orig" 's/\/usr\/local\/bochs\/latest/../' > "$$dlxrc" && rm -f "$$dlxrc.orig"
     27-       mv $(prefix)/README $(prefix)/README.orig
     28-       cat $(srcdir)/build/macosx/README.macosx-binary $(prefix)/README.orig > $(prefix)/README
     29-       rm -f $(prefix)/README.orig
     30-       $(CPMAC) $(SCRIPT_EXEC) $(prefix)/dlxlinux
     31-       for i in $(TEXT_FILE_LIST); do mv $(prefix)/$$i $(prefix)/$$i.txt; done
     32+install_macosx: all download_dlx install_man @INSTALL_DOCBOOK_VAR@
     33+       -mkdir -p $(DESTDIR)$(prefix)
     34+       for i in $(INSTALL_LIST_MACOSX); do if test -e $$i; then $(CPMAC) -r $$i $(DESTDIR)$(sharedir); else $(CPMAC) -r $(srcdir)/$$i $(DESTDIR)$(sharedir); fi; done
     35+       $(CPMAC) $(srcdir)/.bochsrc $(DESTDIR)$(sharedir)/bochsrc-sample.txt
     36+       -mkdir $(DESTDIR)$(sharedir)/keymaps
     37+       $(CPMAC) $(srcdir)/gui/keymaps/*.map $(DESTDIR)$(sharedir)/keymaps
     38+       cat $(DLXLINUX_TAR) | (cd $(DESTDIR)$(sharedir) && tar xzvf -)
     39+       dlxrc=$(DESTDIR)$(sharedir)/dlxlinux/bochsrc.txt; mv "$$dlxrc" "$$dlxrc.orig" && sed < "$$dlxrc.orig" 's/\/usr\/local\/bochs\/latest/../' > "$$dlxrc" && rm -f "$$dlxrc.orig"
     40+       mv $(srcdir)/README $(srcdir)/README.orig
     41+       cat $(srcdir)/build/macosx/README.macosx-binary $(srcdir)/README.orig > $(DESTDIR)$(sharedir)/README
     42+       rm -f $(DESTDIR)$(sharedir)/README.orig
     43+       $(CPMAC) $(SCRIPT_EXEC) $(DESTDIR)$(sharedir)/dlxlinux
     44+#      for i in $(TEXT_FILE_LIST); do mv $(srcdir)/$$i $(DESTDIR)$(sharedir)/$$i.txt; done
    2845 
    29  uninstall::
    30 -       $(RM) -rf $(VERSIONDIR)
    31 -       $(RM) -rf $(BOCHSDIR)/dlxlinux
    32 -       $(RM) -rf $(BOCHSDIR)/latest
    33 -       -$(RMDIR) $(BOCHSDIR)
    34 +       $(RM) -rf $(DESTDIR)$(VERSIONDIR)
    35 +       $(RM) -rf $(DESTDIR)$(BOCHSDIR)/dlxlinux
    36 +       $(RM) -rf $(DESTDIR)$(BOCHSDIR)/latest
    37 +       -$(RMDIR) $(DESTDIR)$(BOCHSDIR)
    38         for i in bochs bximage bochs-dlx $(BOCHS_SCRIPTS); do rm -f $(DESTDIR)$(bindir)/$$i; done
    39         for i in $(MAN_PAGE_LIST); do $(RM) -f $(man1dir)/$$i.1; done
    40  
     46 ###########################################
     47 # BeOS make target.
Note: See TracChangeset for help on using the changeset viewer.