summaryrefslogtreecommitdiff
path: root/editors/vim
diff options
context:
space:
mode:
authorheinz <heinz@pkgsrc.org>2008-01-03 23:18:07 +0000
committerheinz <heinz@pkgsrc.org>2008-01-03 23:18:07 +0000
commitf484c25be425c470313a03d9c4890327ab56f362 (patch)
tree170b0519d8968570a623ea56286e87d7e7634aec /editors/vim
parent8159318d339a1a98b108ef467cddf170a5c2e061 (diff)
downloadpkgsrc-f484c25be425c470313a03d9c4890327ab56f362.tar.gz
Added support for installation to DESTDIR.
Diffstat (limited to 'editors/vim')
-rw-r--r--editors/vim/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/vim/Makefile b/editors/vim/Makefile
index ad930b30d86..10ab8794f50 100644
--- a/editors/vim/Makefile
+++ b/editors/vim/Makefile
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.65 2006/03/02 10:41:41 martti Exp $
+# $NetBSD: Makefile,v 1.66 2008/01/03 23:20:50 heinz Exp $
PKGNAME= vim-${VIM_VERSION}.${VIM_PATCHLEVEL}
#PKGREVISION= 1
COMMENT= Vim editor (vi clone) without GUI
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../editors/vim-share/Makefile.common"
DEPENDS+= vim-share-${VIM_VERSION}.${VIM_PATCHLEVEL}{,nb*}:../../editors/vim-share
@@ -21,8 +23,8 @@ TEST_TARGET= check
post-install:
.for f in rvim rview
- ${RM} -f ${PREFIX:Q}/bin/${f:Q}
- ${LN} -s vim ${PREFIX:Q}/bin/${f:Q}
+ ${RM} -f ${DESTDIR:Q}${PREFIX:Q}/bin/${f:Q}
+ ${LN} -s vim ${DESTDIR:Q}${PREFIX:Q}/bin/${f:Q}
.endfor
.include "../../devel/ncurses/buildlink3.mk"