summaryrefslogtreecommitdiff
path: root/graphics/py-imaging/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-imaging/Makefile')
-rw-r--r--graphics/py-imaging/Makefile39
1 files changed, 39 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"