source: trunk/dports/x11/gtk28/Portfile @ 38750

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

nomaintainer ports: allow pango or pango-devel to satisfy pango dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 38750 2008-07-30 07:07:11Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            gtk28
5version         2.8.20
6categories      x11
7maintainers     nomaintainer
8description     Gimp ToolKit version 2
9homepage        http://www.gtk.org/
10platforms       darwin
11
12long_description This is GTK+ version 2.x.  GTK+, which stands for Gimp \
13                 ToolKit, is a library for creating GUIs for the X \
14                 Windows System.
15
16master_sites    ftp://ftp.gtk.org/pub/gtk/v2.8 \
17                gnome:sources/gtk+/2.8
18
19distname        gtk+-${version}
20checksums       md5 74e7ca98194f1fadfe906e66d763d05d \
21                sha1 8ea2449ff139b8bc457f8b5bcdcad93b02cfba9e \
22                rmd160 d20254de9e5b37b19f432758fbd78fff4c6baf1e
23
24use_bzip2       yes
25
26depends_lib     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 port:tiff port:libpng port:atk path:${prefix}/lib/pkgconfig/pango.pc:pango \
27                port:gettext lib:libX11.6:XFree86
28
29configure.ldflags-append        "-lpango-1.0"
30configure.cppflags-append       "-no-cpp-precomp -DX_LOCALE"
31configure.cflags        "-O3 -funroll-loops -fstrict-aliasing"
32
33configure.args  --disable-shm --disable-gtk-doc --with-included-loaders \
34                --mandir=${prefix}/share/man
35
36build.args      CFLAGS+="-I${x11prefix}/include"
37
38platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }
39
40platform darwin 8 { patchfiles-append patch-gtk-xdgmime-xdgmimecache.c \
41                    patch-gtk-gdk-x11-gdkspawn-x11.c }
42
43post-patch      { reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c
44                  reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}|g" ${worksrcpath}/gtk/gtkicontheme.c }
45
46post-destroot   { system "install -d -m 755 ${destroot}${prefix}/etc/gtk-2.0"
47                  system "cp ${filespath}/gdk-pixbuf.loaders ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
48                  reinplace "s|__PREFIX__|${prefix}|g" "${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
49                  system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/gtk-query-immodules-2.0 ${destroot}${prefix}/lib/gtk-2.0/2.4.0/immodules/*.so | sed -e 's|${destroot}||g' > ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" }
50
51pre-activate {
52        if { [file exists ${prefix}/lib/libgtk-x11-2.0.dylib] } {
53                return -code error "\nThis port conflicts with gtk2.  Please uninstall (or deactivate) the\ngtk2 port and try reinstalling this port.\n"
54        }
55}
56
57post-activate   { system "gdk-pixbuf-query-loaders ${prefix}/lib/gtk-2.0/2.4.0/loaders/*.so > ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" }
Note: See TracBrowser for help on using the repository browser.