summaryrefslogtreecommitdiff
path: root/graphics/dcraw
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
commit0921f3f35279f745c8e5b56be3c87c7dee3e5738 (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/dcraw
parent0157fc562061bdebd896e09805aa565fff88d662 (diff)
downloadpkgsrc-0921f3f35279f745c8e5b56be3c87c7dee3e5738.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/dcraw')
-rw-r--r--graphics/dcraw/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/graphics/dcraw/Makefile b/graphics/dcraw/Makefile
index 3bf0254d9d2..ca667c931f0 100644
--- a/graphics/dcraw/Makefile
+++ b/graphics/dcraw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/03/02 09:48:42 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2008/03/04 15:39:09 jlam Exp $
#
DISTNAME= dcraw-8.82
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cybercom.net/~dcoffin/dcraw/
COMMENT= Raw digital camera decoder
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_PKGLOCALEDIR= yes
WRKSRC= ${WRKDIR}/${PKGBASE}
USE_TOOLS+= msgfmt
@@ -51,13 +53,15 @@ do-build:
done;
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/dcraw ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/dcraw.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/dcraw ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/dcraw.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for l in ${DCRAW_MANS}
- ${INSTALL_MAN} ${WRKSRC}/dcraw_${l}.1 ${PREFIX}/${PKGMANDIR}/${l}/man1/dcraw.1
+ ${INSTALL_MAN} ${WRKSRC}/dcraw_${l}.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/${l}/man1/dcraw.1
.endfor
.for l in ${DCRAW_LOCALES}
- ${INSTALL_DATA} ${WRKSRC}/dcraw_${l}.mo ${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES/dcraw.mo
+ ${INSTALL_DATA} ${WRKSRC}/dcraw_${l}.mo \
+ ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES/dcraw.mo
.endfor
.include "../../devel/gettext-lib/buildlink3.mk"