From a80fd13efc426f96e55870df48a2030daea0f14b Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 17:57:17 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- mail/rmail-mime/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/rmail-mime') diff --git a/mail/rmail-mime/Makefile b/mail/rmail-mime/Makefile index 8441450d13b..3a008dc03b9 100644 --- a/mail/rmail-mime/Makefile +++ b/mail/rmail-mime/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2006/02/05 23:09:57 joerg Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/04 17:57:19 jlam Exp $ # DISTNAME= rmail-mime-1.13.0 @@ -12,6 +12,8 @@ COMMENT= MIME-capabilities for RMAIL in Emacs DEPENDS+= ${EMACS_PKGNAME_PREFIX}semi>=1.14.4:../../devel/semi +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../mk/emacs.mk" SITE_LISP= ${EMACS_LISPPREFIX:C|^${PREFIX}/||} @@ -22,8 +24,8 @@ do-build: -f batch-byte-compile rmail-mime.el do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${SITE_LISP} - ${INSTALL_DATA} ${WRKSRC}/rmail-mime.el ${EMACS_LISPPREFIX} - ${INSTALL_DATA} ${WRKSRC}/rmail-mime.elc ${EMACS_LISPPREFIX} + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${SITE_LISP} + ${INSTALL_DATA} ${WRKSRC}/rmail-mime.el ${DESTDIR}${EMACS_LISPPREFIX} + ${INSTALL_DATA} ${WRKSRC}/rmail-mime.elc ${DESTDIR}${EMACS_LISPPREFIX} .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3