summaryrefslogtreecommitdiff
path: root/graphics/py-imaging
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-09 18:14:19 +0000
committerjoerg <joerg>2007-08-09 18:14:19 +0000
commitdd9c1ef53d81ca3b625f57175635be9ed193745e (patch)
tree69c588e82435bd40283105fff1ffa1fa38ea0518 /graphics/py-imaging
parent3c11cd18b5346d31e939bc4bda2c402611e3bb27 (diff)
downloadpkgsrc-dd9c1ef53d81ca3b625f57175635be9ed193745e.tar.gz
Add DESTDIR support.
Diffstat (limited to 'graphics/py-imaging')
-rw-r--r--graphics/py-imaging/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
index 24afd0f7252..4ee84efd1a1 100644
--- a/graphics/py-imaging/Makefile
+++ b/graphics/py-imaging/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2007/03/23 20:47:56 drochner Exp $
+# $NetBSD: Makefile,v 1.30 2007/08/09 18:14:19 joerg Exp $
DISTNAME= Imaging-1.1.6
PKGNAME= ${PYPKGPREFIX}-imaging-1.1.6
@@ -9,15 +9,17 @@ MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://www.pythonware.com/products/pil/
COMMENT= PIL, the Python Imaging Library
+PKG_DESTDIR_SUPPORT= user-destdir
+
DIST_SUBDIR= python
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
+INSTALLATION_DIRS= ${PYINC}/PIL
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/${PYINC}/PIL
- (cd ${WRKSRC}/libImaging; ${INSTALL_DATA} \
- ImPlatform.h Imaging.h \
- ${PREFIX}/${PYINC}/PIL )
+ ${INSTALL_DATA} ${WRKSRC}/libImaging/ImPlatform.h ${DESTDIR}${PREFIX}/${PYINC}/PIL
+ ${INSTALL_DATA} ${WRKSRC}/libImaging/Imaging.h ${DESTDIR}${PREFIX}/${PYINC}/PIL
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"