33 | | extract.only ${distname}.tar.bz2 |
34 | | post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" } |
35 | | |
36 | | patchfiles |
37 | | patch { |
38 | | foreach f $patchfiles { |
39 | | system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1" |
40 | | } |
41 | | 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/*" |
42 | | system "echo \"KDE_ENABLE_HIDDEN_VISIBILITY\" >> ${worksrcpath}/configure.in.in" |
43 | | } |
44 | | |
45 | | post-patch { |
46 | | reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh |
47 | | reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh |
48 | | reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh |
49 | | reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh |
50 | | foreach f {CompileScript.sh InstallScript.sh} { |
51 | | copy ${filespath}/${f} ${worksrcpath} |
52 | | reinplace "s|%p|${prefix}|g" ${worksrcpath}/${f} |
53 | | reinplace "s|%N|${name}|g" ${worksrcpath}/${f} |
54 | | reinplace "s|%v|${version}|g" ${worksrcpath}/${f} |
55 | | reinplace "s|%r|${revision}|g" ${worksrcpath}/${f} |
56 | | reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${f} |
57 | | reinplace "s|%d|${destroot}|g" ${worksrcpath}/${f} |
58 | | reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${f} |
59 | | file attributes ${worksrcpath}/${f} -permissions 0755 |
60 | | } |
61 | | } |
62 | | |
63 | | configure.args --with-distribution='MacPorts/Mac OS X' --without-arts |
64 | | |
65 | | use_configure no |
66 | | |
67 | | use_parallel_build yes |
68 | | build.env MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263 |
69 | | build.cmd ./CompileScript.sh |
70 | | |
71 | | destroot.cmd ./InstallScript.sh |
72 | | post-destroot { |
73 | | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
74 | | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL README TODO ${destroot}${prefix}/share/doc/${name} |
75 | | } |
| 22 | configure.args-append ../${distname} |