Gcj34 version 3.4.6 - How to Download and Install on Mac OS X
Wednesday the 8th of September, 2010

    version 3.4.6

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


      The gcj34 Portfile 40602 2008-10-08 07:32:10Z jmr macports.org $

      PortSystem 1.0
      Name: gcj34
      Version: 3.4.6
      Category: lang devel java
      Maintainers: nomaintainer
      Description: GNU Java compiler
      Long Description: GCJ is a portable, optimizing, ahead-of-time compiler for the Java Programming Language. It can compile: Java source code directly to native machine code, Java source code to Java bytecode (class files), and Java bytecode to native machine code.

      Platform: darwin

      Homepage: http://www.gnu.org/software/gcc/java/
      distname gcc-${version}
      Master Sites: gnu:gcc/${distname}
      use_bzip2 yes
      dist_subdir gcc

      Checksums: md5 4a21ac777d4b5617283ce488b808da7b sha1 97b290fdc572c8e490b3b39f243e69bacad23c2b rmd160 b15003368cedc7964f6ceaee0c39ddc43a46c442

      worksrcdir ${distname}/build

      destroot.violate_mtree yes

      depends_lib port:libiconv port:zlib

      Patch Files: patch-libjava_libltdl_ltmain.sh patch-ltmain.sh

      pre-patch {
      xinstall -d ${worksrcpath}
      }

      set gcjBaseDir ${prefix}/${name}-${version}
      configure.cmd ${worksrcpath}/../configure
      configure.env LIBS=-liconv
      configure.pre_args --prefix=${gcjBaseDir}
      configure.args --enable-languages=c++,java --disable-nls --with-system-zlib --mandir=${gcjBaseDir}/share/man --infodir=${gcjBaseDir}/share/info --with-local-prefix=${gcjBaseDir}

      build.target bootstrap-lean

      # Since we install in a subdir dedicated to gcj, this gets it visibility
      post-destroot {
      foreach n {1 7} {
      foreach f [glob -directory ${destroot}${prefix}/${name}-${version}/share/man man${n}/*.${n}] {
      system "gzip -9 ${f}"
      }
      }
      set gcjLinkFiles { gcj gcjh gij grepjar jcf-dump jv-convert jv-scan }

      foreach gcjBinFile ${gcjLinkFiles} {
      system "cd ${destroot}${prefix}/bin && ln -s ../${name}-${version}/bin/${gcjBinFile} ."
      }

      foreach gcjManFile ${gcjLinkFiles} {
      system "cd ${destroot}${prefix}/share/man/man1 && ln -s ../../../${name}-${version}/share/man/man1/${gcjManFile}.1.gz ."
      }
      xinstall -m 755 -d ${destroot}${prefix}/lib/pkgconfig

      system "cd ${destroot}${prefix}/lib/pkgconfig && ln -s ../../${name}-${version}/lib/pkgconfig/libgcj.pc ."
      }

      platform darwin 8 {
      patchfiles-append patch-gcc_config_darwin.h
      }


    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/gcj34
      % sudo port install gcj34
      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 gcj34
      ---> Verifying checksum for gcj34
      ---> Extracting gcj34
      ---> Configuring gcj34
      ---> Building gcj34 with target all
      ---> Staging gcj34 into destroot
      ---> Installing gcj34
    - 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 gcj34 with these commands:
      %  man gcj34
      % apropos gcj34
      % which gcj34
      % locate gcj34

     Where to find more information:

    Darwin Ports



    Lightbox this page.