View | Details | Raw Unified | Return to bug 182749
Collapse All | Expand All

(-)Makefile (-18 / +7 lines)
Lines 12-26 Link Here
12
#		! PATCHLEVEL to that level.
12
#		! PATCHLEVEL to that level.
13
PATCHLEVEL=	1314
13
PATCHLEVEL=	1314
14
PORTVERSION=	7.3.${PATCHLEVEL}
14
PORTVERSION=	7.3.${PATCHLEVEL}
15
RELEASE=	vim-${PORTVERSION:C/\.[0-9a-z]*$//}
16
PORTREVISION?=	0
15
PORTREVISION?=	0
17
CATEGORIES?=	editors
16
CATEGORIES?=	editors
18
MASTER_SITES=	${MASTER_SITE_VIM}
17
MASTER_SITES=	${MASTER_SITE_VIM}
19
DISTFILES=	${RELEASE}${EXTRACT_SUFX}
18
DISTNAME=	vim-${PORTVERSION:C/\.[0-9a-z]*$//}
20
19
21
PATCH_SITES=	${MASTER_SITES:S|unix|patches/${PORTVERSION:C/\.[0-9a-z]*$//}|}\
20
PATCH_SITES=	${MASTER_SITES:S|unix|patches/${PORTVERSION:C/\.[0-9a-z]*$//}|}\
22
		ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/obrien/:local
21
		ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/obrien/:local
23
PATCHFILES!=	/usr/bin/jot -s " " -w ${PORTVERSION:C/\.[0-9]*$//}.%03d  \
22
PATCHFILES!=	jot -s " " -w ${PORTVERSION:C/\.[0-9]*$//}.%03d  \
24
			${PATCHLEVEL} 1 ${PATCHLEVEL}
23
			${PATCHLEVEL} 1 ${PATCHLEVEL}
25
#	bits to remove
24
#	bits to remove
26
BADPATCHES=	527 780 796 873 890 1104 1111
25
BADPATCHES=	527 780 796 873 890 1104 1111
Lines 35-41 Link Here
35
NO_STAGE=	yes
34
NO_STAGE=	yes
36
35
37
.if !defined(LITE)
36
.if !defined(LITE)
38
.if defined(WITH_OPTIONS) || defined(WITH_VIM_OPTIONS)
39
.include "${.CURDIR}/../vim/options"
37
.include "${.CURDIR}/../vim/options"
40
OPTIONS_DEFAULT+=	CSCOPE EXUBERANT_CTAGS PERL PYTHON RUBY \
38
OPTIONS_DEFAULT+=	CSCOPE EXUBERANT_CTAGS PERL PYTHON RUBY \
41
			TCL LUA X11 GTK2
39
			TCL LUA X11 GTK2
Lines 45-51 Link Here
45
			${VIM_PORT_SCRIPT_LANGS}
43
			${VIM_PORT_SCRIPT_LANGS}
46
PORT_OPTIONS?=	${VIM_PORT_OPTIONS}
44
PORT_OPTIONS?=	${VIM_PORT_OPTIONS}
47
.endif
45
.endif
48
.endif
49
46
50
.include <bsd.port.options.mk>
47
.include <bsd.port.options.mk>
51
48
Lines 66-72 Link Here
66
REINPLACE_ARGS=		-i ""
63
REINPLACE_ARGS=		-i ""
67
MAKE_ARGS+=	CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
64
MAKE_ARGS+=	CONF_ARGS="--prefix=${PREFIX} --with-tlib=termlib ${CSCOPE_ARG}"
68
ALL_TARGET=	#
65
ALL_TARGET=	#
69
_DATADIR=	${RELEASE:S/-//g:S/.//g}
66
_DATADIR=	${DISTNAME:S/-//g:S/.//g}
70
DATADIR=	${PREFIX}/share/vim/${_DATADIR}
67
DATADIR=	${PREFIX}/share/vim/${_DATADIR}
71
PLIST_SUB=	VIM_VER=${_DATADIR}
68
PLIST_SUB=	VIM_VER=${_DATADIR}
72
MAN1=		evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
69
MAN1=		evim.1 vim.1 vimdiff.1 vimtutor.1 xxd.1
Lines 168-179 Link Here
168
.endif
165
.endif
169
MAKE_ARGS+=	CONF_OPT_GUI=${CONF_OPT_GUI} ${I18N}
166
MAKE_ARGS+=	CONF_OPT_GUI=${CONF_OPT_GUI} ${I18N}
170
167
171
172
.if exists(${LOCALBASE}/lib/libiconv.so)
168
.if exists(${LOCALBASE}/lib/libiconv.so)
173
USES+=	iconv
169
USES+=	iconv
174
.endif
170
.endif
175
171
176
177
post-patch:
172
post-patch:
178
	@(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0 \
173
	@(${FIND} ${WRKSRC}/../runtime/ -name menu\*.vim -print0 | ${XARGS} -0 \
179
		${REINPLACE_CMD} -e 's,ctags -R \.,${CTAGS_CMD},g')
174
		${REINPLACE_CMD} -e 's,ctags -R \.,${CTAGS_CMD},g')
Lines 233-244 Link Here
233
	${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-vim
228
	${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-vim
234
	cd ${WRKDIR} ; ex < ex.script
229
	cd ${WRKDIR} ; ex < ex.script
235
230
236
show-options:
237
	@${MAKE} -DWITH_OPTIONS showconfig
238
	@${ECHO_CMD} ""
239
	@${ECHO_CMD} "Put \"WITH_OPTIONS=yes\" -or- \"WITH_VIM_OPTIONS=yes\""
240
	@${ECHO_CMD} "in your /etc/make.conf or /etc/ports.conf file to enable OPTIONS processing.
241
242
.if defined(ONT_CHECKSUM)
231
.if defined(ONT_CHECKSUM)
243
checksum:
232
checksum:
244
.endif
233
.endif
Lines 248-266 Link Here
248
	@${MAKE} -V PATCHLEVEL
237
	@${MAKE} -V PATCHLEVEL
249
	-(${SED} -i '' "s/^PATCHLEVEL=.*$$/PATCHLEVEL=	`ncftpls \
238
	-(${SED} -i '' "s/^PATCHLEVEL=.*$$/PATCHLEVEL=	`ncftpls \
250
	    ftp://ftp.vim.org/pub/vim/patches/${PORTVERSION:C/\.[0-9a-z]*$//}/ \
239
	    ftp://ftp.vim.org/pub/vim/patches/${PORTVERSION:C/\.[0-9a-z]*$//}/ \
251
		| grep "^${PORTVERSION:C/\.[0-9a-z]*$//}" \
240
		| ${GREP} "^${PORTVERSION:C/\.[0-9a-z]*$//}" \
252
		| ${SED} -n -E -e 's/${PORTVERSION:C/[0-9]*$//}([0-9]+)$$/\1/p' \
241
		| ${SED} -n -E -e 's/${PORTVERSION:C/[0-9]*$//}([0-9]+)$$/\1/p' \
253
		| sort -n | ${TAIL} -1`/" Makefile)
242
		| ${SORT} -n | ${TAIL} -1`/" Makefile)
254
	@${ECHO} -n "Now at: "
243
	@${ECHO} -n "Now at: "
255
	@${MAKE} -V PATCHLEVEL
244
	@${MAKE} -V PATCHLEVEL
256
245
257
find-bad-patches:
246
find-bad-patches:
258
	@cd ${DISTDIR} ; egrep -l \
247
	@cd ${DISTDIR} ; ${EGREP} -l \
259
		'(src/if_(ole|mzsch)|src/gui_(w32|w48|mac)|src/os_(riscos|cyg|os2|vms|amiga|win32|mswin))|src(/testdir)?/Make_(dos|cyg|vms|mvc|ming|os2|amiga|mms)'\
248
		'(src/if_(ole|mzsch)|src/gui_(w32|w48|mac)|src/os_(riscos|cyg|os2|vms|amiga|win32|mswin))|src(/testdir)?/Make_(dos|cyg|vms|mvc|ming|os2|amiga|mms)'\
260
		vim/${PORTVERSION:C/\.[0-9a-z]*$//}*
249
		vim/${PORTVERSION:C/\.[0-9a-z]*$//}*
261
250
262
ckp:
251
ckp:
263
	/usr/bin/time -h ${MAKE} -DPATCH_DEBUG -DONT_CHECKSUM clean patch
252
	time -h ${MAKE} -DPATCH_DEBUG -DONT_CHECKSUM clean patch
264
253
265
ckmtree:
254
ckmtree:
266
	${MTREE_CMD} -f ${MTREE_FILE} -p ${PREFIX}
255
	${MTREE_CMD} -f ${MTREE_FILE} -p ${PREFIX}

Return to bug 182749