Cc65 version 2.13.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 2.13.0

      View the most recent changes for the cc65 port at: cc65.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for cc65.
      The raw portfile for cc65 2.13.0 is located here:
      http://cc65.darwinports.com/dports/lang/cc65/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/cc65


      The cc65 Portfile 59736 2009-10-21 07:06:05Z ryandesign macports.org $

      PortSystem 1.0

      Name: cc65
      Version: 2.13.0
      Category: lang
      Platform: darwin
      Maintainers: gmail.com:trashgod

      Description: 6502 C compiler
      Long Description: cc65 is a complete cross development package for 65(C)02 systems, including a powerful macro assembler, a C compiler, linker, librarian and several other tools.

      Homepage: http://www.cc65.org/
      distfiles cc65-sources-${version}.tar.bz2
      worksrcdir ${name}-${version}/src
      use_bzip2 yes

      Master Sites: http://cc65.oldos.net/ http://bj.spline.de/cc65/ ftp://ftp.musoftware.de/pub/uz/cc65/ ftp://ftp.musoftware.de/pub/uz/cc65/old/

      Patch Files: patch-makefiles.diff

      Checksums: md5 f59d0389d6f73aa9d3546a9489b2c43d


      use_configure no

      build.args -f make/gcc.mak CC=${configure.cc}
      build.env PREFIX=${prefix}

      post-build {
      system "cd ${worksrcpath}/../libsrc && make"
      }

      destroot {
      set _d ${destroot}${prefix}
      file delete ${_d}/man
      system "mkdir -p ${_d}/lib/cc65/{asminc,cfg,emd,joy,lib,mou,obj,ser,tgi}"
      system "mkdir -p ${_d}/lib/cc65/include/{em,geos,joystick,mouse,sys,tgi}"
      system "install -s -m 755 ${worksrcpath}/ar65/ar65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/ca65/ca65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/ca65html/ca65html ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/cc65/cc65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/cl65/cl65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/co65/co65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/da65/da65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/grc/grc ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/ld65/ld65 ${_d}/bin"
      system "install -s -m 755 ${worksrcpath}/od65/od65 ${_d}/bin"
      system "install -m 644 ${worksrcpath}/../asminc/*.inc ${_d}/lib/cc65/asminc"
      system "install -m 644 ${worksrcpath}/ld65/cfg/*-*.cfg ${_d}/lib/cc65/cfg"
      system "install -m 644 ${worksrcpath}/../libsrc/*.emd ${_d}/lib/cc65/emd"
      system "install -m 644 ${worksrcpath}/../include/*.h ${_d}/lib/cc65/include"
      system "install -m 644 ${worksrcpath}/../include/em/*.h ${_d}/lib/cc65/include/em"
      system "install -m 644 ${worksrcpath}/../include/geos/*.h ${_d}/lib/cc65/include/geos"
      system "install -m 644 ${worksrcpath}/../include/joystick/*.h ${_d}/lib/cc65/include/joystick"
      system "install -m 644 ${worksrcpath}/../include/mouse/*.h ${_d}/lib/cc65/include/mouse"
      system "install -m 644 ${worksrcpath}/../include/sys/*.h ${_d}/lib/cc65/include/sys"
      system "install -m 644 ${worksrcpath}/../include/tgi/*.h ${_d}/lib/cc65/include/tgi"
      system "install -m 644 ${worksrcpath}/../libsrc/*.joy ${_d}/lib/cc65/joy"
      system "install -m 644 ${worksrcpath}/../libsrc/*.lib ${_d}/lib/cc65/lib"
      system "install -m 644 ${worksrcpath}/../libsrc/*.mou ${_d}/lib/cc65/mou"
      system "install -m 644 ${worksrcpath}/../libsrc/*.o ${_d}/lib/cc65/obj"
      system "install -m 644 ${worksrcpath}/../libsrc/*.ser ${_d}/lib/cc65/ser"
      system "install -m 644 ${worksrcpath}/../libsrc/*.tgi ${_d}/lib/cc65/tgi"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/cc65
      % sudo port install cc65
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching cc65
      ---> Verifying checksum for cc65
      ---> Extracting cc65
      ---> Configuring cc65
      ---> Building cc65 with target all
      ---> Staging cc65 into destroot
      ---> Installing cc65
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using cc65 with these commands:
      %  man cc65
      % apropos cc65
      % which cc65
      % locate cc65

     Where to find more information:

    Darwin Ports



    Lightbox this page.