summaryrefslogtreecommitdiff
path: root/net/gkrellmwireless2/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/gkrellmwireless2/files/patch-Makefile')
-rw-r--r--net/gkrellmwireless2/files/patch-Makefile50
1 files changed, 0 insertions, 50 deletions
diff --git a/net/gkrellmwireless2/files/patch-Makefile b/net/gkrellmwireless2/files/patch-Makefile
deleted file mode 100644
index 08638380c26f..000000000000
--- a/net/gkrellmwireless2/files/patch-Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
---- Makefile.orig 2002-12-06 23:01:13.000000000 +0800
-+++ Makefile 2014-06-23 16:05:37.848876850 +0800
-@@ -1,33 +1,23 @@
- # Depends on gmake..
- #
--OS = $(shell uname)
--
--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_CONFIG = pkg-config gtk+-2.0
-
- GTK_CFLAGS = `$(GTK_CONFIG) --cflags`
- GTK_LIB = `$(GTK_CONFIG) --libs`
-
--FLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
-+CFLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
- LIBS = $(GTK_LIB)
- LFLAGS = -shared
-
--CC = gcc $(CFLAGS) $(FLAGS)
-+CC ?= gcc $(CFLAGS) $(FLAGS)
-
- OBJS = wireless.o
-
--PLUGIN_DIR = /usr/lib/gkrellm2/plugins
-+PLUGIN_DIR = ${PREFIX}/libexec/gkrellm2/plugins
-
--INSTALL = install -c
--INSTALL_PROGRAM = $(INSTALL) -s
-+INSTALL = install -c -s
-+INSTALL_PROGRAM = $(INSTALL)
-
- all: wireless.so
-
-@@ -38,6 +28,6 @@ clean:
- rm -f *.o core *.so* *.bak *~
-
- install :
-- $(INSTALL) $(INSTALL_PERMS) wireless.so $(PLUGIN_DIR)
-+ $(INSTALL) $(INSTALL_PERMS) wireless.so $(DESTDIR)$(PLUGIN_DIR)
- wireless.o: wireless.c
-