make it optionally build without x11
This commit is contained in:
parent
ccb923b02e
commit
1233aaae20
2 changed files with 29 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.23 2013/02/16 11:18:06 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.24 2013/05/05 13:44:22 spz Exp $
|
||||
|
||||
DISTNAME= cairo-1.12.14
|
||||
PKGNAME= ${DISTNAME:S/-/-gobject-/}
|
||||
PKGREVISION= 1
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://cairographics.org/releases/
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
|
@ -28,16 +28,7 @@ CONFIGURE_ARGS+= --enable-ps
|
|||
|
||||
INSTALLATION_DIRS+= lib/pkgconfig
|
||||
|
||||
.if exists(/System/Library/Frameworks/Carbon.framework)
|
||||
CONFIGURE_ARGS+= --enable-quartz
|
||||
CONFIGURE_ARGS+= --enable-quartz-font
|
||||
CONFIGURE_ARGS+= --enable-quartz-image
|
||||
CONFIGURE_ARGS+= --disable-gl
|
||||
CONFIGURE_ARGS+= --disable-xlib
|
||||
CONFIGURE_ARGS+= --disable-xlib-xrender
|
||||
.else
|
||||
CONFIGURE_ARGS+= --enable-gl
|
||||
.endif
|
||||
.include "options.mk"
|
||||
|
||||
# For snprintf() and ctime_r()
|
||||
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
|
||||
|
|
26
graphics/cairo-gobject/options.mk
Normal file
26
graphics/cairo-gobject/options.mk
Normal file
|
@ -0,0 +1,26 @@
|
|||
# $NetBSD: options.mk,v 1.1 2013/05/05 13:44:23 spz Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.cairo-gobject
|
||||
PKG_SUPPORTED_OPTIONS= x11
|
||||
PKG_SUGGESTED_OPTIONS= x11
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
PLIST_VARS+= x11
|
||||
|
||||
###
|
||||
### decide between Quartz, GL or nothing
|
||||
###
|
||||
.if exists(/System/Library/Frameworks/Carbon.framework)
|
||||
CONFIGURE_ARGS+= --enable-quartz
|
||||
CONFIGURE_ARGS+= --enable-quartz-font
|
||||
CONFIGURE_ARGS+= --enable-quartz-image
|
||||
CONFIGURE_ARGS+= --disable-gl
|
||||
CONFIGURE_ARGS+= --disable-xlib
|
||||
CONFIGURE_ARGS+= --disable-xlib-xrender
|
||||
.else
|
||||
.if !empty(PKG_OPTIONS:Mx11)
|
||||
CONFIGURE_ARGS+= --enable-gl
|
||||
.endif
|
||||
.endif
|
||||
|
Loading…
Reference in a new issue