From 43112f64cf453f5e24fc1a811650c98f7db2fe76 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 05:51:07 +0000 Subject: Mechanical changes to add full DESTDIR support to packages that install their files via a custom do-install target. --- converters/cbmconvert/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'converters/cbmconvert') diff --git a/converters/cbmconvert/Makefile b/converters/cbmconvert/Makefile index 8d2759417c3..09874905a1d 100644 --- a/converters/cbmconvert/Makefile +++ b/converters/cbmconvert/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2006/09/09 02:41:55 obache Exp $ +# $NetBSD: Makefile,v 1.18 2008/03/03 05:51:07 jlam Exp $ DISTNAME= cbmconvert-2.1.2 CATEGORIES= converters archivers @@ -7,15 +7,18 @@ MASTER_SITES= ftp://ftp.zimmers.net/pub/cbm/crossplatform/converters/unix/ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Converts files to and from various C64/C128/CBM formats +PKG_DESTDIR_SUPPORT= user-destdir + MAKE_FILE= Makefile.unix MAKE_FLAGS+= CFLAGS=${CFLAGS:M*:Q} INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/cbmconvert do-install: .for f in cbmconvert disk2zip zip2disk - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .endfor - ${INSTALL_DATA} ${WRKSRC}/cbmconvert.html ${PREFIX}/share/doc/cbmconvert/ + ${INSTALL_DATA} ${WRKSRC}/cbmconvert.html \ + ${DESTDIR}${PREFIX}/share/doc/cbmconvert .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3