summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorobache <obache>2008-01-04 07:18:21 +0000
committerobache <obache>2008-01-04 07:18:21 +0000
commit8e306a87d36032231ecda51b0184e7c1b87fdfb1 (patch)
tree2e3760ad56499ee29458504790641c94a5903313 /misc
parentb18dacf48876ac5f18a8616a67b41d81807e3ffe (diff)
downloadpkgsrc-8e306a87d36032231ecda51b0184e7c1b87fdfb1.tar.gz
Add DESTDIR support.
Diffstat (limited to 'misc')
-rw-r--r--misc/getopt/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile
index 49a51d209ee..20c140f03d0 100644
--- a/misc/getopt/Makefile
+++ b/misc/getopt/Makefile
@@ -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 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
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"