summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-01-04 07:18:21 +0000
committerobache <obache@pkgsrc.org>2008-01-04 07:18:21 +0000
commitf7a08e59992c19900c37dab925016455915798d0 (patch)
tree2e3760ad56499ee29458504790641c94a5903313
parent122efc4e7141e6929491e12f7f79dd0ce163f3f0 (diff)
downloadpkgsrc-f7a08e59992c19900c37dab925016455915798d0.tar.gz
Add DESTDIR support.
-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"