user-destdir support
This commit is contained in:
parent
11c16bf96b
commit
324d01261f
3 changed files with 19 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 2006/04/22 09:22:15 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2009/07/07 22:24:37 joerg Exp $
|
||||
#
|
||||
|
||||
DISTNAME= nroff-clone
|
||||
|
@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
|
|||
HOMEPAGE= http://www.scn.rain.com/pub/text/
|
||||
COMMENT= Text formatter (nroff-clone) written in awk
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SED} -e '1,/^\#!/d' | ${SH}
|
||||
WRKSRC= ${WRKDIR}
|
||||
|
||||
|
@ -22,4 +24,6 @@ SUBST_SED.awflib+= -e 's|/usr/lib/awf|${PREFIX}/share/awf|'
|
|||
SUBST_SED.awflib+= -e 's|@AWK@|${AWK}|g'
|
||||
SUBST_STAGE.awflib= pre-configure
|
||||
|
||||
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.3 2005/02/24 14:48:40 agc Exp $
|
||||
$NetBSD: distinfo,v 1.4 2009/07/07 22:24:37 joerg Exp $
|
||||
|
||||
SHA1 (nroff-clone.shar.Z) = 4e4527234f97b16f62341b4b844d128b4cabd617
|
||||
RMD160 (nroff-clone.shar.Z) = fcbea3f84521bd3694d17ec07230824d69733a94
|
||||
Size (nroff-clone.shar.Z) = 26302 bytes
|
||||
SHA1 (patch-aa) = 486c404fcd90638c59fb3df01eb41ffeb2595982
|
||||
SHA1 (patch-aa) = 9169ba9db29a63316fc0adb891d5e718c3352093
|
||||
SHA1 (patch-ab) = c2574a55bb9a9ab3b79c3a59d639ef534015a45c
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: patch-aa,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $
|
||||
$NetBSD: patch-aa,v 1.2 2009/07/07 22:24:37 joerg Exp $
|
||||
|
||||
--- Makefile 2003/11/04 18:25:04 1.1
|
||||
+++ Makefile 2003/11/04 18:23:55
|
||||
@@ -1,17 +1,15 @@
|
||||
--- Makefile.orig 2009-07-08 00:23:21.000000000 +0200
|
||||
+++ Makefile
|
||||
@@ -1,29 +1,27 @@
|
||||
-AWFLIB = /usr/lib/awf # beware, awf itself knows this
|
||||
-BIN = /usr/bin
|
||||
-MAN = /usr/man/man1
|
||||
|
@ -25,9 +25,14 @@ $NetBSD: patch-aa,v 1.1.1.1 2003/12/04 08:33:59 agc Exp $
|
|||
+ AWFLIB=. ./awf -man awf.1 >tmp
|
||||
|
||||
install:
|
||||
-if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi
|
||||
@@ -20,10 +18,10 @@
|
||||
cp awf.1 $(MAN)
|
||||
- -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
|
||||
|
|
Loading…
Reference in a new issue