pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/py-imaging Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf39ae7176da
branches:  trunk
changeset: 531985:bf39ae7176da
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 09 18:14:19 2007 +0000

description:
Add DESTDIR support.

diffstat:

 graphics/py-imaging/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r ff6eefbf6506 -r bf39ae7176da graphics/py-imaging/Makefile
--- a/graphics/py-imaging/Makefile      Thu Aug 09 18:03:38 2007 +0000
+++ b/graphics/py-imaging/Makefile      Thu Aug 09 18:14:19 2007 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index