From 29d85ddd6a393a4bfaf03a504f8916a55cec3687 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/eus-demo/Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'games/eus-demo') diff --git a/games/eus-demo/Makefile b/games/eus-demo/Makefile index 70f21445cd0..8d07014fb10 100644 --- a/games/eus-demo/Makefile +++ b/games/eus-demo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2007/07/29 05:19:25 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2008/03/04 06:59:04 jlam Exp $ DISTNAME= eus-demo PKGNAME= eus-demo-1.0 @@ -16,6 +16,8 @@ COMMENT= Eric's Ultimate Solitaire (linux demo) EMUL_PLATFORMS= linux-i386 EMUL_MODULES.linux= x11 +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${WRKNAME} BUILD_DIRS= # empty @@ -43,11 +45,13 @@ do-build: # The executable must be in the same directory as the data. do-install: - ${INSTALL_DATA_DIR} ${LIBDIR} - ${INSTALL_DATA_DIR} ${SHAREDIR} - ${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${BINNAME} - ${INSTALL_PROGRAM} ${WRKSRC}/bin/${BINTYPE}/${DISTBINNAME} ${LIBDIR}/${BINNAME} - ${INSTALL_DATA} ${WRKSRC}/README ${SHAREDIR}/${BINNAME}-README - cd ${WRKSRC} && ${PAX} -rw [Eai-p]* sounds ${LIBDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${LIBDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh \ + ${DESTDIR}${PREFIX}/bin/${BINNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${BINTYPE}/${DISTBINNAME} \ + ${DESTDIR}${LIBDIR}/${BINNAME} + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${SHAREDIR}/${BINNAME}-README + cd ${WRKSRC} && ${PAX} -rw [Eai-p]* sounds ${DESTDIR}${LIBDIR} .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3