openbsd-ports/math/grpn/patches/patch-Makefile

38 lines
841 B
Plaintext
Raw Normal View History

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 =
#
# 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
-CFLAGS = -g -O2 -I/usr/X11/include `$(GTK_DIR)gtk-config --cflags` -DGTK_VER_1_1
2001-03-17 21:31:01 -05:00
-
-DFLAGS = -L/usr/X11/lib
2010-03-23 16:38:20 -04: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
grpn: $(OBJS)
- $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)
+ $(CC) -o $@ $(OBJS) $(LIBS)
pure: $(OBJS)
$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS)