a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21403 2007-01-23 07:26:08Z takanori@macports.org $
#Synced with Fink, Version 3.5.5-1021
PortSystem 1.0
name kdelibs3
version 3.5.5
revision 1
set kdeadmin kde-admindir-429
categories kde
maintainers nomaintainer@macports.org
description Essential libraries for KDE applications. \
NB No KDE sound support.
long_description ${description}
platforms darwin
homepage http://www.kde.org/
master_sites kde:stable/${version}/src/:kde355 \
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
# opendarwin::kde355
# opendarwin::admin
use_bzip2 yes
distname kdelibs-${version}
distfiles ${distname}.tar.bz2:kde355 \
${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 \
port: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
checksums ${distname}.tar.bz2 md5 2cba792e3b0a766431b837c8ef924117 \
${kdeadmin}.tar.bz2 md5 73186bf0bdabf96c9f7d559de56d3772
extract.only ${distname}.tar.bz2
post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
patchfiles kdelibs3-unified.patch patch-CVE-2006-4811
patch {
cd ${worksrcpath}
foreach file $patchfiles {
system "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;' 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|Monaco|g" ${worksrcpath}/darwin/${f}
reinplace "s|hintmedium|hintnone|g" ${worksrcpath}/darwin/${f}
}
}
configure.args --enable-cups --with-ldap=framework --with-gssapi=framework --with-distribution='MacPorts/Mac OS X' --without-arts
configure {
if {[file exists ${prefix}/bin/cups-config]} {
ui_msg "port:cups-headers may prevent building this port."
ui_msg "Please uninstall (or deactivate) cups-headers and restart the build."
exit 1
}
}
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} COPYING COPYING.LIB INSTALL ${destroot}${prefix}/share/doc/${name}
}
platform darwin 9 {}
platform darwin 8 {}
platform darwin 7 {}
platform darwin 6 {
ui_msg "Sorry, your platform is no longer supported."
exit 1
}
variant apidox {
depends_lib-append port:doxygen
post-patch { foreach f {CompileScript.sh InstallScript.sh} { reinplace "s|#apidox#||g" ${worksrcpath}/${f} }}
}
livecheck.check none