Jna version 3.0.5 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 3.0.5

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


      The jna Portfile 39677 2008-08-29 18:16:52Z blair macports.org $

      PortSystem 1.0

      Name: jna
      Version: 3.0.5
      Category: java
      Platform: darwin
      Maintainers: blair
      Description: Access to native shared libraries with pure Java code

      Long Description: Java Native Access provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes. Access is dynamic at runtime without code generation. JNA's design aims to provide native access in a natural way with a minimum of effort. No boilerplate or generated code is required. While some attention is paid to performance, correctness and ease of use take priority.

      Homepage: https://jna.dev.java.net/

      Master Sites: ${homepage}source/browse/*checkout*/${name}/tags/${version}/jnalib/dist/
      distfiles ${name}.jar
      fetch.ignore_sslcert yes
      extract.only

      Checksums: md5 834c3daa2b50d0a5b01d1069f1f113f5 sha1 1fee9c01201a83a3f00cff10c07289b13599a16e rmd160 a6e610e6c130e95119d6748177d0533aa42bdeb5

      depends_lib bin:java:kaffe

      use_configure no

      build { }

      destroot {
      set javadir ${destroot}${prefix}/share/java

      xinstall -d -m 755 ${javadir}

      file copy ${distpath}/${name}.jar ${javadir}/
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.