From 4b86e2bfab114a3edb0ceea2883a66b1745f9f06 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 15:39:09 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- graphics/mpeg2codec/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'graphics/mpeg2codec') 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" -- cgit v1.2.3