pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/getopt Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79e7d9772a6e
branches:  trunk
changeset: 537147:79e7d9772a6e
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Jan 04 07:18:21 2008 +0000

description:
Add DESTDIR support.

diffstat:

 misc/getopt/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 0008802eee68 -r 79e7d9772a6e misc/getopt/Makefile
--- a/misc/getopt/Makefile      Fri Jan 04 07:17:14 2008 +0000
+++ b/misc/getopt/Makefile      Fri Jan 04 07:18:21 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/01/04 07:17:14 obache Exp $
+# $NetBSD: Makefile,v 1.9 2008/01/04 07:18:21 obache Exp $
 #
 
 DISTNAME=              getopt-1.1.3
@@ -14,11 +14,13 @@
 
 USE_TOOLS+=            gmake
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/getopt ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/getopt.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/getopt ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/getopt.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index