From 75e2e3cf3c225d08c75e4053b2ebc3e61b9c58f8 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 16 Feb 2009 19:03:18 +0000 Subject: DESTDIR support --- textproc/rtfm/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'textproc') diff --git a/textproc/rtfm/Makefile b/textproc/rtfm/Makefile index c916a9560f6..10c23fe92e8 100644 --- a/textproc/rtfm/Makefile +++ b/textproc/rtfm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2007/01/07 09:14:14 rillig Exp $ +# $NetBSD: Makefile,v 1.8 2009/02/16 19:07:09 joerg Exp $ DISTNAME= rtfm-1.0 CATEGORIES= textproc @@ -8,6 +8,8 @@ MASTER_SITES= ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \ MAINTAINER= zuntum@NetBSD.org COMMENT= NetBSD documentation and GNU Texinfo files search mechanism +PKG_DESTDIR_SUPPORT= user-destdir + INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 post-patch: @@ -16,7 +18,7 @@ post-patch: ${MV} ${WRKSRC}/rtfm.c.done ${WRKSRC}/rtfm.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/rtfm ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/rtfm.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/rtfm ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/rtfm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3