diff options
author | pooka <pooka> | 2000-02-18 14:37:43 +0000 |
---|---|---|
committer | pooka <pooka> | 2000-02-18 14:37:43 +0000 |
commit | 14dd65260c4b322320f4e826165da57e4f84aee3 (patch) | |
tree | 105b03030f1622605db13a112957d35eb05eb847 /editors | |
parent | c132e9ecbe13f8c93d70e83070d5a2e8fc440a43 (diff) | |
download | pkgsrc-14dd65260c4b322320f4e826165da57e4f84aee3.tar.gz |
Do the same here that was done for vim-gtk, ie. fix solaris curses handling
and modify post-install into a tidy loop.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/vim-xaw/Makefile | 26 | ||||
-rw-r--r-- | editors/vim/Makefile | 14 |
2 files changed, 24 insertions, 16 deletions
diff --git a/editors/vim-xaw/Makefile b/editors/vim-xaw/Makefile index 6ab45682e7c..b76d6ecc851 100644 --- a/editors/vim-xaw/Makefile +++ b/editors/vim-xaw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2000/01/25 17:13:19 pooka Exp $ +# $NetBSD: Makefile,v 1.6 2000/02/18 14:37:44 pooka Exp $ .include "../vim-share/Makefile.common" @@ -10,7 +10,7 @@ CONFLICTS= vim-[0-9]* vim-gtk-* USE_X11= yes USE_XAW= yes -CONFIGURE_ARGS+= --enable-gui=athena --with-tlib=ncurses +CONFIGURE_ARGS+= --enable-gui=athena CPPFLAGS+= -I${LOCALBASE}/include # for ncurses' termcap.h LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" @@ -22,19 +22,21 @@ INSTALL_TARGET= installvimbin .if (${OPSYS} == "NetBSD") DEPENDS+= ncurses>=4.2:../../devel/ncurses +CONFIGURE_ARGS+= --with-tlib=ncurses +.elif ${OPSYS} == "SunOS" +CPPFLAGS= +CONFIGURE_ARGS+= --with-tlib=curses .endif post-install: - ${LN} -fs vim.1 ${PREFIX}/man/man1/gvim.1 - ${LN} -fs vim.1 ${PREFIX}/man/man1/gview.1 - ${LN} -fs vim.1 ${PREFIX}/man/man1/rgvim.1 - ${LN} -fs vim.1 ${PREFIX}/man/man1/rgview.1 - ${LN} -fs vim ${PREFIX}/bin/gvim - ${LN} -fs vim ${PREFIX}/bin/gview - ${LN} -fs vim ${PREFIX}/bin/rgvim - ${LN} -fs vim ${PREFIX}/bin/rgview - ${LN} -fs vim ${PREFIX}/bin/rvim - ${LN} -fs vim ${PREFIX}/bin/rview + for f in gvim.1 gview.1 rgvim.1 rgview.1; do \ + ${RM} -f ${PREFIX}/man/man1/$$f; \ + ${LN} -s vim.1 ${PREFIX}/man/man1/$$f; \ + done + for f in gvim gview rgvim rgview rvim rview; do \ + ${RM} -f ${PREFIX}/bin/$$f; \ + ${LN} -s vim ${PREFIX}/bin/$$f; \ + done .include "../../mk/bsd.pkg.mk" diff --git a/editors/vim/Makefile b/editors/vim/Makefile index 1d8cbc4aa02..31181a43bed 100644 --- a/editors/vim/Makefile +++ b/editors/vim/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2000/01/25 17:13:14 pooka Exp $ +# $NetBSD: Makefile,v 1.32 2000/02/18 14:37:43 pooka Exp $ .include "../vim-share/Makefile.common" @@ -8,7 +8,7 @@ DEPENDS+= vim-share-${VIM_VERSION}:../vim-share CONFLICTS= vim-xaw-* vim-gtk-* -CONFIGURE_ARGS+= --enable-gui=no --without-x --with-tlib=ncurses +CONFIGURE_ARGS+= --enable-gui=no --without-x CPPFLAGS+= -I${LOCALBASE}/include # for ncurses' termcap.h LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" @@ -20,10 +20,16 @@ INSTALL_TARGET= installvimbin .if (${OPSYS} == "NetBSD") DEPENDS+= ncurses>=4.2:../../devel/ncurses +CONFIGURE_ARGS+= --with-tlib=ncurses +.elif ${OPSYS} == "SunOS" +CPPFLAGS= +CONFIGURE_ARGS+= --with-tlib=curses .endif post-install: - ${LN} -fs vim ${PREFIX}/bin/rvim - ${LN} -fs vim ${PREFIX}/bin/rview + for f in rvim rview ; do \ + ${RM} -f ${PREFIX}/bin/$$f; \ + ${LN} -s vim ${PREFIX}/bin/$$f; \ + done .include "../../mk/bsd.pkg.mk" |