From 7a1142123798f48c48fc2d1fe38690a6b94d1df7 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 17:45:33 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- devel/ode/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'devel/ode') diff --git a/devel/ode/Makefile b/devel/ode/Makefile index 2783d9a1505..70a2bd9ba32 100644 --- a/devel/ode/Makefile +++ b/devel/ode/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2007/01/20 13:33:13 joerg Exp $ +# $NetBSD: Makefile,v 1.15 2008/03/03 17:45:36 jlam Exp $ DISTNAME= ode-0.5 PKGREVISION= 3 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ode.org/ COMMENT= Library for the simulation of Rigid Body Dynamics +PKG_DESTDIR_SUPPORT= user-destdir + USE_LANGUAGES= c++ USE_LIBTOOL= yes USE_TOOLS+= gmake @@ -21,8 +23,9 @@ do-configure: cd ${WRKSRC} && ${MAKE_PROGRAM} configure do-install: - ${INSTALL_DATA} ${WRKSRC}/include/ode/*.h ${PREFIX}/include/ode + ${INSTALL_DATA} ${WRKSRC}/include/ode/*.h \ + ${DESTDIR}${PREFIX}/include/ode ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libode.la \ - ${PREFIX}/lib + ${DESTDIR}${PREFIX}/lib .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3