[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / cairo

Annotation of pkgsrc/graphics/cairo/options.mk, Revision 1.16

1.16    ! pho         1: # $NetBSD: options.mk,v 1.15 2013/08/31 22:19:32 adam Exp $
1.1       minskim     2:
                      3: PKG_OPTIONS_VAR=       PKG_OPTIONS.cairo
1.5       wiz         4: PKG_SUPPORTED_OPTIONS= x11 xcb
1.16    ! pho         5: .if exists(/System/Library/Frameworks/Quartz.framework)
        !             6: PKG_SUPPORTED_OPTIONS+=        quartz
        !             7: .endif
1.5       wiz         8: PKG_SUGGESTED_OPTIONS= x11 xcb
1.1       minskim     9:
                     10: .include "../../mk/bsd.options.mk"
                     11:
1.16    ! pho        12: PLIST_VARS+=           x11 xcb quartz
1.4       jlam       13:
1.1       minskim    14: ###
1.5       wiz        15: ### X11 and XCB support (XCB implies X11)
1.1       minskim    16: ###
1.5       wiz        17: .if !empty(PKG_OPTIONS:Mx11) || !empty(PKG_OPTIONS:Mxcb)
1.7       adam       18: CONFIGURE_ARGS+=       --enable-xlib
                     19: CONFIGURE_ARGS+=       --enable-xlib-xrender
1.4       jlam       20: PLIST.x11=             yes
1.3       wiz        21: .include "../../graphics/MesaLib/buildlink3.mk"
1.15      adam       22: .include "../../x11/libX11/buildlink3.mk"
1.3       wiz        23: .include "../../x11/libXext/buildlink3.mk"
1.2       joerg      24: .include "../../x11/libXrender/buildlink3.mk"
1.15      adam       25: BUILDLINK_DEPMETHOD.libXt+=    build # only for configure
1.2       joerg      26: .include "../../x11/libXt/buildlink3.mk"
1.5       wiz        27:
1.7       adam       28: .  if !empty(PKG_OPTIONS:Mxcb)
1.5       wiz        29: CONFIGURE_ARGS+=       --enable-xcb
                     30: PLIST.xcb=             yes
1.7       adam       31: .  include "../../x11/libxcb/buildlink3.mk"
1.14      spz        32: .  else
                     33: CONFIGURE_ARGS+=       --enable-xcb=no
1.7       adam       34: .  endif
1.5       wiz        35:
1.1       minskim    36: .else
1.7       adam       37: CONFIGURE_ARGS+=       --disable-xlib
                     38: CONFIGURE_ARGS+=       --disable-xlib-xrender
1.1       minskim    39: .endif
1.16    ! pho        40:
        !            41: ###
        !            42: ### Quartz backend
        !            43: ###
        !            44: # Quartz backend interacts badly with our library stack. The most
        !            45: # notable issue is that when quartz-font is enabled, cairo will never
        !            46: # use fontconfig but instead uses CoreGraphics API to find fonts in
        !            47: # system-default font paths; as a result, any fonts installed with
        !            48: # pkgsrc will never be found. OTOH fontconfig by default searches for
        !            49: # fonts in MacOS X system-default paths too so sticking with it will
        !            50: # not be a problem.
        !            51: .if !empty(PKG_OPTIONS:Mquartz)
        !            52: CONFIGURE_ARGS+=       --enable-quartz
        !            53: CONFIGURE_ARGS+=       --enable-quartz-font
        !            54: CONFIGURE_ARGS+=       --enable-quartz-image
        !            55: PLIST.quartz=          yes
        !            56: WARNINGS+=             "You have enabled Quartz backend. No fonts installed with pkgsrc will be found."
        !            57: .else
        !            58: CONFIGURE_ARGS+=       --disable-quartz
        !            59: CONFIGURE_ARGS+=       --disable-quartz-font
        !            60: CONFIGURE_ARGS+=       --disable-quartz-image
        !            61: .endif

CVSweb <webmaster@jp.NetBSD.org>