diff options
Diffstat (limited to 'x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch')
-rw-r--r-- | x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch b/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch new file mode 100644 index 000000000000..79e72bf1ba3c --- /dev/null +++ b/x11-plugins/gkrellmwireless/files/gkrellmwireless-2.0.3-r3-pkgconfig.patch @@ -0,0 +1,27 @@ +Respect user's pkg-config +--- a/Makefile ++++ b/Makefile +@@ -1,20 +1,10 @@ + # Depends on gmake.. + # + OS = $(shell uname) ++PKG_CONFIG ?= pkg-config + +-ifeq ($(OS),FreeBSD) +- GTK_CONFIG = pkg-config gtk+-2.0 +- INCLUDE = -I/usr/src/sys +-elseif eq ($(OS),NetBSD) +- GTK_CONFIG = pkg-config gtk+-2.0 +-else +-# default to the linux +- GTK_CONFIG = pkg-config gtk+-2.0 +-endif +- +- +-GTK_CFLAGS = `$(GTK_CONFIG) --cflags` +-GTK_LIB = `$(GTK_CONFIG) --libs` ++GTK_CFLAGS = $(shell ${PKG_CONFIG} gtk+-2.0 --cflags) ++GTK_LIB = $(shell ${PKG_CONFIG} gtk+-2.0 --libs) + + CFLAGS += -Wall -fPIC + CPPFLAGS += $(GTK_CFLAGS) $(GKRELLM_INCLUDE) |