diff options
author | nros <nros@pkgsrc.org> | 2017-08-11 15:26:20 +0000 |
---|---|---|
committer | nros <nros@pkgsrc.org> | 2017-08-11 15:26:20 +0000 |
commit | 7f0d678b135b615a6ff455dae0408cadb7f63e85 (patch) | |
tree | 184f372f16d5181d75b660cc481f60e70c5f0151 | |
parent | 8526a2392605a31b673460e7cd2338c55b3c0c72 (diff) | |
download | pkgsrc-7f0d678b135b615a6ff455dae0408cadb7f63e85.tar.gz |
Install licenses and copyright information in freeimage and
freeimage-plus packages in order to comply with binary redistribution of
the boundled libraries.
-rw-r--r-- | graphics/freeimage/Makefile | 24 | ||||
-rw-r--r-- | graphics/freeimage/PLIST | 9 | ||||
-rw-r--r-- | graphics/freeimageplus/Makefile | 23 | ||||
-rw-r--r-- | graphics/freeimageplus/PLIST | 9 |
4 files changed, 58 insertions, 7 deletions
diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile index 41e1a94c6b6..65f93e80bc8 100644 --- a/graphics/freeimage/Makefile +++ b/graphics/freeimage/Makefile @@ -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 @@ USE_TOOLS+= gmake 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 --git a/graphics/freeimage/PLIST b/graphics/freeimage/PLIST index 2337179f368..59fc2d1020a 100644 --- a/graphics/freeimage/PLIST +++ b/graphics/freeimage/PLIST @@ -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 --git a/graphics/freeimageplus/Makefile b/graphics/freeimageplus/Makefile index 48e537053d3..af4e11376da 100644 --- a/graphics/freeimageplus/Makefile +++ b/graphics/freeimageplus/Makefile @@ -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 @@ DISTINFO_FILE= ${.CURDIR}/../../graphics/freeimage/distinfo 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 --git a/graphics/freeimageplus/PLIST b/graphics/freeimageplus/PLIST index b1ce9169613..c6db97aa98c 100644 --- a/graphics/freeimageplus/PLIST +++ b/graphics/freeimageplus/PLIST @@ -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 |