Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Build cairo without X11 support on Mac #273

Merged
merged 2 commits into from May 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion cairo/build.sh
Expand Up @@ -2,6 +2,14 @@

export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"

# As of Mac OS 10.8, X11 is no longer included by default ( https://support.apple.com/en-us/HT201341 ).
# Due to this change, we disable building X11 support for cairo on Mac by default.
export XWIN_ARGS=""
if [ `uname` == Darwin ]; then
export XWIN_ARGS="--disable-gtk-doc --disable-xlib -disable-xcb --disable-glitz"
fi


./configure \
--prefix=$PREFIX \
--disable-static \
Expand All @@ -11,7 +19,8 @@ export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
--enable-ps \
--enable-pdf \
--enable-svg \
--disable-gtk-doc
--disable-gtk-doc \
$XWIN_ARGS
make
make install

Expand Down
2 changes: 1 addition & 1 deletion cairo/meta.yaml
Expand Up @@ -8,7 +8,7 @@ source:
md5: 8e4ff32b82c3b39387eb6f5c59ef848e

build:
number: 1
number: 2

requirements:
build:
Expand Down