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/mmix/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'emulators/mmix') diff --git a/emulators/mmix/Makefile b/emulators/mmix/Makefile index 67ddb33ffe9..e8f229d140c 100644 --- a/emulators/mmix/Makefile +++ b/emulators/mmix/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2007/03/15 05:00:13 dbj Exp $ +# $NetBSD: Makefile,v 1.26 2008/03/03 19:21:38 jlam Exp $ DISTNAME= mmix-20060918 CATEGORIES= emulators devel lang @@ -8,6 +8,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www-cs-faculty.stanford.edu/~knuth/mmix.html COMMENT= Simulators for Knuth's MMIX RISC architecture +PKG_DESTDIR_SUPPORT= user-destdir + TEX_DEPMETHOD= build TEX_ACCEPTED= teTeX3 @@ -20,12 +22,12 @@ INSTALLATION_DIRS= bin do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} abstime mmix mmixal \ - mmmix mmotype ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mmix + mmmix mmotype ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mmix cd ${WRKSRC} && ${INSTALL_DATA} README *.ps \ - ${PREFIX}/share/doc/mmix - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mmix + ${DESTDIR}${PREFIX}/share/doc/mmix + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mmix cd ${WRKSRC} && ${INSTALL_DATA} *.mms *.mmix *.mmconfig \ - ${PREFIX}/share/examples/mmix + ${DESTDIR}${PREFIX}/share/examples/mmix .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3