Kdelibs3 version 3.5.8 - How to Download and Install on Mac OS X
Friday the 3rd of July, 2009

    kdelibs3  most recent diff


    version 3.5.8

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


      The kdelibs3 Portfile 41848 2008-11-11 07:36:32Z ryandesign macports.org $

      #Synced with Fink, Version 3.5.8-1023

      PortSystem 1.0
      Name: kdelibs3
      Version: 3.5.8
      Revision: 3
      set kdeadmin kde-admindir-1024
      Category: kde
      Maintainers: nomaintainer
      Description: Essential libraries for KDE applications. NB No KDE sound support.
      Long Description: ${description}
      Platform: darwin
      Homepage: http://www.kde.org/
      Master Sites: kde:stable/${version}/src/:kde358 http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin http://ranger.befunk.com/fink/kde-admindir/:admin http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin http://www.southofheaven.net/befunk/kde-admindir/:admin
      use_bzip2 yes
      distname kdelibs-${version}
      distfiles ${distname}.tar.bz2:kde358 ${kdeadmin}.tar.bz2:admin
      depends_build port:autoconf port:unsermake
      depends_lib lib:libpoll:poll-emulator lib:libX11.6:XFree86 port:aspell port:bzip2 port:expat port:flex port:fontconfig port:freetype port:gettext path:lib/pkgconfig/glib-2.0.pc:glib2 port:hicolor-icon-theme port:jasper port:jpeg port:libart_lgpl port:libidn port:libiconv port:libpng port:libxml2 port:libxslt port:lua port:pcre port:tiff port:openexr port:openssl port:perl5.8 port:pkgconfig port:qt3 port:Xft2 port:xrender port:zlib
      # port:dbus
      # port:dbus-qt3
      # port:hal
      #depends_run port:shared-mime-info

      Checksums: ${distname}.tar.bz2 md5 acaa37e79e840d10dca326277a20863c ${kdeadmin}.tar.bz2 md5 d99491aa5d520fd1d70393a718019322

      extract.only ${distname}.tar.bz2
      post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }

      Patch Files: kdelibs3-unified.patch patch-kdeui_kactionclasses.cpp.diff
      patch {
      foreach file $patchfiles {
      system "cd ${worksrcpath} && sed -e 's, FINKPREFIX ,${prefix},g' ${filespath}/${file} | patch -p1"
      }
      system "perl -pi -e 's,-O2,-Os,g; s,doc/HTML,doc/kde,g; s,/usr/share/doc/packages/qt3/html,${prefix}/share/doc/qt3/html,g;' ${worksrcpath}/admin/*"
      }
      post-patch {
      reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
      reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
      reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
      reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
      foreach file {CompileScript.sh InstallScript.sh} {
      file copy ${filespath}/${file} ${worksrcpath}
      reinplace "s|%p|${prefix}|g" ${worksrcpath}/${file}
      reinplace "s|%N|${name}|g" ${worksrcpath}/${file}
      reinplace "s|%v|${version}|g" ${worksrcpath}/${file}
      reinplace "s|%r|${revision}|g" ${worksrcpath}/${file}
      reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${file}
      reinplace "s|%d|${destroot}|g" ${worksrcpath}/${file}
      reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${file}
      file attributes ${worksrcpath}/${file} -permissions 0755
      }
      foreach f {kdeglobals konsolerc} {
      # Monaco CY is not a standard font in Tiger.
      reinplace "s|Monaco CY|Bitstream Vera Sans Mono|g" ${worksrcpath}/darwin/${f}
      reinplace "s|Baghdad|Bitstream Vera Sans|g" ${worksrcpath}/darwin/${f}
      }
      system "echo \"\[FMSettings\]\nStandardFont=Bitstream Vera Sans,10,-1,5,50,0,0,0,0,0\" > ${worksrcpath}/darwin/kdesktoprc"
      }

      configure.args --enable-cups --with-ldap=framework --with-gssapi=framework --with-distribution='MacPorts/Mac OS X' --without-arts

      pre-configure {
      if {[file exists ${prefix}/bin/cups-config]} {
      return -code error "port:cups-headers may prevent building this port. Please uninstall (or deactivate) cups-headers and restart the build."
      }
      }
      use_configure no
      use_parallel_build yes
      build { set makejobs [build_getmakejobs]
      system "cd ${worksrcpath} && MAKEFLAGS=\"${makejobs}\" ./CompileScript.sh" }
      destroot { system "cd ${worksrcpath} && ./InstallScript.sh" }

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath} COPYING COPYING.LIB INSTALL ${destroot}${prefix}/share/doc/${name}
      }

      platform darwin 9 {}

      platform darwin 8 {}

      platform darwin 7 {}

      platform darwin 6 {
      pre-fetch {
      return -code error "Sorry, your platform is no longer supported."
      }
      }

      universal_variant no

      Variant: with_doxygen description {Include API documentation} {
      depends_lib-append port:doxygen
      post-patch { foreach f {CompileScript.sh InstallScript.sh} { reinplace "s|#apidox#||g" ${worksrcpath}/${f} }}
      }

      Variant: with_libthai description {Add Thai language support} {
      depends_lib-append port:libdatrie port:libthai
      configure.args-append --with-libthai=yes
      }

      livecheck.check none

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.