pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/pspvc Convert to user-destdir. Fix installa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3970d89e3ce
branches:  trunk
changeset: 562704:e3970d89e3ce
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Aug 05 00:06:07 2009 +0000

description:
Convert to user-destdir. Fix installation.

diffstat:

 multimedia/pspvc/Makefile |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r fd1cab673279 -r e3970d89e3ce multimedia/pspvc/Makefile
--- a/multimedia/pspvc/Makefile Wed Aug 05 00:03:14 2009 +0000
+++ b/multimedia/pspvc/Makefile Wed Aug 05 00:06:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/06/12 17:24:54 ahoka Exp $
+# $NetBSD: Makefile,v 1.6 2009/08/05 00:06:07 wiz Exp $
 #
 
 DISTNAME=      pspvc-install-0.3
@@ -12,6 +12,9 @@
 HOMEPAGE=      http://pspvc.sf.net/
 COMMENT=       PSP video converter
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+INSTALLATION_DIRS=     share/applications share/pspvc/bin
+
 USE_LANGUAGES= c
 USE_TOOLS=     pkg-config gmake msgfmt
 GNU_CONFIGURE= yes
@@ -21,9 +24,10 @@
        ${TAR} -C ${WRKDIR} -zxf ${WRKDIR}/${DISTNAME}/archives/${PSPVCVER}.tar.gz
 
 post-install:
-       ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/archives/pspvc.desktop ${PREFIX}/share/applications
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/pspvc/bin
-       ${LN} -s ${PREFIX}/bin/ffmpeg ${PREFIX}/share/pspvc/bin/ffmpeg
+       ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/archives/pspvc.desktop \
+               ${DESTDIR}${PREFIX}/share/applications
+       ${LN} -s ${PREFIX}/bin/ffmpeg \
+               ${DESTDIR}${PREFIX}/share/pspvc/bin/ffmpeg
 
 .include "../../multimedia/ffmpeg/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index