pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/jasper Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e99285fe8da
branches:  trunk
changeset: 532392:5e99285fe8da
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Aug 17 22:18:15 2007 +0000

description:
Add DESTDIR support.

diffstat:

 graphics/jasper/Makefile |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 3602771df50c -r 5e99285fe8da graphics/jasper/Makefile
--- a/graphics/jasper/Makefile  Fri Aug 17 22:13:56 2007 +0000
+++ b/graphics/jasper/Makefile  Fri Aug 17 22:18:15 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2007/08/12 21:53:42 salo Exp $
+# $NetBSD: Makefile,v 1.27 2007/08/17 22:18:15 joerg Exp $
 
 DISTNAME=      jasper-1.900.1
 PKGREVISION=   1
@@ -11,6 +11,7 @@
 COMMENT=       Software-based reference implementation of the JPEG-2000 codec
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_LANGUAGES=         c99
 USE_LIBTOOL=           yes
@@ -20,9 +21,8 @@
 INSTALLATION_DIRS+=    share/doc/jasper
 
 post-install:
-.for doc in jasper jpeg2000
-       ${INSTALL_DATA} ${WRKSRC}/doc/${doc}.pdf ${PREFIX}/share/doc/jasper
-.endfor
+       ${INSTALL_DATA} ${WRKSRC}/doc/jasper.pdf ${DESTDIR}${PREFIX}/share/doc/jasper
+       ${INSTALL_DATA} ${WRKSRC}/doc/jpeg2000.pdf ${DESTDIR}${PREFIX}/share/doc/jasper
 
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index