From 983300b3f559a9ed30543fe7f65213acf187c0bb Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 16:38:11 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- lang/brandybasic/Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lang/brandybasic') diff --git a/lang/brandybasic/Makefile b/lang/brandybasic/Makefile index a61f4e2fe42..639c108aab7 100644 --- a/lang/brandybasic/Makefile +++ b/lang/brandybasic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2007/11/20 22:11:50 rillig Exp $ +# $NetBSD: Makefile,v 1.16 2008/03/04 16:38:11 jlam Exp $ # DISTNAME= b116 @@ -15,6 +15,8 @@ COMMENT= Brandy Basic V interpreter - Acorn ARM Computers BASIC dialect NOT_FOR_PLATFORM= SunOS-*-* # needs porting +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/brandy-1.0.16 DOCDIR= ${PREFIX}/share/doc/brandy EXAMPLEDIR= ${PREFIX}/share/examples/brandy @@ -24,10 +26,12 @@ USE_TOOLS+= gtar INSTALLATION_DIRS= bin do-install: - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA_DIR} ${EXAMPLEDIR} - cd ${WRKSRC}/docs && ${GTAR} -cf - `ls |grep -v .orig` | (cd ${DOCDIR} && tar xf -) - cd ${WRKSRC}/examples && ${GTAR} -cf - [a-z]* | (cd ${EXAMPLEDIR} && tar xf -) - ${INSTALL_PROGRAM} ${WRKSRC}/brandy ${PREFIX}/bin/brandy + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR} + cd ${WRKSRC}/docs && ${GTAR} -cf - `ls |grep -v .orig` | \ + (cd ${DESTDIR}${DOCDIR} && tar xf -) + cd ${WRKSRC}/examples && ${GTAR} -cf - [a-z]* | \ + (cd ${DESTDIR}${EXAMPLEDIR} && tar xf -) + ${INSTALL_PROGRAM} ${WRKSRC}/brandy ${DESTDIR}${PREFIX}/bin/brandy .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3