From 3170d23f01ae24aa1c4d6e488619cd4779dc3023 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 2 Mar 2008 03:48:36 +0000 Subject: Mechanical changes to add full DESTDIR support to packages that install their files via a custom do-install target. --- archivers/rox-archive/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'archivers/rox-archive/Makefile') diff --git a/archivers/rox-archive/Makefile b/archivers/rox-archive/Makefile index 50821b62a4b..d80d997b5b3 100644 --- a/archivers/rox-archive/Makefile +++ b/archivers/rox-archive/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2006/02/05 23:08:04 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2008/03/02 03:48:36 jlam Exp $ # DISTNAME= archive-2.0 @@ -15,6 +15,8 @@ COMMENT= Simple archiver # no real libraries there DEPENDS+= rox-lib>=2.0.2nb2:../../devel/rox-lib +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${DISTNAME}/Archive DIST_SUBDIR= rox @@ -31,7 +33,7 @@ SUBST_FILES.lib= findrox.py SUBST_SED.lib= -e 's,/usr/local/lib,${PREFIX}/share/rox,g' do-install: - cd ${WRKSRC} && ${PAX} -rw . ${PREFIX}/share/rox/Archive + cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/rox/Archive .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3