source: trunk/dports/kde/kdeartwork3/Portfile @ 116843

Last change on this file since 116843 was 111978, checked in by jmr@…, 6 years ago

kdeartwork3: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 111978 2013-10-08 01:49:50Z jmr@macports.org $
2
3#Synced with Fink, revision 1.22
4
5PortSystem 1.0
6
7name            kdeartwork3
8version         3.5.10
9revision        1
10set kdeadmin    kde-admindir-1502
11categories      kde kde3
12license         GPL-2
13maintainers     nomaintainer
14description     KDE additional artwork. \
15                NB No KDE sound support.
16long_description ${description}
17platforms       darwin
18homepage        http://www.kde.org/
19master_sites    kde:stable/${version}/src/:kde \
20                http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
21                http://ranger.befunk.com/fink/kde-admindir/:admin \
22                http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
23                http://www.southofheaven.net/befunk/kde-admindir/:admin
24use_bzip2       yes
25distname        kdeartwork-${version}
26distfiles       ${distname}.tar.bz2:kde \
27                ${kdeadmin}.tar.bz2:admin
28dist_subdir     kde3
29depends_build   port:autoconf263 \
30                port:unsermake
31depends_lib     port:kdebase3
32#               port:xscreensaver
33
34checksums       ${distname}.tar.bz2 md5 6e6f089dc0f1dabb0f138641600d0b59 \
35                ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3
36
37extract.only    ${distname}.tar.bz2
38post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
39
40patchfiles     
41patch           {
42                foreach f $patchfiles {
43                    system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1"
44                }
45                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/*"
46}
47post-patch      {
48                reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
49                reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
50                reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
51                reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
52                foreach f {CompileScript.sh InstallScript.sh} {
53                    copy ${filespath}/${f} ${worksrcpath}
54                    reinplace "s|%p|${prefix}|g" ${worksrcpath}/${f}
55                    reinplace "s|%N|${name}|g" ${worksrcpath}/${f}
56                    reinplace "s|%v|${version}|g" ${worksrcpath}/${f}
57                    reinplace "s|%r|${revision}|g" ${worksrcpath}/${f}
58                    reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${f}
59                    reinplace "s|%d|${destroot}|g" ${worksrcpath}/${f}
60                    reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${f}
61                    file attributes ${worksrcpath}/${f} -permissions 0755
62                }
63}
64
65configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
66
67use_configure       no
68
69use_parallel_build  yes
70build.env           MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263
71build.cmd           ./CompileScript.sh
72
73destroot.cmd        ./InstallScript.sh
74post-destroot   {
75                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
76                xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/${name}
77}
78
79universal_variant       no
80
81livecheck.type  none
Note: See TracBrowser for help on using the repository browser.