From 0c6a3253fe7d652e4d744555cc7352fffd4d103a Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 06:59:03 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- games/fortunes-calvin/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'games/fortunes-calvin') diff --git a/games/fortunes-calvin/Makefile b/games/fortunes-calvin/Makefile index 0d79b349db8..e185d4cb49a 100644 --- a/games/fortunes-calvin/Makefile +++ b/games/fortunes-calvin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2006/11/09 08:36:46 rillig Exp $ +# $NetBSD: Makefile,v 1.5 2008/03/04 06:59:04 jlam Exp $ # DISTNAME= fortunes-calvin-0.2 @@ -12,6 +12,8 @@ COMMENT= Fortunes from the famous Calvin & Hobbes comic strips BUILD_DEPENDS+= fortune-strfile-[0-9]*:../../games/fortune-strfile +PKG_DESTDIR_SUPPORT= user-destdir + STRFILE= ${LOCALBASE}/bin/strfile WRKSRC= ${WRKDIR} @@ -19,8 +21,10 @@ do-build: ${STRFILE} ${WRKDIR}/${DISTNAME} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/games/fortune/ - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} ${PREFIX}/share/games/fortune/calvin - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat ${PREFIX}/share/games/fortune/calvin.dat + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/fortune/ + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} \ + ${DESTDIR}${PREFIX}/share/games/fortune/calvin + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat \ + ${DESTDIR}${PREFIX}/share/games/fortune/calvin.dat .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3