source: trunk/dports/kde/kdelibs3/Portfile @ 38077

Last change on this file since 38077 was 38077, checked in by ryandesign@…, 11 years ago

In all openmaintainer and nomaintainer ports and my ports, depend on glib2 via a path in ${prefix} so that either glib2 or glib2-devel can satisfy the dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# $Id: Portfile 38077 2008-07-05 21:37:56Z ryandesign@macports.org $
2
3#Synced with Fink, Version 3.5.8-1023
4
5PortSystem 1.0
6name            kdelibs3
7version         3.5.8
8revision        2
9set kdeadmin    kde-admindir-1024
10categories      kde
11maintainers     nomaintainer
12description     Essential libraries for KDE applications. \
13                NB No KDE sound support.
14long_description ${description}
15platforms       darwin
16homepage        http://www.kde.org/
17master_sites    kde:stable/${version}/src/:kde358 \
18                http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
19                http://ranger.befunk.com/fink/kde-admindir/:admin \
20                http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
21                http://www.southofheaven.net/befunk/kde-admindir/:admin
22use_bzip2       yes
23distname        kdelibs-${version}
24distfiles       ${distname}.tar.bz2:kde358 \
25                ${kdeadmin}.tar.bz2:admin
26depends_build   port:autoconf \
27                port:unsermake
28depends_lib     lib:libpoll:poll-emulator \
29                lib:libX11.6:XFree86 \
30                port:aspell \
31                port:bzip2 \
32                port:expat \
33                port:flex \
34                port:fontconfig \
35                port:freetype \
36                port:gettext \
37                path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
38                port:hicolor-icon-theme \
39                port:jasper \
40                port:jpeg \
41                port:libart_lgpl \
42                port:libidn \
43                port:libiconv \
44                port:libpng \
45                port:libxml2 \
46                port:libxslt \
47                port:lua \
48                port:pcre \
49                port:tiff \
50                port:openexr \
51                port:openssl \
52                port:perl5.8 \
53                port:pkgconfig \
54                port:qt3 \
55                port:Xft2 \
56                port:xrender \
57                port:zlib
58#               port:dbus
59#               port:dbus-qt3
60#               port:hal
61#depends_run    port:shared-mime-info
62
63checksums       ${distname}.tar.bz2 md5 acaa37e79e840d10dca326277a20863c \
64                ${kdeadmin}.tar.bz2 md5 d99491aa5d520fd1d70393a718019322
65
66extract.only    ${distname}.tar.bz2
67post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
68
69patchfiles      kdelibs3-unified.patch
70patch           {
71                foreach file $patchfiles {
72                    system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${file} | patch -p1"
73                }
74                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/*"
75}
76post-patch      {
77                reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
78                reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
79                reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
80                reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
81                foreach file {CompileScript.sh InstallScript.sh} {
82                    file copy ${filespath}/${file} ${worksrcpath}
83                    reinplace "s|%p|${prefix}|g" ${worksrcpath}/${file}
84                    reinplace "s|%N|${name}|g" ${worksrcpath}/${file}
85                    reinplace "s|%v|${version}|g" ${worksrcpath}/${file}
86                    reinplace "s|%r|${revision}|g" ${worksrcpath}/${file}
87                    reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${file}
88                    reinplace "s|%d|${destroot}|g" ${worksrcpath}/${file}
89                    reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${file}
90                    file attributes ${worksrcpath}/${file} -permissions 0755
91                }
92                foreach f {kdeglobals konsolerc} {
93                        # Monaco CY is not a standard font in Tiger.
94                        reinplace "s|Monaco CY|Bitstream Vera Sans Mono|g" ${worksrcpath}/darwin/${f}
95                        reinplace "s|Baghdad|Bitstream Vera Sans|g" ${worksrcpath}/darwin/${f}
96                }
97                system "echo \"\[FMSettings\]\nStandardFont=Bitstream Vera Sans,10,-1,5,50,0,0,0,0,0\" > ${worksrcpath}/darwin/kdesktoprc"
98}
99
100configure.args --enable-cups --with-ldap=framework --with-gssapi=framework --with-distribution='MacPorts/Mac OS X' --without-arts
101
102pre-configure   {
103                if {[file exists ${prefix}/bin/cups-config]} {
104                        return -code error "port:cups-headers may prevent building this port. Please uninstall (or deactivate) cups-headers and restart the build."
105                }
106}
107configure       {}
108use_parallel_build  yes
109build           { set makejobs [build_getmakejobs]
110                  system "cd ${worksrcpath} && MAKEFLAGS=\"${makejobs}\" ./CompileScript.sh" }
111destroot        { system "cd ${worksrcpath} && ./InstallScript.sh" }
112
113post-destroot   {
114                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
115                xinstall -m 644 -W ${worksrcpath} COPYING COPYING.LIB INSTALL ${destroot}${prefix}/share/doc/${name}
116}
117
118platform darwin 9 {}
119
120platform darwin 8 {}
121
122platform darwin 7 {}
123
124platform darwin 6 {
125                pre-fetch {
126                          return -code error "Sorry, your platform is no longer supported."
127                }
128}
129
130universal_variant       no
131
132variant with_doxygen    {
133                depends_lib-append port:doxygen
134                post-patch { foreach f {CompileScript.sh InstallScript.sh} { reinplace "s|#apidox#||g" ${worksrcpath}/${f} }}
135}
136
137variant with_libthai    {
138                depends_lib-append      port:libdatrie \
139                                        port:libthai
140                configure.args-append   --with-libthai=yes
141}
142
143livecheck.check none
Note: See TracBrowser for help on using the repository browser.