source: trunk/dports/kde/kdegames3/Portfile @ 50045

Last change on this file since 50045 was 50045, checked in by takanori@…, 8 years ago

KDE 3.5.10

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 50045 2009-04-23 09:53:52Z takanori@macports.org $
2
3#Synced with Fink, revision 1.27
4
5PortSystem 1.0
6name            kdegames3
7version         3.5.10
8set kdeadmin    kde-admindir-1502
9categories      kde kde3
10maintainers     nomaintainer
11description     KDE games. \
12                NB No KDE sound support.
13long_description ${description}
14platforms       darwin
15homepage        http://www.kde.org/
16master_sites    kde:stable/${version}/src/:kde \
17                http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
18                http://ranger.befunk.com/fink/kde-admindir/:admin \
19                http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
20                http://www.southofheaven.net/befunk/kde-admindir/:admin
21use_bzip2       yes
22distname        kdegames-${version}
23distfiles       ${distname}.tar.bz2:kde \
24                ${kdeadmin}.tar.bz2:admin
25dist_subdir     kde3
26depends_build   port:autoconf \
27                port:unsermake
28depends_lib     port:kdebase3
29#               port:libcapsinetwork
30#               port:libmath++
31
32checksums       ${distname}.tar.bz2 md5 5533b3886cbb74180933fe3f3d209031 \
33                ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3
34
35extract.only    ${distname}.tar.bz2
36post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
37
38patchfiles     
39patch           {
40                foreach f $patchfiles {
41                    system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1"
42                }
43                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/*"
44}
45post-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
63configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
64
65use_configure       no
66use_parallel_build  yes
67build           { system "cd ${worksrcpath} && MAKEFLAGS=\"-j ${build.jobs}\" ./CompileScript.sh" }
68destroot        { system "cd ${worksrcpath} && ./InstallScript.sh" }
69
70post-destroot   {
71                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
72                xinstall -m 644 -W ${worksrcpath} COPYING INSTALL README ${destroot}${prefix}/share/doc/${name}
73}
74
75universal_variant       no
76
77livecheck.check none
Note: See TracBrowser for help on using the repository browser.