pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/mencoder Added support for installation to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8425be73ae52
branches:  trunk
changeset: 536483:8425be73ae52
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Dec 15 15:54:49 2007 +0000

description:
Added support for installation to DESTDIR (contributed by rumcic at gmail com).

diffstat:

 multimedia/mencoder/Makefile |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 4aa773d8c9de -r 8425be73ae52 multimedia/mencoder/Makefile
--- a/multimedia/mencoder/Makefile      Sat Dec 15 15:44:24 2007 +0000
+++ b/multimedia/mencoder/Makefile      Sat Dec 15 15:54:49 2007 +0000
@@ -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 @@
 
 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 @@
 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"



Home | Main Index | Thread Index | Old Index