# $Id: Portfile,v 1.2 2006/02/27 04:18:25 ben Exp $ set kdeadmin kde-admindir-3.5.0-2 PortSystem 1.0 name kdetoys3 version 3.5.1 categories kde maintainers ben@opendarwin.org takanori@opendarwin.org description KDE toys. \ NB No KDE sound support. platforms darwin master_sites kde:stable/${version}/src \ http://ranger.befunk.com/fink/:admin extract.suffix .tar.bz2 use_bzip2 yes distname kdetoys-${version} distfiles ${distname}.tar.bz2 ${kdeadmin}.tar.bz2:admin depends_build port:autoconf \ port:automake depends_lib port:kdebase3 checksums ${distname}.tar.bz2 md5 d98d4f30a8aa6d43b0af06421d4d6586 \ ${kdeadmin}.tar.bz2 md5 444f6ccbe74646c5313dd0b4fa4b36ac extract.only ${distname}.tar.bz2 post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" } patchfiles kdetoys3.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 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 --includedir=${prefix}/include --libdir=${prefix}/lib --prefix=${prefix} --with-qt-dir=${prefix} --with-qt-includes=${prefix}/include/qt3 --with-extra-libs=${prefix}/lib --with-extra-includes=${prefix}/include --enable-mt --with-pic --enable-rpath --enable-shared=yes --enable-static=no --mandir=${destroot}${prefix}/share/man --with-xinerama --with-pam --disable-final --with-distribution='DarwinPorts/Mac OS X' --disable-dependency-tracking --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} AUTHORS COPYING INSTALL README ${destroot}${prefix}/share/doc/${name} } platform darwin 6 { depends_lib-append lib:libdl:dlcompat }