summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2007-12-15 15:54:49 +0000
committerheinz <heinz@pkgsrc.org>2007-12-15 15:54:49 +0000
commit271afa44ab0be99138769d1ad479d3d44e8a8274 (patch)
tree3fb2832b9191f28d6da3efe117b10d7ef41a1b3f /multimedia
parent93e252bc482a87566647fa78c58b7ca09f320ecd (diff)
downloadpkgsrc-271afa44ab0be99138769d1ad479d3d44e8a8274.tar.gz
Added support for installation to DESTDIR (contributed by rumcic at gmail com).
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mencoder/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/multimedia/mencoder/Makefile b/multimedia/mencoder/Makefile
index d4a0089c3ce..291d91cc819 100644
--- a/multimedia/mencoder/Makefile
+++ b/multimedia/mencoder/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2007/09/13 19:16:02 drochner Exp $
+# $NetBSD: Makefile,v 1.35 2007/12/15 15:54:49 heinz Exp $
PKGNAME= mencoder-${MPLAYER_PKG_VERSION}
@@ -6,6 +6,8 @@ PKGREVISION= 5
COMMENT= Simple movie encoder for MPlayer-playable movies
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../multimedia/mplayer-share/Makefile.common"
CONFIGURE_ARGS+= --confdir=${PREFIX}/share/mplayer
@@ -16,13 +18,13 @@ MANCOMPRESSED_IF_MANZ= 1
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${DESTDIR}${PREFIX}/bin
if [ X"${MANZ}" = X"" ]; then \
- ${LN} -s -f ${PREFIX}/${PKGMANDIR}/man1/mplayer.1 \
- ${PREFIX}/${PKGMANDIR}/man1/mencoder.1; \
+ ${LN} -s -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mplayer.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mencoder.1; \
else \
- ${LN} -s -f ${PREFIX}/${PKGMANDIR}/man1/mplayer.1.gz \
- ${PREFIX}/${PKGMANDIR}/man1/mencoder.1.gz; \
+ ${LN} -s -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mplayer.1.gz \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mencoder.1.gz; \
fi
.include "../../multimedia/mplayer-share/Makefile.depends"