# $Id: Portfile 20193 2006-10-27 18:23:25Z takanori@macports.org $ #Synced with Fink, Version 3.5.4-1021 PortSystem 1.0 name kdeaccessibility3 version 3.5.4 set kdeadmin kde-admindir-252 categories kde maintainers ben@macports.org takanori@macports.org description KDE accessibility tools. \ NB No KDE sound support. long_description ${description} platforms darwin homepage http://www.kde.org/ master_sites opendarwin::kde354 \ opendarwin::admin # kde:stable/${version}/src # http://ranger.befunk.com/fink/:admin use_bzip2 yes distname kdeaccessibility-${version} distfiles ${distname}.tar.bz2:kde354 \ ${kdeadmin}.tar.bz2:admin depends_build port:autoconf \ port:unsermake depends_lib port:kdebase3 # port:freetts # port:gstreamer checksums ${distname}.tar.bz2 md5 bc64350a56a585e4d2c88fe3fc8b24f8 \ ${kdeadmin}.tar.bz2 md5 54a89925e71bd32f759c81b312ad0b9e extract.only ${distname}.tar.bz2 post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" } patchfiles 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 } } configure.args --enable-kttsd-gstreamer --with-distribution='MacPorts/Mac OS X' --without-arts 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} COPYING INSTALL ${destroot}${prefix}/share/doc/${name} }