about summary refs log tree commit diff stats
path: root/linux
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-10 08:55:06 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-10 08:55:06 -0400
commit99d110cd74bbd08011a754d1c11a08e51a90debe (patch)
treeb8641edb041c2bf093d50d3ffc649168ba2f057b /linux
parent1132d68aa111a6ae3eb3df093811791415f2bdcc (diff)
downloadxombrero-99d110cd74bbd08011a754d1c11a08e51a90debe.tar.gz
Enable GTK3 as default on FreeBSD and Linux, and make attempts to
improve coloring when using other invasive GTK3 themes.  The URI bar
should now be colored correctly, unless explicitly overridden in a
user theme.
Diffstat (limited to 'linux')
-rw-r--r--linux/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/Makefile b/linux/Makefile
index a351d34..6e35266 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -1,7 +1,14 @@
 JS_CF=$(shell pkg-config --silence-errors --cflags javascriptcoregtk-1.0)
 JS_LD=$(shell pkg-config --silence-errors --libs javascriptcoregtk-1.0)
 
-LIBS= glib-2.0 gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0 gnutls libbsd
+GTK_VERSION?= gtk3
+LIBS= glib-2.0
+ifeq ("${GTK_VERSION}", "gtk2")
+LIBS+= gtk+-2.0 webkit-1.0
+else
+LIBS+= gtk+-3.0 webkitgtk-3.0
+endif
+LIBS+= libsoup-2.4 gthread-2.0 gnutls libbsd
 
 CFLAGS+= -O2 -Wall -ggdb3 -D_GNU_SOURCE -I. -I.. $(shell pkg-config --cflags $(LIBS)) $(JS_CF)
 LDADD+= $(shell pkg-config --libs $(LIBS)) $(JS_LD) -ldl -lgcrypt -lX11