source: trunk/dports/x11/gtk2/Portfile @ 23764

Last change on this file since 23764 was 23764, checked in by mij@…, 14 years ago

Drop maintainership on my ports. This is mainly because a) I no longer
use most of these, and b) I don't really have the time to maintain them
anymore.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 23764 2007-04-09 04:51:25Z mij@macports.org $
2
3PortSystem 1.0
4name            gtk2
5version         2.10.11
6categories      x11
7maintainers     nomaintainer@macports.org
8description     Gimp ToolKit version 2
9homepage        http://www.gtk.org/
10platforms       darwin
11
12long_description \
13                This is GTK+ version 2.x.  GTK+, which stands for Gimp \
14                ToolKit, is a library for creating GUIs for the X Windows \
15                System.
16
17master_sites    gnome:sources/gtk+/2.10 \
18                ftp://ftp.gtk.org/pub/gtk/v2.10 \
19                http://ftp.gtk.org/pub/gtk/v2.10
20
21distname        gtk+-${version}
22
23checksums       md5 3b32eab43bf5195d981867d25ba55d66 \
24                sha1 3c68f3fa13ab72f6b190cbe958813d29955042e2 \
25                rmd160 2c1297ace8c6893fdf6e682e7f7faabdb1866b3a
26               
27use_bzip2       yes
28
29depends_lib     port:glib2 port:tiff port:libpng port:atk port:pango \
30                port:gettext lib:libX11.6:XFree86
31
32pre-configure {
33        if {[variant_isset quartz]} {
34                if { ![file exists ${prefix}/include/cairo/cairo-quartz.h] } {
35                        ui_msg "\nYou must first build cairo with the quartz variant enabled.  Please\nuninstall (or deactivate) the cairo port and reinstall by running:\n\n\"port install cairo +quartz\"\n"
36                        exit 1
37                }
38        }
39        if {[file exists ${prefix}/bin/cups-config]} {
40                ui_msg "\nThe cups-headers port may prevent building this port.  Please uninstall\n(or deactivate) cups-headers and restart the build.\n"
41                exit 1
42        }
43}
44
45configure.env   LDFLAGS="-L${prefix}/lib -lpango-1.0" \
46                CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DX_LOCALE" \
47                CFLAGS="-O3 -funroll-loops -fstrict-aliasing"
48
49configure.args  --disable-shm --disable-gtk-doc --with-included-loaders \
50                --mandir=${prefix}/share/man
51
52build.args      CFLAGS+="-I${x11prefix}/include"
53
54platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }
55
56variant quartz { configure.args-append --with-gdktarget=quartz }
57
58post-patch      { reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c
59                  reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}|g" ${worksrcpath}/gtk/gtkicontheme.c }
60
61post-destroot   { system "install -d -m 755 ${destroot}${prefix}/etc/gtk-2.0"
62                  system "cp ${filespath}/gdk-pixbuf.loaders ${destroot}${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
63                  reinplace "s|__PREFIX__|${prefix}|g" "${destroot}/${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
64                  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.10.0/immodules/*.so | sed -e 's|${destroot}||g' > ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" }
65
66post-activate   { system "gdk-pixbuf-query-loaders ${prefix}/lib/gtk-2.0/2.10.0/loaders/*.so > ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" }
Note: See TracBrowser for help on using the repository browser.