diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
commit | e655762fb793a09bcd629a5ee8889dfe5b1550a0 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/cmake-mode | |
parent | 2d370b7fe4d16560d65355fc39f74d9ef5e1f0c9 (diff) | |
download | pkgsrc-e655762fb793a09bcd629a5ee8889dfe5b1550a0.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/cmake-mode')
-rw-r--r-- | devel/cmake-mode/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/cmake-mode/Makefile b/devel/cmake-mode/Makefile index 9fd8400523f..db71b1c5ae5 100644 --- a/devel/cmake-mode/Makefile +++ b/devel/cmake-mode/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/02/24 20:47:25 wiz Exp $ +# $NetBSD: Makefile,v 1.2 2008/03/03 17:45:34 jlam Exp $ # DISTNAME= cmake-mode @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.cmake.org/ COMMENT= Emacs mode for CMake syntax highlighting and indentation +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= ${PKGNAME_NOREV} WRKSRC= ${WRKDIR} USE_LANGUAGES= # none @@ -20,7 +22,8 @@ do-build: cd ${WRKSRC} && ${EMACS_BIN} -batch -f batch-byte-compile cmake-mode.el do-install: - ${INSTALL_DATA} ${WRKSRC}/cmake-mode.* ${EMACS_LISPPREFIX} + ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX} + ${INSTALL_DATA} ${WRKSRC}/cmake-mode.* ${DESTDIR}${EMACS_LISPPREFIX} .include "../../mk/emacs.mk" .include "../../mk/bsd.pkg.mk" |