Skip to content

Commit

Permalink
Revert build scripts and disable pango for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jviereck authored and tj committed Jan 16, 2013
1 parent 41e6987 commit a713911
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions binding.gyp
Expand Up @@ -2,7 +2,7 @@
'conditions': [
['OS=="win"', {
'variables': {
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle
'with_jpeg%': 'false',
'with_gif%': 'false',
'with_pango%': 'false',
Expand All @@ -12,8 +12,9 @@
'variables': {
'with_jpeg%': '<!(./util/has_lib.sh jpeg)',
'with_gif%': '<!(./util/has_lib.sh gif)',
# disable pango as it causes issues with freetype.
'with_pango%': 'false',
'with_freetype%': 'true'
'with_freetype%': '<!(./util/has_cairo_freetype.sh)'
}
}]
],
Expand Down Expand Up @@ -41,13 +42,12 @@
],
'defines': [
'snprintf=_snprintf',
'_USE_MATH_DEFINES' # for M_PI
'_USE_MATH_DEFINES' # for M_PI
]
}, { # 'OS!="win"'
}, { # 'OS!="win"'
'libraries': [
'<!@(./util/lib_lookup.sh pixman-1)',
'<!@(./util/lib_lookup.sh cairo)',
'<!@(./util/lib_lookup.sh libpng)'
'-lpixman-1',
'-lcairo'
]
}],
['with_freetype=="true"', {
Expand All @@ -64,7 +64,7 @@
'include_dirs': [ # tried to pass through cflags but failed.
# Need to include the header files of cairo AND freetype.
# Looking up the includes of cairo does both.
'<!@(./util/cairo_include.sh)'
'<!@(pkg-config cairo --cflags-only-I | sed s/-I//g)'
]
}]
]
Expand Down Expand Up @@ -123,4 +123,4 @@
]
}
]
}
}
14 changes: 7 additions & 7 deletions install
Expand Up @@ -5,6 +5,7 @@ PIXMAN="http://www.cairographics.org/releases/pixman-0.28.0.tar.gz"
CAIRO="http://cairographics.org/releases/cairo-1.12.8.tar.xz"
FREETYPE="http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz"
LIBPNG="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.13.tar.gz"
PREFIX=${1-/usr/local}

require() {
echo "... checking for $1"
Expand All @@ -30,11 +31,13 @@ fetch() {

fetch_xz() {
local tarball=`basename $1`
echo "... downloading $tarball"
local dir=${tarball/.tar.xz/}
echo "... downloading $tarball";
curl -# -L $1 -o $tarball \
&& echo "... unpacking" \
&& tar -xJf $tarball \
&& echo "... removing tarball" \
&& rm -fr $tarball \
&& install $dir
}

Expand All @@ -44,20 +47,17 @@ install() {
cd $dir \
&& ./configure --disable-dependency-tracking --prefix=$PREFIX \
&& make \
&& make install
&& make install \
&& echo "... removing $dir" \
&& cd .. && rm -fr $dir
}

mkdir -p build_cairo
PREFIX=$(cd "$(dirname "$0")"; pwd)/build_cairo
cd build_cairo

echo "... installing to $PREFIX"
require curl
require tar
test `which pkg-config` || fetch $PKG_CONFIG
require 'pkg-config'
fetch $LIBPNG
fetch $FREETYPE
fetch $FREETYPE
fetch $PIXMAN
fetch_xz $CAIRO

0 comments on commit a713911

Please sign in to comment.