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/crafty/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'games/crafty') diff --git a/games/crafty/Makefile b/games/crafty/Makefile index aa04dc39a8d..5f647326cc0 100644 --- a/games/crafty/Makefile +++ b/games/crafty/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2006/05/19 09:18:29 rillig Exp $ +# $NetBSD: Makefile,v 1.41 2008/03/04 06:59:03 jlam Exp $ DISTNAME= crafty-18.15 CATEGORIES= games @@ -11,6 +11,7 @@ DISTFILES+= ${CRAFTY_STARTPGN} ${CRAFTY_DOCFILES} MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Chess engine +PKG_DESTDIR_SUPPORT= user-destdir DIST_SUBDIR= ${DISTNAME}-1 CRAFTY_DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -77,12 +78,13 @@ post-build: cd ${WRKSRC} && ${WRKSRC}/crafty bookpath=. do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/crafty ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${BOOKDIR} - ${INSTALL_DATA} ${WRKSRC}/books.bin ${BOOKDIR} - ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/crafty ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR} + ${INSTALL_DATA} ${WRKSRC}/books.bin ${DESTDIR}${BOOKDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} for file in ${CRAFTY_DOCFILES}; do \ - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${DOCDIR}; \ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} \ + ${DESTDIR}${DOCDIR}; \ done .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3