Apr-util version 1.3.9 - How to Download and Install on Mac OS X
Friday the 20th of November, 2009

    apr-util  most recent diff


    version 1.3.9

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


      The apr-util Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: apr-util
      Version: 1.3.9
      Category: devel
      Maintainers: geeklair.net:dluke
      Platform: darwin
      Description: utilities built with the apache group's portability library

      Long Description: apr-util is a library of useful utilities built with and intended to be used with the Apache Portable Runtime.

      Homepage: http://apr.apache.org/
      Master Sites: apache:apr
      use_bzip2 yes
      Checksums: md5 29dd557f7bd891fc2bfdffcfa081db59 sha1 7d8979605765df69795699764a262dcf96b3a1d7 rmd160 7f9879b41e1c816f3bb0ed8a52c23f5813b1e432

      depends_lib port:apr port:expat port:libiconv port:db46 port:sqlite3

      use_parallel_build yes
      configure.args --with-apr=${prefix}/bin/apr-1-config --with-expat=${prefix} --with-iconv=${prefix} --with-berkeley-db=${prefix}/include:${prefix}/lib/db46 --without-mysql --without-pgsql --with-sqlite3=${prefix}

      test.run yes
      test.target check
      test.env DYLD_LIBRARY_PATH=${worksrcpath}/.libs
      pre-test {
      use_parallel_build no
      }


      Variant: no_bdb description {Build without BerkeleyDB support} {
      depends_lib-delete port:db46
      configure.args-delete --with-berkeley-db=${prefix}/include:${prefix}/lib/db46
      configure.args-append --without-berkeley-db
      }

      Variant: no_sqlite description {Build without sqlite support} {
      depends_lib-delete port:sqlite3
      configure.args-delete --with-sqlite3=${prefix}
      configure.args-append --without-sqlite2 --without-sqlite3
      }

      Variant: openldap description {Build with OpenLDAP support} {
      depends_lib-append port:openldap
      configure.args-append --with-ldap --with-ldap-include=${prefix}/include --with-ldap-lib=${prefix}/lib
      }

      set extralibs "-L${prefix}/lib/db46"

      pre-configure {
      reinplace "s|^Libs: |Libs: ${extralibs} |" $worksrcpath/apr-util.pc.in
      }

      Variant: postgresql84 description {Build with postgres support (using postgresql v8.4)} conflicts postgresql82 postgresql83 {
      depends_lib-append port:postgresql84
      configure.args-delete --without-pgsql
      configure.args-append --with-pgsql=yes
      configure.cppflags-append "-I${prefix}/include/postgresql84"
      configure.ldflags-append "-L${prefix}/lib/postgresql84"
      post-patch {
      set extralibs "${extralibs} -L${prefix}/lib/postgresql84"
      reinplace "s|^INCLUDES = |INCLUDES = -I prefix /include/postgresql84 |" $worksrcpath/Makefile.in
      reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L prefix /lib/postgresql84 |" $worksrcpath/Makefile.in
      }
      }

      Variant: postgresql83 description {Build with postgres support (using postgresql v8.3)} conflicts postgresql82 postgresql84 {
      depends_lib-append port:postgresql83
      configure.args-delete --without-pgsql
      configure.args-append --with-pgsql=yes
      configure.cppflags-append "-I${prefix}/include/postgresql83"
      configure.ldflags-append "-L${prefix}/lib/postgresql83"
      post-patch {
      set extralibs "${extralibs} -L${prefix}/lib/postgresql83"
      reinplace "s|^INCLUDES = |INCLUDES = -I prefix /include/postgresql83 |" $worksrcpath/Makefile.in
      reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L prefix /lib/postgresql83 |" $worksrcpath/Makefile.in
      }
      }

      Variant: postgresql82 description {Build with postgres support (using postgresql v8.2)} conflicts postgresql83 postgresql84 {
      depends_lib-append port:postgresql82
      configure.args-delete --without-pgsql
      configure.args-append --with-pgsql=yes
      configure.cppflags-append "-I${prefix}/include/postgresql82"
      configure.ldflags-append "-L${prefix}/lib/postgresql82"
      post-patch {
      set extralibs "${extralibs} -L${prefix}/lib/postgresql82"
      reinplace "s|^INCLUDES = |INCLUDES = -I prefix /include/postgresql82 |" $worksrcpath/Makefile.in
      reinplace "s|^APRUTIL_LDFLAGS = |APRUTIL_LDFLAGS = -L prefix /lib/postgresql82 |" $worksrcpath/Makefile.in
      }
      }

      Variant: mysql5 description {Build with MySQL5 suppoprt} {
      depends_lib-append path:bin/mysql_config5:mysql5
      configure.args-delete --without-mysql
      configure.args-append --with-mysql=yes
      configure.env-append MYSQL_CONFIG=${prefix}/bin/mysql_config5
      }

      livecheck.type regex
      livecheck.url http://apache.org/dist/apr/
      livecheck.regex {APR-util (\d+(?:\.\d+)*) is the latest available version}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.