diff options
author | heinz <heinz@pkgsrc.org> | 2007-12-15 15:54:49 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-12-15 15:54:49 +0000 |
commit | b0cf374063bb334e207f3bde9d361ef428cfb3f6 (patch) | |
tree | 3fb2832b9191f28d6da3efe117b10d7ef41a1b3f /multimedia/mencoder | |
parent | 81feed502d30331677037df704a90a086e1e2c11 (diff) | |
download | pkgsrc-b0cf374063bb334e207f3bde9d361ef428cfb3f6.tar.gz |
Added support for installation to DESTDIR (contributed by rumcic at gmail com).
Diffstat (limited to 'multimedia/mencoder')
-rw-r--r-- | multimedia/mencoder/Makefile | 14 |
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" |