surf-9999-gentoo.patch (1147B)
1 diff --git a/config.mk b/config.mk 2 index f1910bf..55d7066 100644 3 --- a/config.mk 4 +++ b/config.mk 5 @@ -4,18 +4,18 @@ VERSION = 2.0 6 # Customize below to fit your system 7 8 # paths 9 -PREFIX = /usr/local 10 +PREFIX = /usr 11 MANPREFIX = $(PREFIX)/share/man 12 LIBPREFIX = $(PREFIX)/lib 13 LIBDIR = $(LIBPREFIX)/surf 14 15 -X11INC = `pkg-config --cflags x11` 16 -X11LIB = `pkg-config --libs x11` 17 +X11INC = $(shell $(PKG_CONFIG) --cflags x11) 18 +X11LIB = $(shell $(PKG_CONFIG) --libs x11) 19 20 -GTKINC = `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` 21 -GTKLIB = `pkg-config --libs gtk+-3.0 gcr-3 webkit2gtk-4.0` 22 -WEBEXTINC = `pkg-config --cflags webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0` 23 -WEBEXTLIBS = `pkg-config --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0` 24 +GTKINC = $(shell $(PKG_CONFIG) --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0) 25 +GTKLIB = $(shell $(PKG_CONFIG) --libs gtk+-3.0 gcr-3 webkit2gtk-4.0) 26 +WEBEXTINC = $(shell $(PKG_CONFIG) --cflags webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0) 27 +WEBEXTLIBS = $(shell $(PKG_CONFIG) --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0 gio-2.0) 28 29 # includes and libs 30 INCS = $(X11INC) $(GTKINC)