1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

Add port for py-magick 0.5, a python binding for ImageMagick.

PR:		58843
Submitted by:	Tim Hemel <tim@n2it.net>
This commit is contained in:
Hye-Shik Chang 2003-11-10 14:57:37 +00:00
parent 2dd57a3cd8
commit ab0d20a62a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93660
7 changed files with 85 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (magick-0.5.tar.gz) = a7a40ff43f2c5ce358203c70445483c0

View File

@ -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",

View File

@ -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;

View File

@ -0,0 +1,5 @@
PythonMagick
an object-oriented Python interface to ImageMagick
WWW: http://sourceforge.net/projects/pylab

View File

@ -0,0 +1 @@
%%PYTHON_SITELIBDIR%%/magick.so