diff options
author | perky <perky@FreeBSD.org> | 2003-11-10 22:57:37 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-11-10 22:57:37 +0800 |
commit | f6e50c50eaed9071c15d445743710ddcd3fd4733 (patch) | |
tree | c3de2a922cf012335e0736fb9fb67ec194683a10 | |
parent | 589fb48c0d40b213a88a16040587a9544dab9363 (diff) | |
download | freebsd-ports-gnome-f6e50c50eaed9071c15d445743710ddcd3fd4733.tar.gz freebsd-ports-gnome-f6e50c50eaed9071c15d445743710ddcd3fd4733.tar.zst freebsd-ports-gnome-f6e50c50eaed9071c15d445743710ddcd3fd4733.zip |
Add port for py-magick 0.5, a python binding for ImageMagick.
PR: 58843
Submitted by: Tim Hemel <tim@n2it.net>
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/py-magick/Makefile | 24 | ||||
-rw-r--r-- | graphics/py-magick/distinfo | 1 | ||||
-rw-r--r-- | graphics/py-magick/files/patch-aa | 41 | ||||
-rw-r--r-- | graphics/py-magick/files/patch-ab | 12 | ||||
-rw-r--r-- | graphics/py-magick/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/py-magick/pkg-plist | 1 |
7 files changed, 85 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index b0f081ea38e4..d746990310ee 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -307,6 +307,7 @@ SUBDIR += py-graphviz SUBDIR += py-imaging SUBDIR += py-imaging-handbook + SUBDIR += py-magick SUBDIR += py-ming SUBDIR += py-opengl SUBDIR += py-paint diff --git a/graphics/py-magick/Makefile b/graphics/py-magick/Makefile new file mode 100644 index 000000000000..d03ed8216885 --- /dev/null +++ b/graphics/py-magick/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: py-magick +# Date created: 2 November 2003 +# Whom: Tim Hemel <tim@n2it.net> +# +# $FreeBSD$ +# + +PORTNAME= magick +PORTVERSION= 0.5 +CATEGORIES= graphics python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pylab +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= magick-${PORTVERSION} + +MAINTAINER= tim@n2it.net +COMMENT= Python bindings for ImageMagick + +LIB_DEPENDS= Magick.6:${PORTSDIR}/graphics/ImageMagick + +USE_PYTHON= yes +USE_PYDISTUTILS=yes + +.include <bsd.port.mk> diff --git a/graphics/py-magick/distinfo b/graphics/py-magick/distinfo new file mode 100644 index 000000000000..1cd3debac3fe --- /dev/null +++ b/graphics/py-magick/distinfo @@ -0,0 +1 @@ +MD5 (magick-0.5.tar.gz) = a7a40ff43f2c5ce358203c70445483c0 diff --git a/graphics/py-magick/files/patch-aa b/graphics/py-magick/files/patch-aa new file mode 100644 index 000000000000..8564abe2e37f --- /dev/null +++ b/graphics/py-magick/files/patch-aa @@ -0,0 +1,41 @@ +--- setup.py.orig Sun Apr 13 00:48:35 2003 ++++ setup.py Sun Nov 2 20:18:56 2003 +@@ -1,6 +1,7 @@ + from distutils.core import setup, Extension + import commands + import os ++import re + import sys + + if sys.platform != 'win32': +@@ -15,15 +16,27 @@ + except: + raise SystemExit + val = commands.getoutput('Magick-config --prefix') +- libs = ['Magick'] ++ ++ libs = commands.getoutput('Magick-config --libs') ++ libs = re.split('\s+',libs) ++ libs = map(lambda x:x[2:], libs) ++ ++ incdir = commands.getoutput('Magick-config --cppflags') ++ incdir = re.split('\s+',incdir) ++ incdir = map(lambda x:x[2:], incdir) ++ ++ libdir = commands.getoutput('Magick-config --ldflags') ++ libdir = re.split('\s+',libdir) ++ libdir = map(lambda x:x[2:], libdir) ++ + else: + libs = ['CORE_RL_magick_'] + val = os.environ.get('MAGICK_HOME') + if not val: + raise SystemExit, "ImageMagick not installed correctly" ++ libdir =[os.path.join(val,'lib')] ++ incdir =[os.path.join(val,'include')] + +-libdir =[os.path.join(val,'lib')] +-incdir =[os.path.join(val,'include')] + + setup(name = "magick", + version = "0.5", diff --git a/graphics/py-magick/files/patch-ab b/graphics/py-magick/files/patch-ab new file mode 100644 index 000000000000..d7505e9cc3f7 --- /dev/null +++ b/graphics/py-magick/files/patch-ab @@ -0,0 +1,12 @@ +--- imageobject.c.orig Sun Nov 2 20:12:40 2003 ++++ imageobject.c Sun Nov 2 20:12:52 2003 +@@ -6130,8 +6130,8 @@ + switch(*attr) { + case 'a': + if (strcmp(attr, "affine")==0) { +- CLEAR_ERR; + AffineMatrix affine; ++ CLEAR_ERR; + if (!get_affine_matrix(&affine, val)) return -1; + info->affine = affine; + return 0; diff --git a/graphics/py-magick/pkg-descr b/graphics/py-magick/pkg-descr new file mode 100644 index 000000000000..a616e4b6e4f0 --- /dev/null +++ b/graphics/py-magick/pkg-descr @@ -0,0 +1,5 @@ +PythonMagick + +an object-oriented Python interface to ImageMagick + +WWW: http://sourceforge.net/projects/pylab diff --git a/graphics/py-magick/pkg-plist b/graphics/py-magick/pkg-plist new file mode 100644 index 000000000000..f36fc90f610a --- /dev/null +++ b/graphics/py-magick/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/magick.so |