[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / math / grpn / patches

File: [cvs.NetBSD.org] / pkgsrc / math / grpn / patches / patch-aa (download)

Revision 1.5, Thu Jun 9 17:01:39 2011 UTC (11 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Changes since 1.4: +10 -10 lines

update to 1.3.3
changes:
-UI improvements
-bugfixes

$NetBSD: patch-aa,v 1.5 2011/06/09 17:01:39 drochner Exp $

--- Makefile.orig	2011-05-10 16:58:46.000000000 +0000
+++ 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 
 
 # NOTE:
 #
@@ -15,9 +15,10 @@ CC = gcc 
 # add -DUSE_GNOME if you want to make grpn GNOME compliant.
 
 
-CFLAGS = -g -O2 -I/usr/X11/include  `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
+#CFLAGS = -g -O2 -I/usr/X11/include  `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
+CFLAGS+= `pkg-config --cflags gtk+-2.0` -DGTK_VER_1_1
 
-DFLAGS =  -L/usr/X11/lib 
+#DFLAGS =  -L/usr/X11/lib 
 
 # end of user configurable section
 
@@ -39,12 +40,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