# $NetBSD: Makefile.common,v 1.64 2006/09/08 06:18:28 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}-lang.tar.gz CATEGORIES= editors MASTER_SITES= ftp://ftp.vim.org/pub/editors/vim/unix/ \ ftp://ftp.fu-berlin.de/misc/editors/vim/unix/ \ ftp://ftp.twics.co.jp/pub/vim/unix/ SITES.vim-${VIM_VERSION}-lang.tar.gz= ftp://ftp.vim.org/pub/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 7.0.002 7.0.003 7.0.004 7.0.007 7.0.008 7.0.009 PATCHFILES+= 7.0.010 7.0.011 7.0.012 7.0.013 7.0.014 7.0.015 7.0.016 PATCHFILES+= 7.0.017 7.0.018 7.0.019 7.0.020 7.0.021 7.0.022 7.0.023 PATCHFILES+= 7.0.024 7.0.025 7.0.026 7.0.029 7.0.030 7.0.031 7.0.033 PATCHFILES+= 7.0.034 7.0.035 7.0.036 7.0.037 7.0.038 7.0.039 7.0.040 PATCHFILES+= 7.0.041 7.0.042 7.0.043 7.0.044 7.0.046 7.0.047 7.0.048 PATCHFILES+= 7.0.049 7.0.050 7.0.051 7.0.052 7.0.053 7.0.054 7.0.055 PATCHFILES+= 7.0.056 7.0.058 7.0.059 7.0.060 7.0.061 7.0.062 7.0.063 PATCHFILES+= 7.0.064 7.0.066 7.0.067 7.0.068 7.0.069 7.0.070 7.0.071 PATCHFILES+= 7.0.072 7.0.073 7.0.075 7.0.076 7.0.077 7.0.078 7.0.079 PATCHFILES+= 7.0.080 7.0.081 7.0.082 7.0.083 7.0.084 7.0.085 7.0.086 PATCHFILES+= 7.0.087 7.0.088 7.0.089 7.0.090 7.0.091 MAINTAINER= martti@NetBSD.org HOMEPAGE= http://www.vim.org/ CONFLICTS+= vim-kde-[0-9]* WRKSRC= ${WRKDIR}/${VIM_SUBDIR}/src GNU_CONFIGURE= yes .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 empty(PKGNAME:Mvim-share*) ALTERNATIVES_SRC= ${.CURDIR:Q}/../../editors/vim-share/ALTERNATIVES .else ALTERNATIVES_SRC= .endif PKG_SUPPORTED_OPTIONS+= cscope 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 post-patch: ${FIND} ${WRKDIR} -name '*.orig_dist' -exec ${RM} {} \;