From 769a84077c1badca9f84e031b0acccd322865a99 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/heretic2-demo/Makefile | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'games/heretic2-demo') diff --git a/games/heretic2-demo/Makefile b/games/heretic2-demo/Makefile index 36339b15a51..8c35cabdb00 100644 --- a/games/heretic2-demo/Makefile +++ b/games/heretic2-demo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2006/06/02 13:32:35 joerg Exp $ +# $NetBSD: Makefile,v 1.18 2008/03/04 06:59:04 jlam Exp $ # DISTNAME= heretic2-demo-x86 @@ -14,6 +14,8 @@ MAINTAINER= abs@NetBSD.org HOMEPAGE= http://www.lokigames.com/products/heretic2/ COMMENT= Heretic2 - first person Quake 3D engine based (linux demo) +PKG_DESTDIR_SUPPORT= user-destdir + NO_CONFIGURE= yes EXTRACT_CMD= ${SED} '1,/^END_OF_STUB$$/d' ${DOWNLOADED_DISTFILE} | \ ${GTAR} xzf - @@ -46,12 +48,17 @@ do-build: # The executable must be in the same directory as the data. do-install: - ${INSTALL_PROGRAM_DIR} ${LIBDIR} - ${INSTALL_DATA_DIR} ${SHAREDIR} - ${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${BINNAME} - ${INSTALL_PROGRAM} ${WRKSRC}/${DISTBINNAME} ${LIBDIR}/${BINNAME} - ${INSTALL_DATA} ${WRKSRC}/README ${SHAREDIR}/${BINNAME}-QuickStart.txt - ${INSTALL_DATA} ${WRKSRC}/README ${SHAREDIR}/${BINNAME}-README - cd ${WRKSRC} && ${PAX} -rw base gl_drivers icon.xpm ref_glx.so ${LIBDIR} + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${LIBDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh \ + ${DESTDIR}${PREFIX}/bin/${BINNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/${DISTBINNAME} \ + ${DESTDIR}${LIBDIR}/${BINNAME} + ${INSTALL_DATA} ${WRKSRC}/README \ + ${DESTDIR}${SHAREDIR}/${BINNAME}-QuickStart.txt + ${INSTALL_DATA} ${WRKSRC}/README \ + ${DESTDIR}${SHAREDIR}/${BINNAME}-README + cd ${WRKSRC} && ${PAX} -rw base gl_drivers icon.xpm ref_glx.so \ + ${DESTDIR}${LIBDIR} .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3