From 39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 19:21:10 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- misc/bbdb/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'misc/bbdb') diff --git a/misc/bbdb/Makefile b/misc/bbdb/Makefile index 242acb8d6c6..a3cf129283e 100644 --- a/misc/bbdb/Makefile +++ b/misc/bbdb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2007/05/30 14:09:08 uebayasi Exp $ +# $NetBSD: Makefile,v 1.18 2008/03/04 19:21:11 jlam Exp $ # DISTNAME= bbdb-2.34 @@ -15,6 +15,8 @@ COMMENT= Insidious Big Brother DataBase, a rolodex-like database Emacs program EMACS_VERSIONS_ACCEPTED= emacs22 emacs22nox emacs21 emacs21nox emacs20 emacs20nox CONFLICTS+= xemacs-packages-[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir + USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes BUILD_TARGET= all mhe @@ -31,12 +33,12 @@ CONFIGURE_ARGS+= --with-package-dir=${PREFIX}/lib/xemacs/site-packages INSTALL_TARGET= install-pkg .else do-install: - ${MKDIR} ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${LISPDIR} - ${INSTALL_DATA} ${WRKSRC}/lisp/*.elc ${LISPDIR} + ${MKDIR} ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${DESTDIR}${LISPDIR} + ${INSTALL_DATA} ${WRKSRC}/lisp/*.elc ${DESTDIR}${LISPDIR} cd ${WRKSRC}/texinfo; for f in bbdb.info bbdb.info-[0-9]*; do \ ${TEST} ! -f "$$f" || \ - ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \ + ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\ done .endif -- cgit v1.2.3