51 | | variant gcc44 conflicts gcc45 description {Build with GCC 4.4} { |
| 48 | configure.args-append --disable-gconf --disable-gkeyring |
| 49 | |
| 50 | if {[variant_isset no_x11]} { |
| 51 | default_variants +quartz |
| 52 | } |
| 53 | |
| 54 | if {![variant_isset quartz]} { |
| 55 | default_variants +x11 |
| 56 | } |
| 57 | |
| 58 | pre-fetch { |
| 59 | if {![variant_isset quartz] && ![variant_isset x11]} { |
| 60 | error "Either +x11 or +quartz is required" |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | pre-configure { |
| 65 | if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} { |
| 66 | set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] |
| 67 | set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] |
| 68 | if {[variant_isset quartz] && ${gtk_not_quartz}} { |
| 69 | error "+quartz variant selected, but gtk2+x11 is installed" |
| 70 | } elseif {[variant_isset x11] && ${gtk_not_x11}} { |
| 71 | error "+x11 variant selected, but gtk2+quartz is installed" |
| 72 | } |
| 73 | } else { |
| 74 | error "Cannot find gdkconfig.h" |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | variant quartz requires no_x11 conflicts x11 gcc44 gcc45 { |
| 79 | } |
| 80 | |
| 81 | variant x11 conflicts quartz description {Enable rendering in X11} { |
| 82 | } |
| 83 | |
| 84 | variant no_x11 { |
| 85 | } |
| 86 | |
| 87 | variant gcc44 conflicts gcc45 gcc46 quartz description {Build with GCC 4.4} { |
| 97 | variant gcc46 conflicts gcc44 gcc45 description {Build with GCC 4.6} { |
| 98 | depends_lib-append port:gcc46 |
| 99 | |
| 100 | configure.cc ${prefix}/bin/gcc-mp-4.6 |
| 101 | configure.cxx ${prefix}/bin/g++-mp-4.6 |
| 102 | configure.cpp ${prefix}/bin/cpp-mp-4.6 |
| 103 | |
| 104 | configure.cc_archflags |
| 105 | configure.cxx_archflags |
| 106 | configure.ld_archflags |
| 107 | |
| 108 | configure.universal_cflags |
| 109 | configure.universal_cxxflags |
| 110 | configure.universal_ldflags |
| 111 | configure.universal_args |
| 112 | |
| 113 | patchfiles-append patch-build-for-gcc46.diff |
| 114 | } |
| 115 | |
| 116 | variant gconf description {build with gconf} { |
| 117 | configure.args-delete --disable-gconf |
| 118 | configure.args-append --enable-gconf |
| 119 | depends_lib-append port:gconf |
| 120 | } |
| 121 | |
| 122 | variant gnome_keyring description {build with gnome-keyring} { |
| 123 | configure.args-delete --disable-gkeyring |
| 124 | configure.args-append --enable-gkeyring |
| 125 | depends_lib-append port:libgnome-keyring |
| 126 | } |
| 127 | |