blob: 3a966b5076c3543f93a92b419cc112429d6aff77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile.common,v 1.84 2007/05/07 06:34:13 martti Exp $
.include "../../editors/vim-share/version.mk"
DISTNAME= vim-${VIM_VERSION}
DISTFILES= vim-${VIM_VERSION:Q}${EXTRACT_SUFX:Q}
DISTFILES+= vim-${VIM_VERSION:Q}-extra.tar.gz
DISTFILES+= vim-${VIM_VERSION:Q}-lang.tar.gz
CATEGORIES= editors
MASTER_SITES= ftp://ftp.vim.org/pub/editors/vim/unix/ \
ftp://ftp.vim.org/pub/editors/vim/extra/
DIST_SUBDIR= vim
EXTRACT_SUFX= .tar.bz2
PATCH_SITES= ftp://ftp.vim.org/pub/editors/vim/patches/${VIM_VERSION:Q}/
PATCH_SITES+= ftp://ftp.fu-berlin.de/misc/editors/vim/patches/${VIM_VERSION:Q}/
PATCHFILES+= 7.0.001-100.gz 7.0.101-200.gz
PATCHFILES+= 7.0.201 7.0.202 7.0.203 7.0.204 7.0.205 7.0.206 7.0.207
PATCHFILES+= 7.0.208 7.0.209 7.0.210 7.0.211 7.0.212 7.0.213 7.0.214
PATCHFILES+= 7.0.215 7.0.216 7.0.217 7.0.218 7.0.219 7.0.220 7.0.221
PATCHFILES+= 7.0.222 7.0.223 7.0.224 7.0.225 7.0.226 7.0.227 7.0.228
PATCHFILES+= 7.0.229 7.0.230 7.0.231 7.0.232 7.0.233 7.0.234 7.0.235
PATCHFILES+= 7.0.236 7.0.237 7.0.238 7.0.239 7.0.240 7.0.241 7.0.242
PATCHFILES+= 7.0.243
MAINTAINER= martti@NetBSD.org
HOMEPAGE= http://www.vim.org/
CONFLICTS+= vim-kde-[0-9]*
WRKSRC= ${WRKDIR}/${VIM_SUBDIR}/src
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= no # At least on Solaris
.include "../../mk/bsd.prefs.mk"
# See "configure --help" extra options. These might affect the installed
# files (and PLIST might not include all files) so use at your own risk!
CONFIGURE_ARGS+= ${VIM_EXTRA_OPTS}
CONFIGURE_ARGS+= --enable-multibyte
PATCH_ARGS= -d ${WRKDIR:Q}/${VIM_SUBDIR:Q} --forward --quiet \
-E ${PATCH_STRIP:Q}
PATCH_DIST_ARGS= -d ${WRKDIR:Q}/${VIM_SUBDIR:Q} --forward --quiet \
-E ${PATCH_DIST_STRIP:Q}
PATCHDIR= ${.CURDIR}/../../editors/vim-share/patches
DISTINFO_FILE?= ${.CURDIR}/../../editors/vim-share/distinfo
.if ${OPSYS} == "Darwin" && exists(/Developer/Headers/FlatCarbon)
BUILDLINK_PASSTHRU_DIRS+= /Developer/Headers/FlatCarbon
.endif
.if empty(PKGNAME:Mvim-share*)
ALTERNATIVES_SRC= ${.CURDIR:Q}/../../editors/vim-share/ALTERNATIVES
.else
ALTERNATIVES_SRC=
.endif
PKG_SUPPORTED_OPTIONS+= cscope ruby
PKG_OPTIONS_VAR= PKG_OPTIONS.vim
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcscope)
DEPENDS+= cscope-[0-9]*:../../devel/cscope
CONFIGURE_ARGS+= --enable-cscope
.endif
.if !empty(PKG_OPTIONS:Mruby)
.include "../../lang/ruby/buildlink3.mk"
CONFIGURE_ARGS+= --enable-rubyinterp
.endif
post-patch:
${FIND} ${WRKDIR} -name '*.orig_dist' -exec ${RM} -f {} \;
|