pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/optipng Added support for installation to DES...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba6facaa0660
branches:  trunk
changeset: 535198:ba6facaa0660
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Nov 10 19:08:51 2007 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 graphics/optipng/Makefile         |  6 +++++-
 graphics/optipng/distinfo         |  4 ++--
 graphics/optipng/patches/patch-aa |  8 ++++----
 3 files changed, 11 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r e9105c148717 -r ba6facaa0660 graphics/optipng/Makefile
--- a/graphics/optipng/Makefile Sat Nov 10 11:36:28 2007 +0000
+++ b/graphics/optipng/Makefile Sat Nov 10 19:08:51 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/01/29 17:53:05 adam Exp $
+# $NetBSD: Makefile,v 1.14 2007/11/10 19:08:51 heinz Exp $
 
 DISTNAME=      optipng-0.5.5
 CATEGORIES=    graphics
@@ -8,9 +8,13 @@
 HOMEPAGE=      http://optipng.sourceforge.net/
 COMMENT=       Advanced PNG Optimizer
 
+PKG_DESTDIR_SUPPORT=           user-destdir
+
 BUILDLINK_API_DEPENDS.zlib+=   zlib>=1.2.2
 BUILDLINK_API_DEPENDS.png+=    png>=1.2.9nb2
 
+INSTALLATION_DIRS+=            bin ${PKGMANDIR}/man1
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e9105c148717 -r ba6facaa0660 graphics/optipng/distinfo
--- a/graphics/optipng/distinfo Sat Nov 10 11:36:28 2007 +0000
+++ b/graphics/optipng/distinfo Sat Nov 10 19:08:51 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2007/01/29 17:53:05 adam Exp $
+$NetBSD: distinfo,v 1.10 2007/11/10 19:08:51 heinz Exp $
 
 SHA1 (optipng-0.5.5.tar.gz) = 670da3b01da903fa04886e4b6e625648570b3d9c
 RMD160 (optipng-0.5.5.tar.gz) = 39e4b0587e4bcc7cb705e329dde35b1f9426b1d0
 Size (optipng-0.5.5.tar.gz) = 1109905 bytes
-SHA1 (patch-aa) = c6c30b71122fe7c5c978b280ef48d4c0b4bbf435
+SHA1 (patch-aa) = 792cf24939dcaa40a5499515980cd807a66c198d
 SHA1 (patch-ac) = fb4eb567b5a24b2d26bf357061be80c57b4d4a3c
diff -r e9105c148717 -r ba6facaa0660 graphics/optipng/patches/patch-aa
--- a/graphics/optipng/patches/patch-aa Sat Nov 10 11:36:28 2007 +0000
+++ b/graphics/optipng/patches/patch-aa Sat Nov 10 19:08:51 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.7 2006/08/05 12:23:07 adam Exp $
+$NetBSD: patch-aa,v 1.8 2007/11/10 19:08:51 heinz Exp $
 
---- Makefile.orig      2006-08-05 13:54:57.000000000 +0200
+--- Makefile.orig      2007-11-10 20:01:12.000000000 +0100
 +++ Makefile
 @@ -0,0 +1,34 @@
 +OBJS= optipng.o opngio.o opngreduc.o cbitset.o osys.o strutil.o \
@@ -35,5 +35,5 @@
 +tiffwrite.o: lib/pngxtern/minitiff/tiffwrite.c        lib/pngxtern/minitiff/tiffdef.h
 +
 +install:
-+      ${BSD_INSTALL_PROGRAM} optipng ${PREFIX}/bin
-+      ${BSD_INSTALL_MAN} man/optipng.1 ${PREFIX}/${PKGMANDIR}/man1
++      ${BSD_INSTALL_PROGRAM} optipng "${DESTDIR}${PREFIX}/bin"
++      ${BSD_INSTALL_MAN} man/optipng.1 "${DESTDIR}${PREFIX}/${PKGMANDIR}/man1"



Home | Main Index | Thread Index | Old Index