forked from conda-archive/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
27 lines (22 loc) · 744 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
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 \
--disable-gobject \
--enable-warnings \
--enable-ft \
--enable-ps \
--enable-pdf \
--enable-svg \
--disable-gtk-doc \
$XWIN_ARGS
make
make install
rm -rf $PREFIX/share