summaryrefslogtreecommitdiff
path: root/multimedia/mpeg_encode/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mpeg_encode/Makefile')
-rw-r--r--multimedia/mpeg_encode/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/multimedia/mpeg_encode/Makefile b/multimedia/mpeg_encode/Makefile
index 990796b788b..99238f1c1b0 100644
--- a/multimedia/mpeg_encode/Makefile
+++ b/multimedia/mpeg_encode/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/01/07 09:14:01 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= mpeg_encode-1.5b-src
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_encode.html
COMMENT= The Parallel Berkeley MPEG Encoder
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/mpeg_encode
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
@@ -20,20 +22,23 @@ post-build:
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${DESTDIR}${PREFIX}/bin
.for i in eyuvtojpeg jmovie2jpeg mpeg_demux
- ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${DESTDIR}${PREFIX}/bin
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mpeg_encode
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mpeg_encode
.for i in EXTENSIONS INPUT.FORMAT mpeg_encode.1 parallel.param param-summary \
template.param users-guide.fm users-guide.mif users-guide.ps
- ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/mpeg_encode
+ ${INSTALL_DATA} ${WRKSRC}/docs/${i} \
+ ${DESTDIR}${PREFIX}/share/doc/mpeg_encode
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpeg_encode
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mpeg_encode
cd ${WRKSRC}/examples ; for i in * ; do \
- ${INSTALL_DATA} $$i ${PREFIX}/share/examples/mpeg_encode; \
+ ${INSTALL_DATA} $$i \
+ ${DESTDIR}${PREFIX}/share/examples/mpeg_encode; \
done
- ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"