# $Id: Portfile,v 1.7 2006/04/21 19:33:21 takanori Exp $ #Synced with Fink, Version 1.5.0-1021 PortSystem 1.0 name koffice version 1.5.0 set kdeadmin kde-admindir-full-3.5.2 categories kde maintainers ben@opendarwin.org takanori@opendarwin.org description KDE office suite. \ NB KDE sound does not work. platforms darwin master_sites kde:unstable/${name}-1.5-rc1/src \ http://ranger.befunk.com/fink/:admin extract.suffix .tar.bz2 use_bzip2 yes distname ${name}-${version}-rc1 distfiles ${distname}.tar.bz2 ${kdeadmin}.tar.bz2:admin depends_build port:autoconf \ port:unsermake depends_lib port:kdebase3 \ port:ImageMagick \ port:lcms \ port:libwpd \ port:mysql4 \ port:wv2 # port:postgresql8 \ can't be found. looking for .so checksums ${distname}.tar.bz2 md5 e9346977d18c67185d5b50f49ee8225b \ ${kdeadmin}.tar.bz2 md5 f75aad639083649076dde163520f9071 extract.only ${distname}.tar.bz2 post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" } patchfiles koffice.patch patch { cd ${worksrcpath} foreach file $patchfiles { system "sed -e 's,@FINKPREFIX@,${prefix},g' ${portpath}/${filesdir}/${file} | patch -p1" } } post-patch { reinplace "s|lib/freetype219/||g" ${worksrcpath}/environment-helper.sh reinplace "s|include/qt|include/qt3|g" ${worksrcpath}/environment-helper.sh reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh foreach file [glob ${worksrcpath}/admin/*] { reinplace "s|-O2|-Os|g" $file reinplace "s|doc/HTML|doc/kde|g" $file reinplace "s|/usr/share/doc/packages/qt3/html|${prefix}/share/doc/qt3/html|g" $file } foreach file {CompileScript.sh InstallScript.sh} { file copy ${portpath}/${filesdir}/${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='DarwinPorts/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 6 { depends_lib-append lib:libdl:dlcompat }