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

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

Revision 1.3, Thu Oct 29 22:00:58 2009 UTC (10 years, 8 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, 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, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, HEAD
Changes since 1.2: +2 -2 lines

Support PKGMANDIR

$NetBSD: patch-aa,v 1.3 2009/10/29 22:00:58 tnn Exp $

--- Makefile.orig	2009-10-29 22:59:43.000000000 +0100
+++ Makefile
@@ -1,29 +1,27 @@
-AWFLIB = /usr/lib/awf	# beware, awf itself knows this
-BIN = /usr/bin
-MAN = /usr/man/man1
+AWFLIB = ${PREFIX}/share/awf	# beware, awf itself knows this
+BIN = ${PREFIX}/bin
+MAN = ${PREFIX}/${PKGMANDIR}/man1
 CP = common dev.dumb mac.man mac.ms pass1 pass2.base pass2.man pass2.ms pass3
 DTR = README COPYRIGHT Makefile awf awf.1 awf.1.out common dev.dumb mac.man \
 	mac.ms pass1 pass2.base pass2.man pass2.ms pass3
 # System V brain damage
-SHELL = /bin/sh
+#SHELL = /bin/sh
 
-r:	awf.1
+all r:	awf.1
 	chmod +x awf
-	AWFLIB=. awf -man awf.1 >tmp
-	cmp tmp awf.1.out
-	rm tmp
+	AWFLIB=. ./awf -man awf.1 >tmp
 
 install:
-	-if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi
-	cp $(CP) $(AWFLIB)
-	cp awf $(BIN)
-	cp awf.1 $(MAN)
+	-if test ! -d ${DESTDIR}$(AWFLIB) ; then mkdir ${DESTDIR}$(AWFLIB) ; fi
+	cp $(CP) ${DESTDIR}$(AWFLIB)
+	cp awf ${DESTDIR}$(BIN)
+	cp awf.1 ${DESTDIR}$(MAN)
 
 rr:	r testm tests.Z tests.out.Z
-	AWFLIB=. awf -man testm >tmp
+	AWFLIB=. ./awf -man testm >tmp
 	cmp tmp testm.out
 	rm tmp
-	uncompress <tests.Z | AWFLIB=. awf -ms >tmp
+	uncompress <tests.Z | AWFLIB=. ./awf -ms >tmp
 	uncompress <tests.out.Z | cmp - tmp
 	rm tmp