[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.17

1.17    ! dbj         1: # $NetBSD: options.mk,v 1.16 2014/05/31 10:16:40 pho 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
1.17    ! dbj        33: CONFIGURE_ARGS+=       --disable-xcb
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.17    ! dbj        39: CONFIGURE_ARGS+=       --disable-xcb
1.1       minskim    40: .endif
1.16      pho        41:
                     42: ###
                     43: ### Quartz backend
                     44: ###
                     45: # Quartz backend interacts badly with our library stack. The most
                     46: # notable issue is that when quartz-font is enabled, cairo will never
                     47: # use fontconfig but instead uses CoreGraphics API to find fonts in
                     48: # system-default font paths; as a result, any fonts installed with
                     49: # pkgsrc will never be found. OTOH fontconfig by default searches for
                     50: # fonts in MacOS X system-default paths too so sticking with it will
                     51: # not be a problem.
                     52: .if !empty(PKG_OPTIONS:Mquartz)
                     53: CONFIGURE_ARGS+=       --enable-quartz
                     54: CONFIGURE_ARGS+=       --enable-quartz-font
                     55: CONFIGURE_ARGS+=       --enable-quartz-image
                     56: PLIST.quartz=          yes
                     57: WARNINGS+=             "You have enabled Quartz backend. No fonts installed with pkgsrc will be found."
                     58: .else
                     59: CONFIGURE_ARGS+=       --disable-quartz
                     60: CONFIGURE_ARGS+=       --disable-quartz-font
                     61: CONFIGURE_ARGS+=       --disable-quartz-image
                     62: .endif

CVSweb <webmaster@jp.NetBSD.org>