summaryrefslogtreecommitdiff
path: root/math/grpn/patches/patch-aa
blob: 0e9b655180f63a0fb7fcf172483f166b978e5e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-aa,v 1.4 2009/11/15 13:32:17 drochner Exp $

--- Makefile.orig	2009-11-14 01:25:54.000000000 +0100
+++ Makefile
@@ -3,10 +3,10 @@
 # Please read the next few lines and enter the correct values.
 
 # where to install GRPN
-PREFIX = /usr/local/
+#PREFIX = /usr/local/
 
 # What compiler should be used
-CC = gcc 
+#CC = gcc 
 
 # Where to find the gtk-config script
 GTK_DIR =
@@ -20,9 +20,10 @@ GTK_DIR =
 # add -DUSE_GNOME if you want to make grpn GNOME compliant.
 
 
-CFLAGS = -g -O2 -I/usr/include/X11  `$(GTK_DIR)pkg-config --cflags gtk+-2.0` -DGTK_VER_2_0 
+#CFLAGS = -g -O2 -I/usr/include/X11  `$(GTK_DIR)pkg-config --cflags gtk+-2.0` -DGTK_VER_2_0 
+CFLAGS+= `pkg-config --cflags gtk+-2.0` -DGTK_VER_2_0
 
-DFLAGS =  -L/usr/lib/X11 
+#DFLAGS =  -L/usr/lib/X11 
 
 # end of user configurable section
 
@@ -49,12 +50,10 @@ pure:	$(OBJS)
 	$(PURIFY) $(CC) $(DFLAGS) -o $@ $(OBJS) $(LIBS) 
 
 install:	grpn
-	mkdirhier $(PREFIX)/bin
-	cp grpn $(PREFIX)/bin
-	chmod 755 $(PREFIX)/bin/grpn
-	mkdirhier $(PREFIX)/man/man1
-	cp grpn.1 $(PREFIX)/man/man1
-	chmod 644 $(PREFIX)/man/man1/grpn.1
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM) grpn $(DESTDIR)$(PREFIX)/bin
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/man/man1
+	$(BSD_INSTALL_DATA) grpn.1 $(DESTDIR)$(PREFIX)/man/man1
 
 .c.o:
 	$(CC) -c -o $@ $(CFLAGS) $*.c