blob: a97f5940652f8b4bd443bccae93d63525f3bf3c1 (
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
|
# $NetBSD: Makefile.common,v 1.152 2016/07/04 06:18:39 morr Exp $
# used by editors/vim/Makefile
# used by editors/vim-gtk/Makefile
# used by editors/vim-gtk2/Makefile
# used by editors/vim-lang/Makefile
# used by editors/vim-motif/Makefile
# used by editors/vim-xaw/Makefile
.include "../../editors/vim-share/version.mk"
DISTNAME= vim-${VIM_VERSION}.${VIM_PATCHLEVEL}
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
.include "../../mk/bsd.prefs.mk"
MAINTAINER= morr@NetBSD.org
HOMEPAGE= http://www.vim.org/
LICENSE= vim-license
CONFLICTS+= vim-kde-[0-9]*
WRKSRC= ${WRKDIR}/${VIM_SUBDIR}/src
GNU_CONFIGURE= yes
# http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=38710
CHECK_INTERPRETER_SKIP= share/vim/vim74/tools/vim132
.include "options.mk"
CONFIGURE_ARGS+= --with-modified-by=${MAINTAINER:Q}
# 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
CONFIGURE_ARGS+= --enable-cscope
PATCH_ARGS= -d ${WRKDIR}/${VIM_SUBDIR} --forward --quiet \
-E ${PATCH_STRIP:Q}
PATCH_DIST_ARGS= -d ${WRKDIR}/${VIM_SUBDIR} --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}/../../editors/vim-share/ALTERNATIVES
.else
ALTERNATIVES_SRC=
.endif
post-patch:
find ${WRKDIR} -name '*.orig_dist' -exec rm -f {} \;
|