From c39f6ceb328112ee651b90f950c040409208b8c0 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 8 Jul 2009 15:40:54 +0000 Subject: user-destdir support --- biology/py-mol/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'biology') diff --git a/biology/py-mol/Makefile b/biology/py-mol/Makefile index e3510eaa0b5..16507aaeef2 100644 --- a/biology/py-mol/Makefile +++ b/biology/py-mol/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2009/03/05 18:51:26 joerg Exp $ +# $NetBSD: Makefile,v 1.4 2009/07/08 15:40:54 joerg Exp $ DISTNAME= pymol-0_98-src PKGNAME= ${PYPKGPREFIX}-mol-0.98 @@ -11,6 +11,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://pymol.sourceforge.net/ COMMENT= Molecular Visualization System +PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR}/pymol-0.98 PYDISTUTILSPKG= yes @@ -20,9 +21,11 @@ CONFLICTS= pymol-[0-9]* REPLACE_PYTHON= test/cyg test/run test/show test/win.py +INSTALLATION_DIRS= bin + post-install: - cd ${WRKSRC} && env ${MAKE_ENV} ${PYTHONBIN} setup2.py - ${INSTALL_SCRIPT} ${WRKSRC}/pymol.com ${PREFIX}/bin/pymol + cd ${WRKSRC} && env ${MAKE_ENV} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} setup2.py + ${INSTALL_SCRIPT} ${WRKSRC}/pymol.com ${DESTDIR}${PREFIX}/bin/pymol .include "../../devel/zlib/buildlink3.mk" .include "../../graphics/glu/buildlink3.mk" -- cgit v1.2.3