pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/dvdrecord +PKG_DESTDIR_SUPPORT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1b4fd3cc56f
branches:  trunk
changeset: 393352:f1b4fd3cc56f
user:      abs <abs%pkgsrc.org@localhost>
date:      Tue May 19 22:03:44 2009 +0000

description:
+PKG_DESTDIR_SUPPORT

diffstat:

 sysutils/dvdrecord/Makefile |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 628182d86b18 -r f1b4fd3cc56f sysutils/dvdrecord/Makefile
--- a/sysutils/dvdrecord/Makefile       Tue May 19 22:02:21 2009 +0000
+++ b/sysutils/dvdrecord/Makefile       Tue May 19 22:03:44 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2008/03/08 11:14:11 obache Exp $
+# $NetBSD: Makefile,v 1.18 2009/05/19 22:03:44 abs Exp $
 
 DISTNAME=      dvdrtools-${VERSION}
 PKGNAME=       ${DISTNAME:S/dvdrtools/dvdrecord/}
@@ -17,7 +17,8 @@
 # Override wrong usage of AC_DEFINE_UNQUOTED:
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 LIBS.SunOS+=           -lsocket
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -26,8 +27,8 @@
 .endif
 
 do-install:
-       cd ${WRKSRC}/cdrecord;                                          \
-               ${INSTALL_PROGRAM} dvdrecord ${PREFIX}/bin;             \
-               ${INSTALL_MAN} dvdrecord.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/cdrecord/dvdrecord ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/cdrecord/dvdrecord.1 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index