summaryrefslogtreecommitdiff
path: root/graphics/mpeg2codec
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 15:39:09 +0000
committerjlam <jlam>2008-03-04 15:39:09 +0000
commitd6b91adeba5668a57b81a911d8eddf78028e44dc (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/mpeg2codec
parent6dad5f5dc8c5cabc58dcc1203ff3621136e16ddf (diff)
downloadpkgsrc-d6b91adeba5668a57b81a911d8eddf78028e44dc.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/mpeg2codec')
-rw-r--r--graphics/mpeg2codec/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/graphics/mpeg2codec/Makefile b/graphics/mpeg2codec/Makefile
index de4da8b71f4..cf8b873ceb4 100644
--- a/graphics/mpeg2codec/Makefile
+++ b/graphics/mpeg2codec/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/01/10 09:48:55 abs Exp $
+# $NetBSD: Makefile,v 1.21 2008/03/04 15:39:10 jlam Exp $
DISTNAME= mpeg2vidcodec_v12
PKGNAME= mpeg2codec-1.2
@@ -11,6 +11,7 @@ HOMEPAGE= http://www.mpeg.org/MSSG/
COMMENT= MPEG Software Simulation Group's MPEG-2 Encoder and Decoder
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/mpeg2
USE_X11BASE= yes
@@ -25,11 +26,11 @@ do-install:
${INSTALL_PROGRAM} \
${WRKSRC}/src/mpeg2dec/mpeg2decode \
${WRKSRC}/src/mpeg2enc/mpeg2encode \
- ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mpeg2codec
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mpeg2codec
${INSTALL_DATA} ${WRKSRC}/doc/mpeg2enc.doc \
- ${PREFIX}/share/doc/mpeg2codec
- ${INSTALL_DATA_DIR} ${PREFIX}/share/mpeg2codec
- ${INSTALL_DATA} ${WRKSRC}/par/* ${PREFIX}/share/mpeg2codec
+ ${DESTDIR}${PREFIX}/share/doc/mpeg2codec
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mpeg2codec
+ ${INSTALL_DATA} ${WRKSRC}/par/* ${DESTDIR}${PREFIX}/share/mpeg2codec
.include "../../mk/bsd.pkg.mk"