Installing xombrero on Fedora 19

First, the dependencies (sorry, taken directly from the log):


libXfixes-devel-5.0.1-1.fc19.x86_64
glib2-devel-2.36.3-1.fc19.x86_64
libXdamage-devel-1.1.4-3.fc19.x86_64
2:libpng-devel-1.5.13-2.fc19.x86_64
gdk-pixbuf2-devel-2.28.2-1.fc19.x86_64
atk-devel-2.8.0-1.fc19.x86_64
libXcomposite-devel-0.4.4-3.fc19.x86_64
libXi-devel-1.7.1-5.20130524git661c45ca1.fc19.x86_64
libXcursor-devel-1.1.14-1.fc19.x86_64
libdrm-devel-2.4.45-1.fc19.x86_64
wayland-devel-1.1.90-0.1.20130515.fc19.x86_64
libXxf86vm-devel-1.1.3-1.fc19.x86_64
libwayland-cursor-devel-1.1.90-0.1.20130515.fc19.x86_64
libwayland-client-devel-1.1.90-0.1.20130515.fc19.x86_64
at-spi2-atk-devel-2.8.1-1.fc19.x86_64
libicu-devel-50.1.2-5.fc19.x86_64
harfbuzz-devel-0.9.18-2.fc19.x86_64
gl-manpages-1.1-6.20130122.fc19.noarch
mesa-libGL-devel-9.2-0.9.20130610.fc19.x86_64
libxkbcommon-devel-0.3.0-1.fc19.x86_64
pixman-devel-0.30.0-1.fc19.x86_64
khrplatform-devel-9.2-0.9.20130610.fc19.noarch
mesa-libEGL-devel-9.2-0.9.20130610.fc19.x86_64
cairo-devel-1.12.14-2.fc19.x86_64
pango-devel-1.34.1-1.fc19.x86_64
cairo-gobject-devel-1.12.14-2.fc19.x86_64
gtk3-devel-3.8.2-1.fc19.x86_64
gtk2-devel-2.24.18-1.fc19.x86_64
1:glib-1.2.10-39.fc19.x86_64
1:glib-devel-1.2.10-39.fc19.x86_64
libgpg-error-devel-1.11-1.fc19.x86_64
libgcrypt-devel-1.5.2-1.fc19.x86_64
ldns-1.6.16-2.fc19.x86_64
unbound-libs-1.4.20-9.fc19.x86_64
gnutls-dane-3.1.11-1.fc19.x86_64
xz-devel-5.1.2-4alpha.fc19.x86_64
libxml2-devel-2.9.1-1.fc19.x86_64
p11-kit-devel-0.18.3-1.fc19.x86_64
libtasn1-devel-3.3-1.fc19.x86_64
gnutls-c++-3.1.11-1.fc19.x86_64
gnutls-devel-3.1.11-1.fc19.x86_64
libsoup-devel-2.42.2-1.fc19.x86_64
webkitgtk3-devel-2.0.3-1.fc19.x86_64
webkitgtk-devel-2.0.2-2.fc19.x86_64
wget-1.14-5.fc19.x86_64

Second, the makefile, as of today, with the latest git tree:

GTK_VERSION?= gtk3
ifeq ("${GTK_VERSION}", "gtk2")
JS_CF=$(shell pkg-config --silence-errors --cflags javascriptcoregtk-1.0)
JS_LD=$(shell pkg-config --silence-errors --libs javascriptcoregtk-1.0)
else
JS_CF=$(shell pkg-config --silence-errors --cflags javascriptcoregtk-3.0)
JS_LD=$(shell pkg-config --silence-errors --libs javascriptcoregtk-3.0)
endif

LIBS= glib-2.0
ifeq ("${GTK_VERSION}", "gtk2")
LIBS+= gtk+-2.0 webkit-1.0
CFLAGS+=-I/usr/include/gtk-2.0
else
LIBS+= gtk+-3.0 webkitgtk-3.0
CFLAGS+=-I/usr/include/gtk-3.0
endif
LIBS+= libsoup-2.4 gnutls libbsd
#my addition
CFLAGS+= -I/usr/include/glib-2.0/
CFLAGS+= -I/usr/lib64/glib-2.0/include/
CFLAGS+= -I/usr/include/pango-1.0/
CFLAGS+= -I/usr/include/atk-1.0/
CFLAGS+= -I/usr/include/cairo/
CFLAGS+= -I/usr/include/gdk-pixbuf-2.0/
#end of additions
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 -lX11

PREFIX?= /usr/local
BINDIR?= $(PREFIX)/bin
LIBDIR?= $(PREFIX)/lib
APPDIR?= $(PREFIX)/share/applications
MANDIR?= $(PREFIX)/share/man
RESDIR?= $(PREFIX)/share/xombrero

SRCS= $(shell ls ../*.c)
SRCS+= linux.c
OBJS= $(SRCS:.c=.o)
DEPS= $(addsuffix .depend, $(OBJS))

CC?= gcc

BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
ifneq ("${BUILDVERSION}", "")
CFLAGS+= -DXOMBRERO_BUILDSTR=\"$(BUILDVERSION)\"
endif

all: javascript.h tooltip.h xombrero

javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
../autoscroll.js > javascript.h

tooltip.h: ../ascii2txt.pl ../txt2tooltip.pl ../xombrero.1
nroff -c -Tascii -mandoc ../xombrero.1 | \
perl ../ascii2txt.pl | \
perl ../txt2tooltip.pl > tooltip.h

xombrero: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LDADD)

%.o: %.c
@echo "Generating $@.depend"
@$(CC) -MM $(CPPFLAGS) $(CFLAGS) $ $@.depend
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<

install: all
install -m 755 -d $(DESTDIR)$(BINDIR)
install -m 755 -d $(DESTDIR)$(LIBDIR)
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
install -m 755 -d $(DESTDIR)$(RESDIR)
install -m 755 -d $(DESTDIR)$(APPDIR)
install -m 755 xombrero $(DESTDIR)$(BINDIR)
install -m 644 ../xombrero.1 $(DESTDIR)$(MANDIR)/man1/xombrero.1
install -m 644 ../xombrero.css $(DESTDIR)$(RESDIR)
install -m 644 ../xombrero.desktop $(DESTDIR)$(APPDIR)
install -m 644 ../xombreroicon16.png $(DESTDIR)$(RESDIR)
install -m 644 ../xombreroicon32.png $(DESTDIR)$(RESDIR)
install -m 644 ../xombreroicon48.png $(DESTDIR)$(RESDIR)
install -m 644 ../xombreroicon64.png $(DESTDIR)$(RESDIR)
install -m 644 ../xombreroicon128.png $(DESTDIR)$(RESDIR)
install -m 644 ../tld-rules $(DESTDIR)$(RESDIR)
install -m 644 ../style.css $(DESTDIR)$(RESDIR)
install -m 644 ../hsts-preload $(DESTDIR)$(RESDIR)
install -m 644 ../torenabled.ico $(DESTDIR)$(RESDIR)
install -m 644 ../tordisabled.ico $(DESTDIR)$(RESDIR)

uninstall:
rm -f $(DESTDIR)$(BINDIR)/xombrero
rm -f $(DESTDIR)$(MANDIR)/man1/xombrero.1
rm -f $(DESTDIR)$(PREFIX)/share/applications/xombrero.desktop
rm -f $(DESTDIR)$(RESDIR)/xombreroicon.png
rm -f $(DESTDIR)$(RESDIR)/xombreroicon16.png
rm -f $(DESTDIR)$(RESDIR)/xombreroicon32.png
rm -f $(DESTDIR)$(RESDIR)/xombreroicon48.png
rm -f $(DESTDIR)$(RESDIR)/xombreroicon64.png
rm -f $(DESTDIR)$(RESDIR)/xombreroicon128.png
rm -f $(DESTDIR)$(RESDIR)/xombrero.css
rm -f $(DESTDIR)$(RESDIR)/tordisabled.ico
rm -f $(DESTDIR)$(RESDIR)/torenabled.ico
rm -f $(DESTDIR)$(RESDIR)/tld-rules
rm -f $(DESTDIR)$(RESDIR)/style.css
rm -f $(DESTDIR)$(RESDIR)/hsts-preload
if [ -d $(DESTDIR)$(RESDIR) ]; then rmdir $(DESTDIR)$(RESDIR); fi
clean:
rm -f xombrero $(OBJS) $(DEPS)
rm -f javascript.h
rm -f tooltip.h

-include $(DEPS)

.PHONY: all install clean

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s