about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-09 09:37:28 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-09 09:37:28 -0400
commit1132d68aa111a6ae3eb3df093811791415f2bdcc (patch)
treeaab58b743d4cbd38edc8a717db48bdedab5f8e3b /Makefile
parentaf187aeb97e6d77ea4a044330b1205b12e59b2e6 (diff)
downloadxombrero-1132d68aa111a6ae3eb3df093811791415f2bdcc.tar.gz
Add for support for, and enable GTK3 as default.
GTK2 is still supported.  To build against GTK2, use:

$ GTK_VERSION=gtk2 make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b0d3d95..5867dcb 100644
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,17 @@ SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
 SRCS+= history.c completion.c tldlist.c externaleditor.c unix.c xombrero.c
 CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
 CFLAGS+= -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare ${DEBUG}
+CFLAGS+= -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE
 CFLAGS+= -I. -I${.CURDIR}
 LDADD= -lutil -lgcrypt
+GTK_VERSION ?= gtk3
+.if ${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
 LIBS+= gnutls
 LIBS+= gthread-2.0
@@ -46,6 +53,7 @@ beforeinstall:
 	install -m 755 -d ${PREFIX}/bin
 	install -m 755 -d ${PREFIX}/man/man1/
 	install -m 755 -d ${PREFIX}/share/xombrero
+	install -m 644 $(.CURDIR)/xombrero.css ${PREFIX}/share/xombrero
 	install -m 644 ${.CURDIR}/xombreroicon.png ${PREFIX}/share/xombrero
 	install -m 644 ${.CURDIR}/xombreroicon16.png ${PREFIX}/share/xombrero
 	install -m 644 ${.CURDIR}/xombreroicon32.png ${PREFIX}/share/xombrero