From 06d9c7dce41f5c7499b62388c5645696eb42c1a4 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 19:21:37 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- emulators/minivmac/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'emulators/minivmac') diff --git a/emulators/minivmac/Makefile b/emulators/minivmac/Makefile index 21194a538c5..8de417a930e 100644 --- a/emulators/minivmac/Makefile +++ b/emulators/minivmac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2007/02/19 18:24:54 joerg Exp $ +# $NetBSD: Makefile,v 1.17 2008/03/03 19:21:38 jlam Exp $ DISTNAME= minivmac-0.1.7.src PKGNAME= minivmac-0.1.7 @@ -11,6 +11,8 @@ MAINTAINER= kei@NetBSD.org HOMEPAGE= http://minivmac.sourceforge.net/ COMMENT= Miniature Macintosh emulator +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/minivmac SCRIPTS_ENV+= CC="${CC}" @@ -23,9 +25,9 @@ do-build: cd ${WRKSRC}/tool/bash; ${SETENV} ${SCRIPTS_ENV} ${SH} build do-install: - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_PROGRAM} ${WRKSRC}/drv/minivmac ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/drv/minivmac ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DESTDIR}${DOCDIR} .include "../../x11/libXext/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3