about summary refs log tree commit diff stats
path: root/osx
diff options
context:
space:
mode:
authorRay Lai <ray@raylai.com>2013-08-14 06:52:12 +0800
committerRay Lai <ray@raylai.com>2013-08-14 06:52:12 +0800
commite09d1dd9b2d0b204031629e1fb381bb144e11500 (patch)
tree0a6d0b7db341b81299edd7877e78661d1582bed3 /osx
parenta540c60a3dfbb4ef18bab736c4ec682b26ab78a2 (diff)
downloadxombrero-e09d1dd9b2d0b204031629e1fb381bb144e11500.tar.gz
Use gtk3 webkit by default on OS X.
Diffstat (limited to 'osx')
-rw-r--r--osx/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/osx/Makefile b/osx/Makefile
index f24d040..f9ec516 100644
--- a/osx/Makefile
+++ b/osx/Makefile
@@ -1,5 +1,12 @@
 LIBS= glib-2.0
-LIBS+= gtk+-2.0 webkit-1.0
+GTK_VERSION ?= gtk3
+ifeq ("${GTK_VERSION}", "gtk2")
+LIBS+= gtk+-2.0
+LIBS+= webkit-1.0
+else
+LIBS+= gtk+-3.0
+LIBS+= webkitgtk-3.0
+endif
 LIBS+= libsoup-2.4 gnutls
 
 CFLAGS+= -O2 -Wall -D_GNU_SOURCE -I. -I.. $(shell pkg-config --cflags $(LIBS)) $(JS_CF)