From c2f2c30967ebdcd9120a391abfb655a190302a51 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/2vcard/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'converters/2vcard') diff --git a/converters/2vcard/Makefile b/converters/2vcard/Makefile index fd1436752f6..5605df39fc7 100644 --- a/converters/2vcard/Makefile +++ b/converters/2vcard/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2007/01/07 09:13:49 rillig Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/03 05:51:07 jlam Exp $ # DISTNAME= 2vcard-0.5 @@ -10,6 +10,8 @@ MAINTAINER= jschauma@NetBSD.org HOMEPAGE= http://www.netmeister.org/apps/2vcard/ COMMENT= Convert an addressbook to the popular VCARD file format +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl:run REPLACE_PERL= src/2vcard @@ -18,9 +20,11 @@ NO_BUILD= yes INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/src/2vcard ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/2vcard.1 ${PREFIX}/${PKGMANDIR}/man1/ - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/2vcard - ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/html/2vcard + ${INSTALL_SCRIPT} ${WRKSRC}/src/2vcard ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/2vcard.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/2vcard + ${INSTALL_DATA} ${WRKSRC}/doc/html/* \ + ${DESTDIR}${PREFIX}/share/doc/html/2vcard .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3