Download and Install libiconv version 1.12 on Mac OS X
Thursday the 21st of August, 2008

    libiconv  most recent diff


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



      # $Id: Portfile 37209 2008-05-29 22:07:48Z ryandesign macports.org $

      PortSystem 1.0

      Name: libiconv
      Version: 1.12
      Category: textproc
      Maintainers: ryandesign
      Platform: darwin freebsd linux
      Homepage: http://www.gnu.org/software/libiconv/
      distfiles ${distname}${extract.suffix}:gnu
      extract.only ${distname}${extract.suffix}

      master_sites gnu::gnu http://www2d.biglobe.ne.jp/~msyk/software/libiconv/:cp932fix

      Description: Character set conversion library

      Long Description: A character-set conversion library which implements the iconv() API for dealing with unicode and other types of conversion.

      checksums ${distname}${extract.suffix} md5 c2be282595751535a618ae0edeb8f648 sha1 a5738d7dfbbd01c49e8ce026ea4ffa0f01af0179 rmd160 74a63c1a2963ac1729c1ac7adfec8fd397a685bd ${distname}-cp932-devel.patch.gz md5 124d240bff22e20b86e86d8c8e3bae1c sha1 d989b1ce0a829fa3a12c08c3634efd5f169b399a rmd160 2042116888ee28572c1f7bcc2756e4a29edfbad0

      depends_build port:gperf

      patchfiles patch-utf8mac.diff patch-src-Makefile.in-darwin.diff

      configure.cppflags
      configure.ldflags
      configure.args --enable-static --mandir=${prefix}/share/man --docdir=${prefix}/share/doc/${name}-${version} --without-libiconv-prefix --without-libintl-prefix --disable-nls --enable-extra-encodings

      pre-build {
      if {![variant_isset disable_utf8mac] || [variant_isset enable_cp932fix]} {
      system "cd ${worksrcpath} && make -f Makefile.devel"
      }
      }

      test.run yes
      test.target check

      platform darwin 7 {
      build.env-append MACOSX_DEPLOYMENT_TARGET=10.3
      configure.env-append MACOSX_DEPLOYMENT_TARGET=10.3
      }

      platform darwin 8 {
      build.env-append MACOSX_DEPLOYMENT_TARGET=10.4
      configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4
      if {[variant_isset universal]} {
      # Fix universal build on PowerPC
      configure.ldflags-append "-isysroot ${sysroot}"
      }
      }

      platform freebsd {
      patchfiles-append patch-Makefile.devel
      pre-fetch { variant_set disable_utf8mac }
      }

      platform linux {
      pre-fetch { variant_set disable_utf8mac }
      }

      post-destroot {
      if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
      delete ${destroot}${prefix}/lib/charset.alias
      }
      }

      # Do not support UTF-8-MAC encoding
      Variant: disable_utf8mac {
      patchfiles-delete patch-utf8mac.diff
      }

      # Do not support extra encodings
      Variant: disable_extra_encodings {
      configure.args-delete --enable-extra-encodings
      }

      # Apply a patch to fix the conversion problem between Shift-JIS and Unicode (See Microsoft KB Q170559)
      Variant: enable_cp932fix {
      distfiles-append ${distname}-cp932-devel.patch.gz:cp932fix
      post-patch {
      system "cd ${worksrcpath} && gzip -dc '${distpath}/${distname}-cp932-devel.patch.gz' | patch -p1"
      }
      }

      livecheck.check freshmeat

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

     Where to find more information:

    Darwin Ports



    image test