koffice version 1.6.3 for Mac OS X 10.5 Leopard
Wednesday the 14th of May, 2008

    koffice  most recent diff


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



      # $Id: Portfile 33384 2008-01-26 02:11:52Z ryandesign macports.org $

      #Synced with Fink, Version 1.6.3-1024

      PortSystem 1.0
      Name: koffice
      Version: 1.6.3
      revision 2
      set kdeadmin kde-admindir-790
      Category: kde
      Maintainers: nomaintainer
      Description: KDE office suite. NB KDE sound does not work.
      Long Description: ${description}
      Platform: darwin
      Homepage: http://www.koffice.org/
      master_sites kde:stable/${name}-${version}/src/:koffice163 http://ranger.users.finkproject.org/distfiles/:admin http://ranger.befunk.com/fink/:admin http://astrange.ithinksw.net/~astrange/ranger-fink/:admin http://www.southofheaven.net/befunk/:admin
      use_bzip2 yes
      distname ${name}-${version}
      distfiles ${distname}.tar.bz2:koffice163 ${kdeadmin}.tar.bz2:admin
      depends_build port:autoconf port:unsermake
      depends_lib port:kdebase3 port:ImageMagick port:lcms port:libwpd port:mysql4 port:ruby port:wv2
      # port:python24 can't be found. looking for .so
      # port:postgresql80 can't be found. looking for .so

      checksums ${distname}.tar.bz2 md5 386d388094734f9759977c3267098e30 ${kdeadmin}.tar.bz2 md5 8a098eeb808331ddf5912f7a8a184dd5

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

      patchfiles koffice-tiger.patch.bz2 CVE-2007-3387_4352_5392_5393.patch
      patch {
      foreach file $patchfiles {
      if {[regexp "\.bz2$" ${file}]} {
      system "cd ${worksrcpath} && bzip2 -dc ${filespath}/${file} | sed -e 's, FINKPREFIX ,${prefix},g' | patch -p1"
      } else {
      system "cd ${worksrcpath} && cat ${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
      }
      }

      configure.args --enable-mysql --with-distribution='MacPorts/Mac OS X' --without-arts
      # (libpqxx is missing.)
      # --enable-pgsql --with-pgsqlincdir=${prefix}/include/pgsql8 --with-pgsqllibdir=${prefix}/lib/pgsql8 --with-pqxx-includes=${prefix}/include --with-pqxx-libraries=${prefix}/lib

      configure {}
      build { system "cd ${worksrcpath} && ./CompileScript.sh" }
      destroot { system "cd ${worksrcpath} && ./InstallScript.sh" }

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

      platform darwin 7 {
      patchfiles-delete koffice-tiger.patch.bz2
      patchfiles-append koffice-panther.patch.bz2
      post-patch {
      # if {[variant_isset with_ruby]} {
      system "perl -pi -e \"s|-bundle|-bundle -bundle_loader /usr/lib/crt1.o|g\" ${worksrcpath}/admin/libtool.m4.in"
      # }
      }
      }

      platform darwin 9 {
      post-patch {
      reinplace "s|CFLAGS=\"-Os -fPIC\"|CFLAGS=\"-Os -fPIC -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\"|" ${worksrcpath}/environment-helper.sh
      }
      }

      universal_variant no

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

     Where to find more information:

    Darwin Ports



    image test