2017-11-03 09:52:15 -04:00
|
|
|
$OpenBSD: patch-Makefile,v 1.6 2017/11/03 13:52:15 espie Exp $
|
2010-03-23 16:38:20 -04:00
|
|
|
|
|
|
|
- Honor cflags
|
|
|
|
- Port to gtk+2
|
2017-11-03 09:52:15 -04:00
|
|
|
- don't remove -lm
|
2010-03-23 16:38:20 -04:00
|
|
|
|
2017-11-03 09:52:15 -04:00
|
|
|
Index: Makefile
|
|
|
|
--- Makefile.orig
|
|
|
|
+++ Makefile
|
2010-03-23 16:38:20 -04:00
|
|
|
@@ -19,11 +19,9 @@ GTK_DIR =
|
|
|
|
#
|
2000-12-17 21:17:11 -05:00
|
|
|
# add -DUSE_GNOME if you want to make grpn GNOME compliant.
|
|
|
|
|
2010-03-23 16:38:20 -04:00
|
|
|
+# We cheat by defining GTK_VER_1_1...
|
|
|
|
+CFLAGS +=`pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
|
2000-12-17 21:17:11 -05:00
|
|
|
|
|
|
|
-CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
|
2001-03-17 21:31:01 -05:00
|
|
|
-
|
2000-12-17 21:17:11 -05:00
|
|
|
-DFLAGS = -L/usr/X11/lib
|
2010-03-23 16:38:20 -04:00
|
|
|
-
|
2000-12-17 21:17:11 -05:00
|
|
|
# end of user configurable section
|
|
|
|
|
2010-03-23 16:38:20 -04:00
|
|
|
|
|
|
|
@@ -37,11 +35,11 @@ OBJS = test_gtk_ver.o real.o complex.o matrix.o number
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-LIBS = `$(GTK_DIR)gtk-config --libs` -lX11 -lm
|
2017-11-03 09:52:15 -04:00
|
|
|
+LIBS = `pkg-config --libs gtk+-2.0` -lm
|
2000-12-17 21:17:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
grpn: $(OBJS)
|
2002-12-21 20:30:45 -05:00
|
|
|
- $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
+ $(CC) -o $@ $(OBJS) $(LIBS)
|
2000-12-17 21:17:11 -05:00
|
|
|
|
2002-12-21 20:30:45 -05:00
|
|
|
pure: $(OBJS)
|
2000-12-17 21:17:11 -05:00
|
|
|
$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
|