[72531] trunk/dports/graphics

devans at macports.org devans at macports.org
Tue Oct 19 13:26:28 PDT 2010


Revision: 72531
          http://trac.macports.org/changeset/72531
Author:   devans at macports.org
Date:     2010-10-19 13:26:24 -0700 (Tue, 19 Oct 2010)
Log Message:
-----------
gdk-pixbuf2: new port, gdk-pixbuf-2.0 lib, split from gtk2 in version 2.22.

Added Paths:
-----------
    trunk/dports/graphics/gdk-pixbuf2/
    trunk/dports/graphics/gdk-pixbuf2/Portfile

Added: trunk/dports/graphics/gdk-pixbuf2/Portfile
===================================================================
--- trunk/dports/graphics/gdk-pixbuf2/Portfile	                        (rev 0)
+++ trunk/dports/graphics/gdk-pixbuf2/Portfile	2010-10-19 20:26:24 UTC (rev 72531)
@@ -0,0 +1,69 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem                  1.0
+
+name                        gdk-pixbuf2
+set my_name                 gdk-pixbuf
+version                     2.22.0
+set branch                  [join [lrange [split ${version} .] 0 1] .]
+categories                  graphics
+maintainers                 devans openmaintainer
+license                     GPLv2
+homepage                    http://www.gtk.org/
+platforms                   darwin
+distname                    ${my_name}-${version}
+use_bzip2                   yes
+
+description                 The gdk-pixbuf-2.0 library
+
+long_description            ${description}, previously bundled with gtk2, is \
+                            packaged separately as of gtk2 2.22.
+
+master_sites                gnome:sources/${my_name}/${branch}/ \
+                            ftp://ftp.gtk.org/pub/${my_name}/${branch}/
+
+checksums                   md5     0447e70f7bada542182d12e6459442b0 \
+                            sha1    80c25eaa08b22ebab24b98e88883ff615240d7cf \
+                            rmd160  6089a4f48588d8252ff8ea06db7f395d1d3a43f0
+
+depends_build               port:pkgconfig
+
+depends_lib                 path:lib/pkgconfig/glib-2.0.pc:glib2 \
+                            port:libpng \
+                            port:jasper \
+                            port:tiff
+
+pre-configure {
+    if { [file exists ${prefix}/lib/pkgconfig/gdk-pixbuf-2.0.pc] } {
+        set pixbuf_version [lindex [split [exec ${prefix}/bin/pkg-config --modversion gdk-pixbuf-2.0] . ] 1]
+        set pixbuf_min_version 22
+        if { ${pixbuf_version} < ${pixbuf_min_version} } {
+            ui_msg \
+"
+      A version of gtk2 prior to 2.${pixbuf_min_version}.0 is currently installed.
+      
+      To upgrade to gtk2 version ${version} or later, installing gdk-pixbuf2,
+      please execute these commands:
+
+          sudo port -f deactivate gtk2
+          sudo port install gtk2
+"
+            return -code error "deactivate outdated gtk2 port."
+        }
+    }
+}
+
+configure.args              --with-libjasper \
+                            --enable-introspection=no
+
+test.run                    yes
+test.target                 check
+
+post-activate {
+        system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache"
+}
+
+livecheck.type              regex
+livecheck.url               http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
+livecheck.regex             {LATEST-IS-(\d+(?:\.\d+)*)}


Property changes on: trunk/dports/graphics/gdk-pixbuf2/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101019/83af01b2/attachment.html>


More information about the macports-changes mailing list