# $NetBSD: Makefile.common,v 1.97 2007/11/26 09:06:24 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/ MASTER_SITES+= ftp://ftp.fu-berlin.de/misc/editors/vim/unix/ DIST_SUBDIR= vim EXTRACT_SUFX= .tar.bz2 SITES.vim-${VIM_VERSION}-extra.tar.gz= ftp://ftp.vim.org/pub/editors/vim/extra/ SITES.vim-${VIM_VERSION}-extra.tar.gz+= ftp://ftp.fu-berlin.de/misc/editors/vim/extra/ SITES.vim-${VIM_VERSION}-lang.tar.gz= ftp://ftp.vim.org/pub/editors/vim/extra/ SITES.vim-${VIM_VERSION}-lang.tar.gz+= ftp://ftp.fu-berlin.de/misc/editors/vim/extra/ 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.1.001-100.gz PATCHFILES+= 7.1.101 7.1.102 7.1.103 7.1.104 7.1.105 7.1.106 7.1.107 PATCHFILES+= 7.1.108 7.1.109 7.1.110 7.1.111 7.1.112 7.1.113 7.1.114 PATCHFILES+= 7.1.115 7.1.116 7.1.117 7.1.118 7.1.119 7.1.120 7.1.121 PATCHFILES+= 7.1.122 7.1.123 7.1.124 7.1.125 7.1.126 7.1.127 7.1.128 PATCHFILES+= 7.1.129 7.1.130 7.1.131 7.1.132 7.1.133 7.1.134 7.1.135 PATCHFILES+= 7.1.136 7.1.137 7.1.138 7.1.139 7.1.140 7.1.141 7.1.142 PATCHFILES+= 7.1.143 7.1.144 7.1.145 7.1.146 7.1.147 7.1.148 7.1.149 PATCHFILES+= 7.1.150 7.1.151 7.1.152 7.1.153 7.1.154 7.1.155 7.1.156 PATCHFILES+= 7.1.157 7.1.158 7.1.159 7.1.160 7.1.161 MAINTAINER= martti@NetBSD.org HOMEPAGE= http://www.vim.org/ LICENSE= vim-license 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 {} \;