pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics update to 1.1.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18e40f58a952
branches:  trunk
changeset: 500734:18e40f58a952
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Oct 12 14:48:44 2005 +0000

description:
update to 1.1.5
changes:
+ Runs under Python 1.5.2 and newer, including 2.4.  You may need
  additional libraries to build under 1.5.2; see instructions below.
+ New build procedure.  The setup.py file now configures and builds
  the core library as well as the bindings, in one step.
+ Added stub drivers for BUFR, FITS, GRIB, HDF5, and WMF files.
  Stub drivers can identify the file format, but relies on
  application-provided drivers to read or write images in that
  format.
+ Added experimental "LA" mode support. An "LA" image is an "L"
  image with an attached transparency layer.
+ Added "RankFilter", "MinFilter", "MedianFilter", and "MaxFilter"
  classes to the ImageFilter module.
+ Improved support for applications using multiple threads on
  systems with multiple processors and/or hyperthreading processors.
+ Added EXIF GPSInfo read support for JPEG files.
+ Lots of bug fixes and performance tweaks.

pkgsrc note: freetype and tiff support isn't built yet, should be
separate pkgs

diffstat:

 graphics/py-imaging/Makefile           |   17 +-
 graphics/py-imaging/PLIST              |   24 +++-
 graphics/py-imaging/distinfo           |   11 +-
 graphics/py-imaging/patches/patch-aa   |   26 ---
 graphics/py-imaging/patches/patch-ab   |  232 +++++---------------------------
 graphics/py-imagingtk/Makefile         |   16 +-
 graphics/py-imagingtk/distinfo         |   10 +-
 graphics/py-imagingtk/patches/patch-aa |   97 ++++++-------
 8 files changed, 123 insertions(+), 310 deletions(-)

diffs (truncated from 547 to 300 lines):

diff -r 6a504a35c511 -r 18e40f58a952 graphics/py-imaging/Makefile
--- a/graphics/py-imaging/Makefile      Wed Oct 12 14:30:06 2005 +0000
+++ b/graphics/py-imaging/Makefile      Wed Oct 12 14:48:44 2005 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2005/04/11 21:46:08 tv Exp $
+# $NetBSD: Makefile,v 1.24 2005/10/12 14:48:44 drochner Exp $
 
-DISTNAME=      Imaging-1.1.4
-PKGNAME=       ${PYPKGPREFIX}-imaging-1.1.4
-PKGREVISION=   1
+DISTNAME=      Imaging-1.1.5
+PKGNAME=       ${PYPKGPREFIX}-imaging-1.1.5
 CATEGORIES=    graphics python
 MASTER_SITES=  http://effbot.org/downloads/
 
@@ -13,19 +12,11 @@
 DIST_SUBDIR=    python
 PYDISTUTILSPKG= yes
 PY_PATCHPLIST= yes
-GNU_CONFIGURE= yes
-
-do-configure:
-       (cd ${WRKSRC}/libImaging && ${SETENV} ${CONFIGURE_ENV} ./configure \
-        ${CONFIGURE_ARGS} && ${SETENV} ${MAKE_ENV} ${MAKE})
-       ${SED} "s|@JPEGDIR@|${BUILDLINK_PREFIX.jpeg}|g" <${WRKSRC}/setup.py \
-        >${WRKSRC}/setup.py.tmp && ${MV} -f ${WRKSRC}/setup.py.tmp \
-        ${WRKSRC}/setup.py
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/${PYINC}/PIL
        (cd ${WRKSRC}/libImaging; ${INSTALL_DATA} \
-               ImConfig.h ImPlatform.h Imaging.h \
+               ImPlatform.h Imaging.h \
                ${PREFIX}/${PYINC}/PIL )
 
 .include "../../lang/python/extension.mk"
diff -r 6a504a35c511 -r 18e40f58a952 graphics/py-imaging/PLIST
--- a/graphics/py-imaging/PLIST Wed Oct 12 14:30:06 2005 +0000
+++ b/graphics/py-imaging/PLIST Wed Oct 12 14:48:44 2005 +0000
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2003/09/14 16:43:50 recht Exp $
-${PYINC}/PIL/ImConfig.h
+@comment $NetBSD: PLIST,v 1.7 2005/10/12 14:48:44 drochner Exp $
 ${PYINC}/PIL/ImPlatform.h
 ${PYINC}/PIL/Imaging.h
 ${PYSITELIB}/PIL.pth
@@ -12,6 +11,9 @@
 ${PYSITELIB}/PIL/BmpImagePlugin.py
 ${PYSITELIB}/PIL/BmpImagePlugin.pyc
 ${PYSITELIB}/PIL/BmpImagePlugin.pyo
+${PYSITELIB}/PIL/BufrStubImagePlugin.py
+${PYSITELIB}/PIL/BufrStubImagePlugin.pyc
+${PYSITELIB}/PIL/BufrStubImagePlugin.pyo
 ${PYSITELIB}/PIL/ContainerIO.py
 ${PYSITELIB}/PIL/ContainerIO.pyc
 ${PYSITELIB}/PIL/ContainerIO.pyo
@@ -27,6 +29,9 @@
 ${PYSITELIB}/PIL/ExifTags.py
 ${PYSITELIB}/PIL/ExifTags.pyc
 ${PYSITELIB}/PIL/ExifTags.pyo
+${PYSITELIB}/PIL/FitsStubImagePlugin.py
+${PYSITELIB}/PIL/FitsStubImagePlugin.pyc
+${PYSITELIB}/PIL/FitsStubImagePlugin.pyo
 ${PYSITELIB}/PIL/FliImagePlugin.py
 ${PYSITELIB}/PIL/FliImagePlugin.pyc
 ${PYSITELIB}/PIL/FliImagePlugin.pyo
@@ -51,6 +56,15 @@
 ${PYSITELIB}/PIL/GimpPaletteFile.py
 ${PYSITELIB}/PIL/GimpPaletteFile.pyc
 ${PYSITELIB}/PIL/GimpPaletteFile.pyo
+${PYSITELIB}/PIL/GribStubImagePlugin.py
+${PYSITELIB}/PIL/GribStubImagePlugin.pyc
+${PYSITELIB}/PIL/GribStubImagePlugin.pyo
+${PYSITELIB}/PIL/Hdf5StubImagePlugin.py
+${PYSITELIB}/PIL/Hdf5StubImagePlugin.pyc
+${PYSITELIB}/PIL/Hdf5StubImagePlugin.pyo
+${PYSITELIB}/PIL/IcnsImagePlugin.py
+${PYSITELIB}/PIL/IcnsImagePlugin.pyc
+${PYSITELIB}/PIL/IcnsImagePlugin.pyo
 ${PYSITELIB}/PIL/IcoImagePlugin.py
 ${PYSITELIB}/PIL/IcoImagePlugin.pyc
 ${PYSITELIB}/PIL/IcoImagePlugin.pyo
@@ -84,6 +98,9 @@
 ${PYSITELIB}/PIL/ImageFont.py
 ${PYSITELIB}/PIL/ImageFont.pyc
 ${PYSITELIB}/PIL/ImageFont.pyo
+${PYSITELIB}/PIL/ImageGL.py
+${PYSITELIB}/PIL/ImageGL.pyc
+${PYSITELIB}/PIL/ImageGL.pyo
 ${PYSITELIB}/PIL/ImageGrab.py
 ${PYSITELIB}/PIL/ImageGrab.pyc
 ${PYSITELIB}/PIL/ImageGrab.pyo
@@ -171,6 +188,9 @@
 ${PYSITELIB}/PIL/SgiImagePlugin.py
 ${PYSITELIB}/PIL/SgiImagePlugin.pyc
 ${PYSITELIB}/PIL/SgiImagePlugin.pyo
+${PYSITELIB}/PIL/SpiderImagePlugin.py
+${PYSITELIB}/PIL/SpiderImagePlugin.pyc
+${PYSITELIB}/PIL/SpiderImagePlugin.pyo
 ${PYSITELIB}/PIL/SunImagePlugin.py
 ${PYSITELIB}/PIL/SunImagePlugin.pyc
 ${PYSITELIB}/PIL/SunImagePlugin.pyo
diff -r 6a504a35c511 -r 18e40f58a952 graphics/py-imaging/distinfo
--- a/graphics/py-imaging/distinfo      Wed Oct 12 14:30:06 2005 +0000
+++ b/graphics/py-imaging/distinfo      Wed Oct 12 14:48:44 2005 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.8 2005/02/24 08:45:12 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/10/12 14:48:44 drochner Exp $
 
-SHA1 (python/Imaging-1.1.4.tar.gz) = 611972b63272bf4967ca966848ba8ddda970abcc
-RMD160 (python/Imaging-1.1.4.tar.gz) = c53065f5e73b2f5ac5ff132a47c157e5290f0488
-Size (python/Imaging-1.1.4.tar.gz) = 416338 bytes
-SHA1 (patch-aa) = ecca2f71e73f67d7bbd877ed7d70ba6bac22f67d
-SHA1 (patch-ab) = c5444ea51d49933d99dc568351dec7d0e0bea826
+SHA1 (python/Imaging-1.1.5.tar.gz) = 06705b31b534a15aef827bccc87dceb9ebc51b9f
+RMD160 (python/Imaging-1.1.5.tar.gz) = 99ca581f2f96d1112f6c36eccdf96da1ac014a04
+Size (python/Imaging-1.1.5.tar.gz) = 429570 bytes
+SHA1 (patch-ab) = ccf70356bba6d5628d8cc40c1101dc4338bb6a55
diff -r 6a504a35c511 -r 18e40f58a952 graphics/py-imaging/patches/patch-aa
--- a/graphics/py-imaging/patches/patch-aa      Wed Oct 12 14:30:06 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2004/02/26 17:43:21 drochner Exp $
-
---- libImaging/Makefile.in.orig        2003-04-22 18:11:26.000000000 +0200
-+++ libImaging/Makefile.in     2004-02-26 18:38:30.000000000 +0100
-@@ -30,10 +30,10 @@
- # Other things that are customizable but not by configure
- 
- INCLDIR=      $(srcdir)/.
--JPEGINCLUDE=  /usr/local/include
-+JPEGINCLUDE=  $(PREFIX)/include
- OPT=          @OPT@
- #OPT=         -g
--CFLAGS=               $(OPT) -I$(INCLDIR) -I$(JPEGINCLUDE) $(DEFS)
-+CFLAGS=               $(OPT) -I$(INCLDIR) -I$(JPEGINCLUDE) $(DEFS) -fPIC
- 
- MKDEP=                mkdep
- SHELL=                /bin/sh
-@@ -82,7 +82,7 @@
- all:          coretest $(LIB)
- 
- coretest:     coretest.o $(LIB)
--              $(CC) -o coretest coretest.o $(LIB) $(LIBS)
-+              $(CC) $(LDFLAGS) -o coretest coretest.o $(LIB) $(LIBS)
- 
- $(LIB):               $& $(OBJS)
-               -rm -f $(LIB)
diff -r 6a504a35c511 -r 18e40f58a952 graphics/py-imaging/patches/patch-ab
--- a/graphics/py-imaging/patches/patch-ab      Wed Oct 12 14:30:06 2005 +0000
+++ b/graphics/py-imaging/patches/patch-ab      Wed Oct 12 14:48:44 2005 +0000
@@ -1,200 +1,44 @@
-$NetBSD: patch-ab,v 1.3 2003/06/27 10:12:00 drochner Exp $
+$NetBSD: patch-ab,v 1.4 2005/10/12 14:48:44 drochner Exp $
 
---- setup.py.orig      2003-05-09 14:00:56.000000000 +0200
-+++ setup.py   2003-06-24 14:34:28.000000000 +0200
-@@ -23,7 +23,7 @@
- 
- # on windows, the build script expects to find both library files and
- # include files in the directories below.  tweak as necessary.
--JPEGDIR = "../../kits/jpeg-6b"
-+JPEGDIR = "/usr/pkg"
- ZLIBDIR = "../../kits/zlib-1.1.4"
- FREETYPEDIR = "../../kits/freetype-2.0"
+--- setup.py.orig      2005-03-23 19:16:40.000000000 +0100
++++ setup.py
+@@ -79,10 +79,7 @@ from distutils import sysconfig
+ from distutils.core import Extension, setup
+ from distutils.command.build_ext import build_ext
  
-@@ -69,6 +69,8 @@
-                 LIBRARY_DIRS.append(JPEGDIR)
-             else:
-                 LIBRARIES.append("jpeg")
-+              INCLUDE_DIRS.append(JPEGDIR + "/include")
-+              LIBRARY_DIRS.append(JPEGDIR + "/lib")
-         elif lib == "TIFF":
-             HAVE_LIBTIFF = 1
-             LIBRARIES.append("tiff")
-@@ -117,177 +119,6 @@
-                 break
- 
- # --------------------------------------------------------------------
--# configure imagingtk module
--
 -try:
 -    import _tkinter
--    TCL_VERSION = _tkinter.TCL_VERSION[:3]
--except (ImportError, AttributeError):
--    pass
--else:
--    INCLUDE_DIRS = ["libImaging"]
--    LIBRARY_DIRS = ["libImaging"]
--    LIBRARIES = ["Imaging"]
--    EXTRA_COMPILE_ARGS = None
--    EXTRA_LINK_ARGS = None
--    if sys.platform == "win32":
--        # locate tcl/tk on windows
--        if TCLROOT:
--            path = [TCLROOT]
--        else:
--            path = [
--                os.path.join("/py" + PY_VERSION, "Tcl"),
--                os.path.join(os.environ.get("ProgramFiles", ""), "Tcl"),
--                # FIXME: add more directories here?
--                ]
--        for root in path:
--            TCLROOT = os.path.abspath(root)
--            if os.path.isfile(os.path.join(TCLROOT, "include", "tk.h")):
--                break
--        else:
--            TCLROOT = None
--            print "*** Cannot find Tcl/Tk headers and library files."
--            print "*** To build the Tkinter interface, set the TCLROOT"
--            print "*** variable in the setup.py file."
--
--        # print "using Tcl/Tk libraries at", TCLROOT
--        # print "using Tcl/Tk version", TCL_VERSION
--
--        if TCLROOT:
--            version = TCL_VERSION[0] + TCL_VERSION[2]
--            INCLUDE_DIRS.append(os.path.join(TCLROOT, "include"))
--            LIBRARY_DIRS.append(os.path.join(TCLROOT, "lib"))
--            LIBRARIES.extend(["tk" + version, "tcl" + version])
--            HAVE_TCLTK = 1
--    else:
--        tk_framework_found = 0
--        if sys.platform == 'darwin':
--            # First test for a MacOSX/darwin framework install
--            from os.path import join, exists
--            framework_dirs = [
--                '/System/Library/Frameworks/',
--                '/Library/Frameworks',
--                join(os.getenv('HOME'), '/Library/Frameworks')
--            ]
--
--            # Find the directory that contains the Tcl.framwork and Tk.framework
--            # bundles.
--            # XXX distutils should support -F!
--            for F in framework_dirs:
--                # both Tcl.framework and Tk.framework should be present
--                for fw in 'Tcl', 'Tk':
--                    if not exists(join(F, fw + '.framework')):
--                        break
--                else:
--                    # ok, F is now directory with both frameworks. Continure
--                    # building
--                    tk_framework_found = 1
--                    break
--            if tk_framework_found:
--                # For 8.4a2, we must add -I options that point inside the Tcl and Tk
--                # frameworks. In later release we should hopefully be able to pass
--                # the -F option to gcc, which specifies a framework lookup path.
--                #
--                tk_include_dirs = [
--                    join(F, fw + '.framework', H)
--                    for fw in 'Tcl', 'Tk'
--                    for H in 'Headers', 'Versions/Current/PrivateHeaders'
--                ]
--
--                # For 8.4a2, the X11 headers are not included. Rather than include a
--                # complicated search, this is a hard-coded path. It could bail out
--                # if X11 libs are not found...
--                # tk_include_dirs.append('/usr/X11R6/include')
--                INCLUDE_DIRS = INCLUDE_DIRS + tk_include_dirs
--                frameworks = ['-framework', 'Tcl', '-framework', 'Tk']
--                EXTRA_COMPILE_ARGS = frameworks
--                EXTRA_LINK_ARGS = frameworks
--                HAVE_TCLTK = 1
+-except ImportError:
+-    _tkinter = None
++_tkinter = None
+ 
+ def add_directory(path, dir, where=None):
+     if dir and os.path.isdir(dir) and dir not in path:
+@@ -177,9 +174,6 @@ class pil_build_ext(build_ext):
+         #
+         # add standard directories
+ 
+-        add_directory(library_dirs, "/usr/local/lib")
+-        add_directory(include_dirs, "/usr/local/include")
 -
--        if not tk_framework_found:
--            # assume the libraries are installed in the default location
--            LIBRARIES.extend(["tk" + TCL_VERSION, "tcl" + TCL_VERSION])
--            HAVE_TCLTK = 1
--
--    if HAVE_TCLTK:
--        MODULES.append(
--            Extension(
--                "_imagingtk",
--                ["_imagingtk.c", "Tk/tkImaging.c"],
--                include_dirs=INCLUDE_DIRS,
--                library_dirs=LIBRARY_DIRS,
--                libraries=LIBRARIES
--                )
--            )
--
--# --------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index