pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/ljpeg Support DESTDIR and PKGMANDIR



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d08d7c8a2ee
branches:  trunk
changeset: 400904:3d08d7c8a2ee
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Oct 29 22:34:33 2009 +0000

description:
Support DESTDIR and PKGMANDIR

diffstat:

 graphics/ljpeg/Makefile         |  15 +++++++++------
 graphics/ljpeg/distinfo         |   4 ++--
 graphics/ljpeg/patches/patch-aa |   8 ++++----
 3 files changed, 15 insertions(+), 12 deletions(-)

diffs (74 lines):

diff -r 50419b5f3159 -r 3d08d7c8a2ee graphics/ljpeg/Makefile
--- a/graphics/ljpeg/Makefile   Thu Oct 29 22:29:16 2009 +0000
+++ b/graphics/ljpeg/Makefile   Thu Oct 29 22:34:33 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/06/15 13:31:29 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2009/10/29 22:34:33 tnn Exp $
 #
 
 DISTNAME=              ljpg
@@ -11,16 +11,19 @@
 HOMEPAGE=              ftp://ftp.cs.cornell.edu/pub/multimed/
 COMMENT=               Lossless JPEG codec
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                        ${WRKDIR}
 DIST_SUBDIR=           ${PKGNAME_NOREV}
 
 BUILD_TARGET=          default
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1   \
+                         share/doc/ljpeg share/examples/ljpeg
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ljpeg
-       ${INSTALL_DATA} ${WRKSRC}/Copyright ${PREFIX}/share/doc/ljpeg
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ljpeg
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ljpeg
-       ${INSTALL_DATA} ${WRKSRC}/F-18* ${PREFIX}/share/examples/ljpeg
+       ${INSTALL_DATA} ${WRKSRC}/Copyright ${DESTDIR}${PREFIX}/share/doc/ljpeg
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ljpeg
+       ${INSTALL_DATA} ${WRKSRC}/F-18* ${DESTDIR}${PREFIX}/share/examples/ljpeg
 
 .include "../../mk/bsd.pkg.mk"
diff -r 50419b5f3159 -r 3d08d7c8a2ee graphics/ljpeg/distinfo
--- a/graphics/ljpeg/distinfo   Thu Oct 29 22:29:16 2009 +0000
+++ b/graphics/ljpeg/distinfo   Thu Oct 29 22:34:33 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 08:45:10 agc Exp $
+$NetBSD: distinfo,v 1.4 2009/10/29 22:34:33 tnn Exp $
 
 SHA1 (ljpg-1.0/ljpg.tar.Z) = 47071fad1f11a3b9241a34b188ab07d54dcd13bc
 RMD160 (ljpg-1.0/ljpg.tar.Z) = c61e5207ebf449e016ea9e2f23c54d323f680a54
 Size (ljpg-1.0/ljpg.tar.Z) = 334459 bytes
-SHA1 (patch-aa) = 562ce4a8f82c6ed59b4b730f59822d4749e925a3
+SHA1 (patch-aa) = ceb910a141d782597d2d3dbb15b520e6284cb394
 SHA1 (patch-ab) = c56ad99b8ce278d58f50fc8770c6ca62aa8936f4
diff -r 50419b5f3159 -r 3d08d7c8a2ee graphics/ljpeg/patches/patch-aa
--- a/graphics/ljpeg/patches/patch-aa   Thu Oct 29 22:29:16 2009 +0000
+++ b/graphics/ljpeg/patches/patch-aa   Thu Oct 29 22:34:33 2009 +0000
@@ -1,19 +1,19 @@
-$NetBSD: patch-aa,v 1.1.1.1 2003/12/21 21:30:14 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2009/10/29 22:34:33 tnn Exp $
 
---- Makefile.orig      Wed Jun 22 18:48:40 1994
+--- Makefile.orig      1994-06-22 18:48:40.000000000 +0200
 +++ Makefile
 @@ -1,19 +1,19 @@
  #
  # Set BINDIR to where you want the binaries to go.
  #
 -BINDIR= /usr/public/sun4/bin
-+BINDIR= ${PREFIX}/bin
++BINDIR= ${DESTDIR}${PREFIX}/bin
  
  #
  # Set MANDIR to where you want the man pages to go.
  #
 -MANDIR= /usr/public/share/man/man1
-+MANDIR= ${PREFIX}/man/man1
++MANDIR= ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
  
  #
  # Select your favorite compiler and compilation flags here.



Home | Main Index | Thread Index | Old Index