summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-09 18:14:19 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-09 18:14:19 +0000
commitb081a87a4aa730e99a7fc630c12e68d4624d4cd5 (patch)
tree69c588e82435bd40283105fff1ffa1fa38ea0518 /graphics
parent5212d820335299e07ad43e91b4ba963acf565670 (diff)
downloadpkgsrc-b081a87a4aa730e99a7fc630c12e68d4624d4cd5.tar.gz
Add DESTDIR support.
Diffstat (limited to 'graphics')
-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"