summaryrefslogtreecommitdiff
path: root/graphics/py-imaging
diff options
context:
space:
mode:
authortsarna <tsarna>1998-12-26 23:42:01 +0000
committertsarna <tsarna>1998-12-26 23:42:01 +0000
commitf8feb03bb26ff1a7157c2f45853c3c3cb724547a (patch)
tree5df119fdf03452326b26f6866e43c1908365028b /graphics/py-imaging
parent50751912acf6326ad503e73e5f1adfe68ed04077 (diff)
downloadpkgsrc-f8feb03bb26ff1a7157c2f45853c3c3cb724547a.tar.gz
PIL, the Python Imaging Library
Diffstat (limited to 'graphics/py-imaging')
-rw-r--r--graphics/py-imaging/Makefile39
-rw-r--r--graphics/py-imaging/files/Setup.in14
-rw-r--r--graphics/py-imaging/files/md53
-rw-r--r--graphics/py-imaging/pkg/COMMENT1
-rw-r--r--graphics/py-imaging/pkg/DESCR4
-rw-r--r--graphics/py-imaging/pkg/PLIST.pre2
6 files changed, 63 insertions, 0 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
new file mode 100644
index 00000000000..9a5fe821cfb
--- /dev/null
+++ b/graphics/py-imaging/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/12/26 23:42:01 tsarna Exp $
+
+DISTNAME= Imaging-0.3b2
+PKGNAME= py-imaging-0.3b2
+CATEGORIES= graphics
+MASTER_SITES= http://www.pythonware.com/downloads/
+
+MAINTAINER= tsarna@netbsd.org
+HOMEPAGE= http://www.pythonware.com/products/pil/
+
+DEPENDS+= python-1.5.1:../../lang/python
+DEPENDS+= jpeg-6b:../../graphics/jpeg
+
+DIST_SUBDIR= python
+
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+
+do-configure:
+ (cd ${WRKSRC}/libImaging; CC="cc -fPIC" ./configure)
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \
+ >${WRKSRC}/Setup.in
+ (cd ${WRKSRC}; make -f Makefile.pre.in boot)
+
+do-build:
+ (cd ${WRKSRC}/libImaging; make; cd ..; make)
+
+post-build:
+ (cd ${WRKSRC}/PIL; python ${PREFIX}/lib/python1.5/compileall.py .)
+ (cd ${WRKSRC}/PIL; python -O ${PREFIX}/lib/python1.5/compileall.py .)
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/PIL/*.py ${WRKSRC}/PIL/*.py[co] \
+ ${PREFIX}/lib/python1.5/site-packages
+ ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
+ (cd ${WRKSRC}/PIL; find . -name \*.py\* -print \
+ | ${SED} -e 's,^./,lib/python1.5/site-packages/,g' \
+ >>${PLIST_SRC})
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-imaging/files/Setup.in b/graphics/py-imaging/files/Setup.in
new file mode 100644
index 00000000000..4204ba36c96
--- /dev/null
+++ b/graphics/py-imaging/files/Setup.in
@@ -0,0 +1,14 @@
+# $NetBSD: Setup.in,v 1.1.1.1 1998/12/26 23:42:01 tsarna Exp $
+#
+
+*shared*
+
+# --------------------------------------------------------------------
+# Edit or remove the library specifications to match your configura-
+# tion. As they stand, they assume that you have the IJG JPEG library
+# 6.0a and zlib 1.0.4 (or newer versions of these libraries) in a
+# standard location.
+
+_imaging _imaging.c decode.c encode.c map.c display.c path.c \
+ -IlibImaging libImaging/libImaging.a \
+ -I@PREFIX@/include -L@PREFIX@/lib -R@PREFIX@/lib -ljpeg -lz
diff --git a/graphics/py-imaging/files/md5 b/graphics/py-imaging/files/md5
new file mode 100644
index 00000000000..33d6d6acc82
--- /dev/null
+++ b/graphics/py-imaging/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/12/26 23:42:01 tsarna Exp $
+
+MD5 (python/Imaging-0.3b2.tar.gz) = 843b3cd31b1a7f7acfc651630c8862bd
diff --git a/graphics/py-imaging/pkg/COMMENT b/graphics/py-imaging/pkg/COMMENT
new file mode 100644
index 00000000000..a102417a9cb
--- /dev/null
+++ b/graphics/py-imaging/pkg/COMMENT
@@ -0,0 +1 @@
+PIL, the Python Imaging Library
diff --git a/graphics/py-imaging/pkg/DESCR b/graphics/py-imaging/pkg/DESCR
new file mode 100644
index 00000000000..1fd088d34b5
--- /dev/null
+++ b/graphics/py-imaging/pkg/DESCR
@@ -0,0 +1,4 @@
+The Python Imaging Library (PIL) adds image processing capabilities to
+your Python interpreter. This library provides extensive file format
+support, an efficient internal representation, and fairly image
+processing capabilities.
diff --git a/graphics/py-imaging/pkg/PLIST.pre b/graphics/py-imaging/pkg/PLIST.pre
new file mode 100644
index 00000000000..613e191dc76
--- /dev/null
+++ b/graphics/py-imaging/pkg/PLIST.pre
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.pre,v 1.1.1.1 1998/12/26 23:42:01 tsarna Exp $
+lib/python1.5/site-packages/_imaging.so