Gaul-devel version 0.1850 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    gaul-devel  most recent diff


    version 0.1850

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


      # -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2

      PortSystem 1.0

      Name: gaul-devel
      Version: 0.1850
      license GPL
      Category: math
      Maintainers: vince
      Description: Genetic algorithms library
      Long Description: A flexible programming library for evolutionary computation. Steady-state, generational and island model genetic algorithms are supported, using Darwinian, Lamarckian or Baldwinian evolution. Includes support for multiprocessor and distributed systems.

      Platform: darwin
      Homepage: http://gaul.sourceforge.net/
      Master Sites: sourceforge:gaul
      distname ${name}-${version}-${revision}

      Checksums: md5 3a832c882b0df0f5c46f733d360fd7bb sha1 2ec57a5bce2ff7fc9f9c3453b2ea2d3aec248350 rmd160 efd4f1dad25bbe487e1e8bd56cb499a07c92a1e7

      # Finds out the number of CPU on the machine
      set nb_th [expr [exec sysctl -n hw.logicalcpu] * 2]

      # Configuration
      configure.args-append --enable-g=yes
      configure.args-append --enable-ccoptim=yes
      configure.args-append --enable-padding=yes
      configure.args-append --enable-pthread
      configure.args-append --enable-num-threads=${nb_th}
      configure.args-append --enable-num-procs=${nb_th}

      Variant: mpi {
      configure.args-append --enable-mpi=yes
      }

      Variant: slang {
      depends.lib-append port:slang
      configure.args-append --enable-slang=yes
      }

      # Patches
      post-configure {
      system "chmod +x ${filespath}/patch-config_h"
      system "${filespath}/patch-config_h ${worksrcpath}/config.h"
      reinplace -E "s|^CC=\"(.*)\"|CC=\"\\1 ${configure.universal_cflags}\"|" ${worksrcpath}/libtool
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.