From 0bb78c6c9d3855e92497417696475484322d451c Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 19:21:37 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- emulators/ucon64/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'emulators/ucon64/Makefile') diff --git a/emulators/ucon64/Makefile b/emulators/ucon64/Makefile index 6e2dc832abd..59d2b191994 100644 --- a/emulators/ucon64/Makefile +++ b/emulators/ucon64/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2007/03/19 16:40:27 tv Exp $ +# $NetBSD: Makefile,v 1.7 2008/03/03 19:21:38 jlam Exp $ # DISTNAME= ucon64-2.0.0-src @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ucon64.sourceforge.net/ COMMENT= Emulator ROM and disk image converter and inspector +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${DISTNAME}/src CONFIGURE_ARGS+= --disable-discmage # requires some work @@ -23,12 +25,13 @@ CHECK_PORTABILITY_SKIP+=install_beos.sh INSTALLATION_DIRS= share/examples/ucon64 share/doc/ucon64/images do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ucon64 ${PREFIX}/bin/ - ${INSTALL_DATA} ${WRKSRC}/[a-z]*.txt ${PREFIX}/share/examples/ucon64/ + ${INSTALL_PROGRAM} ${WRKSRC}/ucon64 ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/[a-z]*.txt \ + ${DESTDIR}${PREFIX}/share/examples/ucon64 ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/*.html \ - ${PREFIX}/share/doc/ucon64/ + ${DESTDIR}${PREFIX}/share/doc/ucon64 ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/images/* \ - ${PREFIX}/share/doc/ucon64/images/ + ${DESTDIR}${PREFIX}/share/doc/ucon64/images .include "options.mk" .include "../../devel/zlib/buildlink3.mk" -- cgit v1.2.3