pkgsrc/graphics/py-Pillow/Makefile

39 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2015/01/03 15:46:00 adam Exp $
DISTNAME= Pillow-2.7.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= graphics python
MASTER_SITES= https://pypi.python.org/packages/source/P/Pillow/
EXTRACT_SUFX= .zip
MAINTAINER= obache@NetBSD.org
2014-07-06 14:18:39 +02:00
HOMEPAGE= http://python-pillow.github.io/
COMMENT= Python Imaging Library (Fork)
CONFLICTS+= ${PYPKGPREFIX}-imaging-[0-9]*
SUBST_CLASSES+= fix-path
SUBST_MESSAGE.fix-path= Fixing paths.
SUBST_STAGE.fix-path= pre-configure
SUBST_FILES.fix-path= setup.py
SUBST_SED.fix-path= -e 's,/usr/pkg,${PREFIX},'
SUBST_SED.fix-path+= -e 's,JPEG_ROOT = None,JPEG_ROOT = _lib_include("${BUILDLINK_PREFIX.jpeg}"),'
Update py-Pillow to 2.4.0. * Based on patch from adam@. * Add self test target. Changelog (Pillow) ================== 2.4.0 (04/01/2014) ------------------ - Indexed Transparency handled for conversions between L, RGB, and P modes. Fixes #510 [wiredfool] - Conversions enabled from RGBA->P, Fixes #544 [wiredfool] - Improved icns support [al45tair] - Fix libtiff leaking open files, fixes #580 [wiredfool] - Fixes for Jpeg encoding in Python 3, fixes #577 [wiredfool] - Added support for JPEG 2000 [al45tair] - Add more detailed error messages to Image.py [larsmans] - Avoid conflicting _expand functions in PIL & MINGW, fixes #538 [aclark] - Merge from Philippe Lagadec’s OleFileIO_PL fork [vadmium] - Fix ImageColor.getcolor [homm] - Make ICO files work with the ImageFile.Parser interface, fixes #522 [wiredfool] - Handle 32bit compiled python on 64bit architecture [choppsv1] - Fix support for characters >128 using .pcf or .pil fonts in Py3k. Fixes #505 [wiredfool] - Skip CFFI test earlier if it's not installed [wiredfool] - Fixed opening and saving odd sized .pcx files, fixes #523 [wiredfool] - Fixed palette handling when converting from mode P->RGB->P [d_schmidt] - Fixed saving mode P image as a PNG with transparency = palette color 0 [d-schmidt] - Improve heuristic used when saving progressive and optimized JPEGs with high quality values [e98cuenc] - Fixed DOS with invalid palette size or invalid image size in BMP file [wiredfool] - Added support for BMP version 4 and 5 [eddwardo, wiredfool] - Fix segfault in getfont when passed a memory resident font [wiredfool] - Fix crash on Saving a PNG when icc-profile is None [brutasse] - Cffi+Python implementation of the PixelAccess object [wiredfool] - PixelAccess returns unsigned ints for I16 mode [wiredfool] - Minor patch on booleans + Travis [sciunto] - Look in multiarch paths in GNU platforms [pinotree] - Add arch support for pcc64, s390, s390x, armv7l, aarch64 [manisandro] - Add arch support for ppc [wiredfool] - Correctly quote file names for WindowsViewer command [cgohlke] - Prefer homebrew freetype over X11 freetype (but still allow both) [dmckeone]
2014-04-18 15:00:49 +02:00
SUBST_SED.fix-path+= -e 's,JPEG2K_ROOT = None,JPEG2K_ROOT = _lib_include("${BUILDLINK_PREFIX.openjpeg}"),'
SUBST_SED.fix-path+= -e 's,ZLIB_ROOT = None,ZLIB_ROOT = _lib_include("${BUILDLINK_PREFIX.zlib}"),'
SUBST_SED.fix-path+= -e 's,TIFF_ROOT = None,TIFF_ROOT = _lib_include("${BUILDLINK_PREFIX.tiff}"),'
SUBST_SED.fix-path+= -e 's,FREETYPE_ROOT = None,FREETYPE_ROOT = _lib_include("${BUILDLINK_PREFIX.freetype2}"),'
SUBST_SED.fix-path+= -e 's,LCMS_ROOT = None,LCMS_ROOT = _lib_include("${BUILDLINK_PREFIX.lcms2}"),'
Update py-Pillow to 2.4.0. * Based on patch from adam@. * Add self test target. Changelog (Pillow) ================== 2.4.0 (04/01/2014) ------------------ - Indexed Transparency handled for conversions between L, RGB, and P modes. Fixes #510 [wiredfool] - Conversions enabled from RGBA->P, Fixes #544 [wiredfool] - Improved icns support [al45tair] - Fix libtiff leaking open files, fixes #580 [wiredfool] - Fixes for Jpeg encoding in Python 3, fixes #577 [wiredfool] - Added support for JPEG 2000 [al45tair] - Add more detailed error messages to Image.py [larsmans] - Avoid conflicting _expand functions in PIL & MINGW, fixes #538 [aclark] - Merge from Philippe Lagadec’s OleFileIO_PL fork [vadmium] - Fix ImageColor.getcolor [homm] - Make ICO files work with the ImageFile.Parser interface, fixes #522 [wiredfool] - Handle 32bit compiled python on 64bit architecture [choppsv1] - Fix support for characters >128 using .pcf or .pil fonts in Py3k. Fixes #505 [wiredfool] - Skip CFFI test earlier if it's not installed [wiredfool] - Fixed opening and saving odd sized .pcx files, fixes #523 [wiredfool] - Fixed palette handling when converting from mode P->RGB->P [d_schmidt] - Fixed saving mode P image as a PNG with transparency = palette color 0 [d-schmidt] - Improve heuristic used when saving progressive and optimized JPEGs with high quality values [e98cuenc] - Fixed DOS with invalid palette size or invalid image size in BMP file [wiredfool] - Added support for BMP version 4 and 5 [eddwardo, wiredfool] - Fix segfault in getfont when passed a memory resident font [wiredfool] - Fix crash on Saving a PNG when icc-profile is None [brutasse] - Cffi+Python implementation of the PixelAccess object [wiredfool] - PixelAccess returns unsigned ints for I16 mode [wiredfool] - Minor patch on booleans + Travis [sciunto] - Look in multiarch paths in GNU platforms [pinotree] - Add arch support for pcc64, s390, s390x, armv7l, aarch64 [manisandro] - Add arch support for ppc [wiredfool] - Correctly quote file names for WindowsViewer command [cgohlke] - Prefer homebrew freetype over X11 freetype (but still allow both) [dmckeone]
2014-04-18 15:00:49 +02:00
do-test:
${RUN}cd ${WRKSRC};${PKGSRC_SETENV} ${TEST_ENV} ${PYTHONBIN} selftest.py
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
Update Pillow to 2.3.0. Changelog (Pillow) ================== 2.3.0 (2014-01-01) ------------------ - Stop leaking filename parameter passed to getfont [jpharvey] - Report availability of LIBTIFF during setup and selftest [cgohlke] - Fix msvc build error C1189: "No Target Architecture" [cgohlke] - Fix memory leak in font_getsize [wiredfool] - Correctly prioritize include and library paths [ohanar] - Image.point fixes for numpy.array and docs [wiredfool] - Save the transparency header by default for PNGs [wiredfool] - Support for PNG tRNS header when converting from RGB->RGBA [wiredfool] - PyQT5 Support [wiredfool] - Updates for saving color tiffs w/compression using libtiff [wiredfool] - 2gigapix image fixes and redux [wiredfool] - Save arbitrary tags in Tiff image files [wiredfool] - Quote filenames and title before using on command line [tmccombs] - Fixed Viewer.show to return properly [tmccombs] - Documentation fixes [wiredfool] - Fixed memory leak saving images as webp when webpmux is available [cezarsa] - Fix compiling with FreeType 2.5.1 [stromnov] - Adds directories for NetBSD. [deepy] - Support RGBA TIFF with missing ExtraSamples tag [cgohlke] - Lossless WEBP Support [wiredfool] - Take compression as an option in the save call for tiffs [wiredfool] - Add support for saving lossless WebP. Just pass 'lossless=True' to save() [liftoff] - LCMS support upgraded from version 1 to version 2, fixes #343 [wiredfool] - Added more raw decoder 16 bit pixel formats [svanheulen] - Document remaining Image* modules listed in PIL handbook [irksep] - Document ImageEnhance, ImageFile, ImageFilter, ImageFont, ImageGrab, ImageMath, and ImageOps [irksep] - Port and update docs for Image, ImageChops, ImageColor, and ImageDraw [irksep] - Move or copy content from README.rst to docs/ [irksep] - Respect CFLAGS/LDFLAGS when searching for headers/libs [iElectric] - Port PIL Handbook tutorial and appendices [irksep] - Alpha Premultiplication support for transform and resize [wiredfool] - Fixes to make Pypy 2.1.0 work on Ubuntu 12.04/64 [wiredfool] 2.2.2 (2013-12-11) ------------------ - Fix #427: compiling with FreeType 2.5.1 [stromnov]
2014-01-23 09:54:59 +01:00
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
Update py-Pillow to 2.4.0. * Based on patch from adam@. * Add self test target. Changelog (Pillow) ================== 2.4.0 (04/01/2014) ------------------ - Indexed Transparency handled for conversions between L, RGB, and P modes. Fixes #510 [wiredfool] - Conversions enabled from RGBA->P, Fixes #544 [wiredfool] - Improved icns support [al45tair] - Fix libtiff leaking open files, fixes #580 [wiredfool] - Fixes for Jpeg encoding in Python 3, fixes #577 [wiredfool] - Added support for JPEG 2000 [al45tair] - Add more detailed error messages to Image.py [larsmans] - Avoid conflicting _expand functions in PIL & MINGW, fixes #538 [aclark] - Merge from Philippe Lagadec’s OleFileIO_PL fork [vadmium] - Fix ImageColor.getcolor [homm] - Make ICO files work with the ImageFile.Parser interface, fixes #522 [wiredfool] - Handle 32bit compiled python on 64bit architecture [choppsv1] - Fix support for characters >128 using .pcf or .pil fonts in Py3k. Fixes #505 [wiredfool] - Skip CFFI test earlier if it's not installed [wiredfool] - Fixed opening and saving odd sized .pcx files, fixes #523 [wiredfool] - Fixed palette handling when converting from mode P->RGB->P [d_schmidt] - Fixed saving mode P image as a PNG with transparency = palette color 0 [d-schmidt] - Improve heuristic used when saving progressive and optimized JPEGs with high quality values [e98cuenc] - Fixed DOS with invalid palette size or invalid image size in BMP file [wiredfool] - Added support for BMP version 4 and 5 [eddwardo, wiredfool] - Fix segfault in getfont when passed a memory resident font [wiredfool] - Fix crash on Saving a PNG when icc-profile is None [brutasse] - Cffi+Python implementation of the PixelAccess object [wiredfool] - PixelAccess returns unsigned ints for I16 mode [wiredfool] - Minor patch on booleans + Travis [sciunto] - Look in multiarch paths in GNU platforms [pinotree] - Add arch support for pcc64, s390, s390x, armv7l, aarch64 [manisandro] - Add arch support for ppc [wiredfool] - Correctly quote file names for WindowsViewer command [cgohlke] - Prefer homebrew freetype over X11 freetype (but still allow both) [dmckeone]
2014-04-18 15:00:49 +02:00
.include "../../graphics/openjpeg/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"