Changeset 19342


Ignore:
Timestamp:
Aug 30, 2006, 9:02:25 PM (14 years ago)
Author:
mij@…
Message:

Add quartz variant.

Requested by: Hadley Wickham <h.wickham@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/gtk2/Portfile

    r19251 r19342  
    44name            gtk2
    55version         2.10.2
     6revision        1
    67categories      x11
    78maintainers     mij@opendarwin.org
     
    2728                port:gettext lib:libX11.6:XFree86
    2829
     30pre-configure {
     31        if {[variant_isset quartz]} {
     32                if { ![file exists ${prefix}/include/cairo/cairo-quartz.h] } {
     33                        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"
     34                        exit 1
     35                }
     36        }
     37}
     38
    2939configure.env   LDFLAGS="-L${prefix}/lib -lpango-1.0" \
    3040                CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DX_LOCALE" \
     
    3848platform darwin 6 { patchfiles-append patch-gtk-xdgmime-xdgmimemagic.c }
    3949
     50variant quartz { configure.args-append --enable-gdktarget=quartz }
     51
    4052post-patch      { reinplace "s|xdg_data_dirs = \"/usr|xdg_data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/gtk/xdgmime/xdgmime.c
    4153                  reinplace "s|g_strdup (\"/usr|g_strdup (\"${prefix}|g" ${worksrcpath}/gtk/gtkicontheme.c }
Note: See TracChangeset for help on using the changeset viewer.