summaryrefslogtreecommitdiff
path: root/math/grpn/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/grpn/files/patch-Makefile')
-rw-r--r--math/grpn/files/patch-Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/math/grpn/files/patch-Makefile b/math/grpn/files/patch-Makefile
new file mode 100644
index 000000000000..c55c8e64731b
--- /dev/null
+++ b/math/grpn/files/patch-Makefile
@@ -0,0 +1,32 @@
+--- Makefile.orig 2002-04-05 05:56:05.000000000 +0200
++++ Makefile 2013-11-05 16:39:16.000000000 +0100
+@@ -6,7 +6,7 @@
+ PREFIX = /usr/local/
+
+ # What compiler should be used
+-CC = gcc
++CC?= gcc
+
+ # Where to find the gtk-config script
+ GTK_DIR =
+@@ -20,9 +20,9 @@ GTK_DIR =
+ # add -DUSE_GNOME if you want to make grpn GNOME compliant.
+
+
+-CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
++CFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include `${GTK_CONFIG} --cflags` -DGTK_VER_1_1
+
+-DFLAGS = -L/usr/X11/lib
++DFLAGS = -L${LOCALBASE}/lib -L${PREFIX}/lib
+
+ # end of user configurable section
+
+@@ -37,7 +37,7 @@ OBJS = test_gtk_ver.o real.o complex.o m
+
+
+
+-LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm
++LIBS = `${GTK_CONFIG} --libs` -lX11 -lm
+
+
+ grpn: $(OBJS)