pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[PATCH] multimedia/mencoder and wrong paths
=> Automatic manual page handling
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/bin/mencoder'
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/man/man1/mencoder.1'
===> Building binary package for mencoder-1.0rc9nb5
Creating package /usr/pkgsrc/packages/All/mencoder-1.0rc9nb5
Using SrcDir value of /usr/pkg
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/bin/mencoder'
pkg_create: can't stat
`/usr/obj/pkgsrc/multimedia/mencoder/work.vkernel/.destdir/usr/pkg/man/man1/mencoder.1'
pkg_create: lstat failed for file bin/mencoder: No such file or directory
*** Error code 2
Makefile.common in multimedia/mplayer-share defines "PKG_DESTDIR_SUPPORT=
user-destdir", but the Makefile in mencoder doesn't use ${DESTDIR}. Attached
patch fixes this.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/mencoder/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile 13 Sep 2007 19:16:02 -0000 1.34
+++ Makefile 15 Dec 2007 13:06:10 -0000
@@ -16,13 +16,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"
Home |
Main Index |
Thread Index |
Old Index