source: trunk/dports/kde/kdegraphics3/Portfile @ 69735

Last change on this file since 69735 was 65164, checked in by takanori@…, 10 years ago

kdegraphics3: updated xpdf to 3.02pl4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 65164 2010-03-23 05:43:34Z takanori@macports.org $
2
3#Synced with Fink, revision 1.32
4
5PortSystem 1.0
6
7name            kdegraphics3
8version         3.5.10
9revision        4
10set kdeadmin    kde-admindir-1502
11categories      kde kde3
12maintainers     nomaintainer
13description     KDE graphics. \
14                NB No KDE sound support.
15long_description ${description}
16platforms       darwin
17homepage        http://www.kde.org/
18master_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
23use_bzip2       yes
24distname        kdegraphics-${version}
25distfiles       ${distname}.tar.bz2:kde \
26                ${kdeadmin}.tar.bz2:admin
27dist_subdir     kde3
28depends_build   port:autoconf263 \
29                port:unsermake
30depends_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
41checksums       ${distname}.tar.bz2 md5 a09094b5357d8cd5c49d45b5d291dcfe \
42                ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3
43
44extract.only    ${distname}.tar.bz2
45post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
46
47patchfiles      kdegraphics3.patch dp01.patch
48patch           {
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}
54post-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
76configure.args  --without-kamera --with-imlib-config=${prefix}/bin --with-distribution='MacPorts/Mac OS X' --without-arts
77
78use_configure       no
79
80use_parallel_build  yes
81build.env           MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263
82build.cmd           ./CompileScript.sh
83
84destroot.cmd        ./InstallScript.sh
85post-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
90universal_variant       no
91
92livecheck.type  none
Note: See TracBrowser for help on using the repository browser.