2015-04-25 16:20:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.66 2015/04/25 14:20:43 tnn Exp $
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2013-01-26 22:36:13 +01:00
|
|
|
PKGNAME= vim-gtk2-${VIM_VERSION}.${VIM_PATCHLEVEL}
|
2015-04-25 16:20:17 +02:00
|
|
|
PKGREVISION= 13
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2013-01-26 22:36:13 +01:00
|
|
|
COMMENT= Vim editor (vi clone) with X11 GTK2 GUI
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2008-09-08 05:10:21 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS+= gnome
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
.include "../../editors/vim-share/Makefile.common"
|
2005-01-25 14:48:54 +01:00
|
|
|
|
2008-09-08 05:10:21 +02:00
|
|
|
|
2005-07-19 12:11:48 +02:00
|
|
|
DEPENDS+= vim-share-${VIM_VERSION}.${VIM_PATCHLEVEL}{,nb*}:../../editors/vim-share
|
2003-06-02 10:24:45 +02:00
|
|
|
CONFLICTS+= vim-[0-9]* vim-gtk-[0-9]* vim-motif-[0-9]*
|
2005-01-06 21:39:28 +01:00
|
|
|
CONFLICTS+= vim-xaw-[0-9]* vim-kde-[0-9]*
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2008-03-02 17:01:31 +01:00
|
|
|
CONFIGURE_ARGS+= --with-tlib=${BUILDLINK_LIBNAME.termcap}
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2008-09-08 05:10:21 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
|
|
CONFIGURE_ARGS+= --enable-gui=gnome2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-gui=gtk2
|
|
|
|
.endif
|
|
|
|
|
2006-09-24 15:43:21 +02:00
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= vim
|
2003-06-02 10:24:45 +02:00
|
|
|
INSTALL_TARGET= installvimbin
|
|
|
|
|
2007-05-19 02:11:59 +02:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
|
|
|
|
|
|
|
|
CHECK_INTERPRETER_SKIP+=${PKGMANDIR}/man1/gvim.1 ${PKGMANDIR}/man1/gview.1
|
|
|
|
CHECK_INTERPRETER_SKIP+=${PKGMANDIR}/man1/rgvim.1 ${PKGMANDIR}/man1/rgview.1
|
|
|
|
|
2003-06-02 10:24:45 +02:00
|
|
|
post-install:
|
2006-03-02 11:41:41 +01:00
|
|
|
.for f in gvim.1 gview.1 rgvim.1 rgview.1
|
2008-01-09 14:47:42 +01:00
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${f}
|
|
|
|
${LN} -s vim.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${f}
|
2006-03-02 11:41:41 +01:00
|
|
|
.endfor
|
|
|
|
.for f in gvim gview rgvim rgview rvim rview
|
2008-01-09 14:47:42 +01:00
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/bin/${f}
|
|
|
|
${LN} -s vim ${DESTDIR}${PREFIX}/bin/${f}
|
2006-03-02 11:41:41 +01:00
|
|
|
.endfor
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2008-03-02 17:01:31 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2008-09-08 05:10:21 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
|
|
. include "../../devel/libgnomeui/buildlink3.mk"
|
|
|
|
.endif
|
2006-11-13 18:56:38 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2004-04-25 03:46:11 +02:00
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
2003-06-02 10:24:45 +02:00
|
|
|
|
2008-03-02 17:01:31 +01:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2003-06-02 10:24:45 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|