pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics Install licenses and copyright information in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/656aca588e9e
branches:  trunk
changeset: 366326:656aca588e9e
user:      nros <nros%pkgsrc.org@localhost>
date:      Fri Aug 11 15:26:20 2017 +0000

description:
Install licenses and copyright information in freeimage and
freeimage-plus packages in order to comply with binary redistribution of
the boundled libraries.

diffstat:

 graphics/freeimage/Makefile     |  24 +++++++++++++++++++++---
 graphics/freeimage/PLIST        |   9 ++++++++-
 graphics/freeimageplus/Makefile |  23 +++++++++++++++++++++--
 graphics/freeimageplus/PLIST    |   9 ++++++++-
 4 files changed, 58 insertions(+), 7 deletions(-)

diffs (117 lines):

diff -r 465f12be5403 -r 656aca588e9e graphics/freeimage/Makefile
--- a/graphics/freeimage/Makefile       Fri Aug 11 02:55:15 2017 +0000
+++ b/graphics/freeimage/Makefile       Fri Aug 11 15:26:20 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2017/07/04 20:50:53 nros Exp $
+# $NetBSD: Makefile,v 1.5 2017/08/11 15:26:20 nros Exp $
 
 DISTNAME=      FreeImage3170
 PKGNAME=       freeimage-3.17.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel graphics
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=freeimage/}
 EXTRACT_SUFX=  .zip
@@ -17,7 +17,25 @@
 
 WRKSRC=                ${WRKDIR}/FreeImage
 
-INSTALLATION_DIRS+= include lib
+INSTALLATION_DIRS+= include lib share/doc/${PKGBASE}
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibJXR/LICENCE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.LibJXR
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibOpenJPEG/LICENSE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.OpenJPEG
+       ${HEAD} -n 31 ${WRKSRC}/Source/LibRawLite/internal/libraw_x3f.cpp \
+               > ${WRKDIR}/LICENSE.x3f
+       ${HEAD} -n 33 ${WRKSRC}/Source/LibRawLite/internal/dcb_demosaicing.c \
+               > ${WRKDIR}/LICENSE.dcb
+       ${HEAD} -n 25 ${WRKSRC}/Source/LibTIFF4/tif_open.c \
+               > ${WRKDIR}/LICENSE.LibTIFF4
+       ${INSTALL_DATA} ${WRKDIR}/LICENSE.* \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibWebP/COPYING \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.LibWebP
+       ${INSTALL_DATA} ${WRKSRC}/Source/OpenEXR/Copyrights/openexr/LICENSE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.OpenEXR
 
 PLIST_SUBST+=  PKGVERSION_NOREV=${PKGVERSION_NOREV}
 
diff -r 465f12be5403 -r 656aca588e9e graphics/freeimage/PLIST
--- a/graphics/freeimage/PLIST  Fri Aug 11 02:55:15 2017 +0000
+++ b/graphics/freeimage/PLIST  Fri Aug 11 15:26:20 2017 +0000
@@ -1,6 +1,13 @@
-@comment $NetBSD: PLIST,v 1.1 2015/02/12 22:40:05 snj Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/08/11 15:26:20 nros Exp $
 include/FreeImage.h
 lib/libfreeimage-${PKGVERSION_NOREV}.so
 lib/libfreeimage.a
 lib/libfreeimage.so
 lib/libfreeimage.so.3
+share/doc/freeimage/LICENSE.LibJXR
+share/doc/freeimage/LICENSE.LibTIFF4
+share/doc/freeimage/LICENSE.LibWebP
+share/doc/freeimage/LICENSE.OpenEXR
+share/doc/freeimage/LICENSE.OpenJPEG
+share/doc/freeimage/LICENSE.dcb
+share/doc/freeimage/LICENSE.x3f
diff -r 465f12be5403 -r 656aca588e9e graphics/freeimageplus/Makefile
--- a/graphics/freeimageplus/Makefile   Fri Aug 11 02:55:15 2017 +0000
+++ b/graphics/freeimageplus/Makefile   Fri Aug 11 15:26:20 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2017/07/05 08:46:26 nros Exp $
+# $NetBSD: Makefile,v 1.3 2017/08/11 15:26:21 nros Exp $
 
 DISTNAME=      FreeImage3170
 PKGNAME=       freeimageplus-3.17.0
+PKGREVISION=   1
 CATEGORIES=    devel graphics
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=freeimage/}
 EXTRACT_SUFX=  .zip
@@ -22,7 +23,25 @@
 
 WRKSRC=                ${WRKDIR}/FreeImage
 
-INSTALLATION_DIRS+= include lib
+INSTALLATION_DIRS+= include lib share/doc/${PKGBASE}
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibJXR/LICENCE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.LibJXR
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibOpenJPEG/LICENSE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.OpenJPEG
+       ${HEAD} -n 31 ${WRKSRC}/Source/LibRawLite/internal/libraw_x3f.cpp \
+               > ${WRKDIR}/LICENSE.x3f
+       ${HEAD} -n 33 ${WRKSRC}/Source/LibRawLite/internal/dcb_demosaicing.c \
+               > ${WRKDIR}/LICENSE.dcb
+       ${HEAD} -n 25 ${WRKSRC}/Source/LibTIFF4/tif_open.c \
+               > ${WRKDIR}/LICENSE.LibTIFF4
+       ${INSTALL_DATA} ${WRKDIR}/LICENSE.* \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+       ${INSTALL_DATA} ${WRKSRC}/Source/LibWebP/COPYING \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.LibWebP
+       ${INSTALL_DATA} ${WRKSRC}/Source/OpenEXR/Copyrights/openexr/LICENSE \
+               ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/LICENSE.OpenEXR
 
 PLIST_SUBST+=  PKGVERSION_NOREV=${PKGVERSION_NOREV}
 
diff -r 465f12be5403 -r 656aca588e9e graphics/freeimageplus/PLIST
--- a/graphics/freeimageplus/PLIST      Fri Aug 11 02:55:15 2017 +0000
+++ b/graphics/freeimageplus/PLIST      Fri Aug 11 15:26:20 2017 +0000
@@ -1,6 +1,13 @@
-@comment $NetBSD: PLIST,v 1.1 2015/05/27 22:06:11 markd Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/08/11 15:26:21 nros Exp $
 include/FreeImagePlus.h
 lib/libfreeimageplus-${PKGVERSION_NOREV}.so
 lib/libfreeimageplus.a
 lib/libfreeimageplus.so
 lib/libfreeimageplus.so.3
+share/doc/freeimageplus/LICENSE.LibJXR
+share/doc/freeimageplus/LICENSE.LibTIFF4
+share/doc/freeimageplus/LICENSE.LibWebP
+share/doc/freeimageplus/LICENSE.OpenEXR
+share/doc/freeimageplus/LICENSE.OpenJPEG
+share/doc/freeimageplus/LICENSE.dcb
+share/doc/freeimageplus/LICENSE.x3f



Home | Main Index | Thread Index | Old Index