summaryrefslogtreecommitdiff
path: root/math/grpn/files/patch-Makefile
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2013-11-05 15:52:36 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2013-11-05 15:52:36 +0000
commit3437a3151148eb1c1f7ebec33e1f7c64bca59426 (patch)
tree43aede85ade0e85ba9c46e5a7f42ed78cbd1e1d5 /math/grpn/files/patch-Makefile
parent- Update to 1.02 (diff)
Convert to staging, add missing includes.
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)