summaryrefslogtreecommitdiff
path: root/graphics/py-imaging/Makefile
diff options
context:
space:
mode:
authordrochner <drochner>2002-09-03 20:31:02 +0000
committerdrochner <drochner>2002-09-03 20:31:02 +0000
commitaf41fe1732c81a57350c2531800fe19ad6941b2b (patch)
tree187e360ef655c24fe6cf4799f786a06a489d8955 /graphics/py-imaging/Makefile
parentc59874abe4c21342fd179359fb5bb8c86392533f (diff)
downloadpkgsrc-af41fe1732c81a57350c2531800fe19ad6941b2b.tar.gz
update to 1.1.3
changes: + Adapted to Python 1.6, 2.0, 2.1 and 2.2. This version also runs under 1.5.2, but probably not under versions older than that. + To reduce module dependencies, the Tkinter support has been moved to a separate binary module. + The JPEG decoder is more tolerant for broken files. As long as all image data can be read, it won't complain. + An ANTIALIAS downsampling filter has been added. + Includes distutils build script (setup.py) for 2.0 and later. + The usual crop of bug fixes and performance tweaks.
Diffstat (limited to 'graphics/py-imaging/Makefile')
-rw-r--r--graphics/py-imaging/Makefile61
1 files changed, 13 insertions, 48 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
index 547e6f8a9d8..e814ca7897b 100644
--- a/graphics/py-imaging/Makefile
+++ b/graphics/py-imaging/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2002/02/14 11:39:46 drochner Exp $
+# $NetBSD: Makefile,v 1.13 2002/09/03 20:31:02 drochner Exp $
-DISTNAME= Imaging-1.1.2
-PKGNAME= ${PYPKGPREFIX}-imaging-1.1.2
+DISTNAME= Imaging-1.1.3
+PKGNAME= ${PYPKGPREFIX}-imaging-1.1.3
CATEGORIES= graphics
MASTER_SITES= http://www.pythonware.com/downloads/
@@ -9,56 +9,21 @@ MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.pythonware.com/products/pil/
COMMENT= PIL, the Python Imaging Library
-DEPENDS+= jpeg-6b:../../graphics/jpeg
+#DEPENDS+= jpeg-6b:../../graphics/jpeg
DIST_SUBDIR= python
-
-PLIST_SRC= ${WRKDIR}/.PLIST_SRC
-
-# this pkg uses Makefile.pre.in
-PYTHON_VERSIONS_ACCEPTED= 20 21
-BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1
-BUILDLINK_DEPENDS.python21= python21>=2.1.1nb1
-
+PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
+GNU_CONGIGURE= yes
+USE_BUILDLINK2= yes
do-configure:
- (cd ${WRKSRC}/libImaging; CC="cc -fPIC" LIBS="${LDFLAGS}" ./configure)
- ${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \
- >${WRKSRC}/Setup.in
- ${CP} ${LOCALBASE}/${PYLIB}/config/Makefile.pre.in ${WRKSRC}
- (cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot)
-
-do-build:
- (cd ${WRKSRC}/libImaging; ${SETENV} ${MAKE_ENV} ${MAKE}; cd ..; ${MAKE})
-
-post-build:
- (cd ${WRKSRC}/PIL; ${PYTHONBIN} ${PREFIX}/${PYLIB}/compileall.py .)
- (cd ${WRKSRC}/PIL; ${PYTHONBIN} -O ${PREFIX}/${PYLIB}/compileall.py .)
-
-do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/${PYSITELIB}
- ${INSTALL_DATA_DIR} ${PREFIX}/${PYSITELIB}/PIL
- ${INSTALL_SCRIPT} ${WRKSRC}/PIL.pth \
- ${PREFIX}/${PYSITELIB}
- ${INSTALL_SCRIPT} ${WRKSRC}/_imaging.so \
- ${WRKSRC}/PIL/*.py ${WRKSRC}/PIL/*.py[co] \
- ${PREFIX}/${PYSITELIB}/PIL
- ${INSTALL_DATA_DIR} ${PREFIX}/${PYINC}/PIL
- ${INSTALL_DATA} ${WRKSRC}/libImaging/*.h ${PREFIX}/${PYINC}/PIL
- ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
- (cd ${WRKSRC}/PIL; ${FIND} . -name \*.py\* -print \
- | ${SED} -e 's,^./,${PYSITELIB}/PIL/,g' \
- >>${PLIST_SRC})
- (cd ${PREFIX}; ${FIND} ${PYINC}/PIL -type f -print >>${PLIST_SRC})
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PYPKGPREFIX}-imaging
- (cd ${WRKSRC}/Scripts; \
- for i in README bdf2pil.py explode.py gifmaker.py image2py.py pil*.py; do \
- ${INSTALL_DATA} $$i ${PREFIX}/share/examples/${PYPKGPREFIX}-imaging; \
- ${ECHO} share/examples/${PYPKGPREFIX}-imaging/$$i >>${PLIST_SRC}; done )
- ${ECHO} "@dirrm share/examples/${PYPKGPREFIX}-imaging" >>${PLIST_SRC}
- ${ECHO} "@dirrm ${PYINC}/PIL" >>${PLIST_SRC}
- ${ECHO} "@dirrm ${PYSITELIB}/PIL" >> ${PLIST_SRC}
+ (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
.include "../../lang/python/extension.buildlink.mk"
+.include "../../graphics/jpeg/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"