Changeset 99503


Ignore:
Timestamp:
Nov 8, 2012, 12:17:04 AM (11 years ago)
Author:
ryandesign@…
Message:

cairo: update to 1.12.8; only blacklist old clang (#34137); remove legacy no_x11 and x11_xcb compatibility variants

Location:
trunk/dports/graphics/cairo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/cairo/Portfile

    r97300 r99503  
    1010conflicts                   cairo-devel
    1111set my_name                 cairo
    12 version                     1.12.2
    13 revision                    1
     12version                     1.12.8
    1413categories                  graphics
    1514maintainers                 ryandesign
     
    3029                            available (e.g. through the X Render Extension).
    3130
    32 checksums                   rmd160  0174a5110f5f4c9ff15da984e0602dfd04643a63 \
    33                             sha256  b786bc4a70542bcb09f2d9d13e5e6a0c86408cbf6d1edde5f0de807eecf93f96
     31checksums                   rmd160  b27be3ba3262bdd3a5ca08c037c5df3fa1c11756 \
     32                            sha256  8fbb6fc66117ab4100bad830cb4479497e53c6f3facb98bf05c8d298554ebdd9
     33
     34# freedesktop is down at the moment...
     35master_sites-append         ftp://distfiles.pld-linux.org/distfiles/by-md5/8/b/8b3dcade859c44fb7e56fc68edfe9a45
    3436
    3537depends_build               port:pkgconfig
     
    5557# Prevent cairo from using librsvg, libspectre, poppler.
    5658patchfiles-append           patch-configure.diff
     59
     60if {${configure.compiler} == "clang" && [file exists ${configure.cc}]} {
     61    # https://trac.macports.org/ticket/34137
     62    set clang_minimum_version 318.0.61
     63    regexp {/clang-([0-9.]+)} [exec ${configure.cc} -v 2>@1] -> clang_installed_version
     64    if {[vercmp ${clang_installed_version} ${clang_minimum_version}] < 0} {
     65        compiler.blacklist  clang
     66    }
     67}
    5768
    5869pre-configure {
     
    8596configure.args-append       ac_cv_prog_GS=""
    8697
    87 variant opengl requires x11 conflicts no_x11 description {Add OpenGL graphics interface} {
     98variant opengl requires x11 description {Add OpenGL graphics interface} {
    8899    depends_lib-append      port:mesa
    89100    archcheck.files-append  lib/libGL.dylib
     
    103114}
    104115
    105 # https://trac.macports.org/ticket/34137
    106 if {${configure.compiler}=="clang"} {
    107     configure.compiler  llvm-gcc-4.2
    108 }
    109 
    110116platform darwin 9 {
    111117    configure.compiler      gcc-4.2
    112118}
    113119
    114 variant no_x11 conflicts opengl x11_xcb x11 description {Legacy compatibility variant} {}
    115 variant x11 conflicts no_x11 description {Enable X11 support} {
     120variant x11 {
    116121    depends_lib-append      port:xrender port:xorg-xcb-util
    117122    configure.args-delete   --disable-xlib \
     
    128133}
    129134
    130 variant x11_xcb requires x11 conflicts no_x11 description {Legacy compatibility variant} {}
    131 
    132 if {[variant_isset no_x11]} {
    133     default_variants -x11
    134 } else {
    135     default_variants +x11
    136 }
    137 
    138135test.run                    yes
    139136test.target                 check
  • trunk/dports/graphics/cairo/files/patch-configure.diff

    r91886 r99503  
    1 --- configure.orig      2012-03-23 14:35:31.000000000 -0500
    2 +++ configure   2012-04-12 06:11:54.000000000 -0500
    3 @@ -30131,7 +30131,7 @@
     1--- configure.orig      2012-11-04 08:23:41.000000000 -0600
     2+++ configure   2012-11-06 13:41:24.000000000 -0600
     3@@ -30512,7 +30512,7 @@
    44 
    55 
     
    1010 any2ppm_ps=no
    1111 if test "x$use_ps" = "xyes"; then
    12 @@ -30528,7 +30528,7 @@
     12@@ -30909,7 +30909,7 @@
    1313 
    1414 
     
    1919 any2ppm_pdf=no
    2020 if test "x$use_pdf" = "xyes"; then
    21 @@ -30898,7 +30898,7 @@
     21@@ -31279,7 +31279,7 @@
    2222 
    2323 
Note: See TracChangeset for help on using the changeset viewer.