1 | # $Id: Portfile 65164 2010-03-23 05:43:34Z takanori@macports.org $ |
---|
2 | |
---|
3 | #Synced with Fink, revision 1.32 |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | |
---|
7 | name kdegraphics3 |
---|
8 | version 3.5.10 |
---|
9 | revision 4 |
---|
10 | set kdeadmin kde-admindir-1502 |
---|
11 | categories kde kde3 |
---|
12 | maintainers nomaintainer |
---|
13 | description KDE graphics. \ |
---|
14 | NB No KDE sound support. |
---|
15 | long_description ${description} |
---|
16 | platforms darwin |
---|
17 | homepage http://www.kde.org/ |
---|
18 | master_sites kde:stable/${version}/src/:kde \ |
---|
19 | http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \ |
---|
20 | http://ranger.befunk.com/fink/kde-admindir/:admin \ |
---|
21 | http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \ |
---|
22 | http://www.southofheaven.net/befunk/kde-admindir/:admin |
---|
23 | use_bzip2 yes |
---|
24 | distname kdegraphics-${version} |
---|
25 | distfiles ${distname}.tar.bz2:kde \ |
---|
26 | ${kdeadmin}.tar.bz2:admin |
---|
27 | dist_subdir kde3 |
---|
28 | depends_build port:autoconf263 \ |
---|
29 | port:unsermake |
---|
30 | depends_lib port:fribidi \ |
---|
31 | port:imlib \ |
---|
32 | port:kdebase3 \ |
---|
33 | port:lcms \ |
---|
34 | port:libusb-compat \ |
---|
35 | port:sane-backends |
---|
36 | # port:xpdf |
---|
37 | # bin:tex:texlive |
---|
38 | # port:libwww |
---|
39 | # port:poppler-qt3 |
---|
40 | |
---|
41 | checksums ${distname}.tar.bz2 md5 a09094b5357d8cd5c49d45b5d291dcfe \ |
---|
42 | ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3 |
---|
43 | |
---|
44 | extract.only ${distname}.tar.bz2 |
---|
45 | post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" } |
---|
46 | |
---|
47 | patchfiles kdegraphics3.patch dp01.patch |
---|
48 | patch { |
---|
49 | foreach f $patchfiles { |
---|
50 | system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1" |
---|
51 | } |
---|
52 | 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/*" |
---|
53 | } |
---|
54 | post-patch { |
---|
55 | reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh |
---|
56 | reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh |
---|
57 | reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh |
---|
58 | reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh |
---|
59 | foreach f {CompileScript.sh InstallScript.sh} { |
---|
60 | copy ${filespath}/${f} ${worksrcpath} |
---|
61 | reinplace "s|%p|${prefix}|g" ${worksrcpath}/${f} |
---|
62 | reinplace "s|%N|${name}|g" ${worksrcpath}/${f} |
---|
63 | reinplace "s|%v|${version}|g" ${worksrcpath}/${f} |
---|
64 | reinplace "s|%r|${revision}|g" ${worksrcpath}/${f} |
---|
65 | reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${f} |
---|
66 | reinplace "s|%d|${destroot}|g" ${worksrcpath}/${f} |
---|
67 | reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${f} |
---|
68 | file attributes ${worksrcpath}/${f} -permissions 0755 |
---|
69 | } |
---|
70 | |
---|
71 | foreach f {xpdf-3.02pl3.patch xpdf-3.02pl4.patch} { |
---|
72 | system "cd ${worksrcpath}/kpdf/xpdf && patch -p1 < ${filespath}/${f}" |
---|
73 | } |
---|
74 | } |
---|
75 | |
---|
76 | configure.args --without-kamera --with-imlib-config=${prefix}/bin --with-distribution='MacPorts/Mac OS X' --without-arts |
---|
77 | |
---|
78 | use_configure no |
---|
79 | |
---|
80 | use_parallel_build yes |
---|
81 | build.env MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263 |
---|
82 | build.cmd ./CompileScript.sh |
---|
83 | |
---|
84 | destroot.cmd ./InstallScript.sh |
---|
85 | post-destroot { |
---|
86 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
87 | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL README ${destroot}${prefix}/share/doc/${name} |
---|
88 | } |
---|
89 | |
---|
90 | universal_variant no |
---|
91 | |
---|
92 | livecheck.type none |
---|