pkgsrc/editors/vim-xaw/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc. Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-06-01 20:02:37 +02:00
# $NetBSD: Makefile,v 1.38 2005/06/01 18:02:46 jlam Exp $
1999-12-21 14:26:28 +01:00
PKGNAME= vim-xaw-${VIM_VERSION}.${VIM_PATCHLEVEL}
#PKGREVISION= 1
.include "../vim-share/Makefile.common"
1999-12-21 14:26:28 +01:00
COMMENT= Vim editor (vi clone) with X11 Athena GUI
DEPENDS+= vim-share-${VIM_VERSION}.${VIM_PATCHLEVEL}{,nb*}:../vim-share
2003-06-02 10:26:02 +02:00
CONFLICTS+= vim-[0-9]* vim-gtk-[0-9]* vim-gtk2-[0-9]*
Bump to 6.3.045 for recent security issue. 2672 6.3.001 ":browse split" gives file selection dialog twice 3913 6.3.002 utf-8 detection in translated help files is wrong 1891 6.3.003 crash when using console dialog without default choice 2438 6.3.004 too many hit-enter prompts when searching for long string 2809 6.3.005 crash when searching with character offset in closed fold 1566 6.3.006 the current directory is prepended to the ":breakadd" argument 1755 6.3.007 swap file is not deleted for a "nofile" buffer after ":cd" 1865 6.3.008 OS/2: can't compile, missing error message 3670 6.3.009 (after 6.3.006) ":breakadd file" does not match for a symlink 2450 6.3.010 writing to a named pipe causes an error message for fsync() 1896 6.3.011 crash when user command completion uses "normal :cmd" 2882 6.3.012 lalloc(0) error for substitute command with multi-line pattern 11947 6.3.013 crash when using CTRL-R = in command line uses "normal :cmd" 1566 6.3.014 default value of 'helplang' is wrong for Chinese and Taiwanese 1207 6.3.015 the string returned by winrestcmd() may end in garbage 1735 6.3.016 'define' default had "\s" before #, breaks "[d" 1364 6.3.017 "9zz" could place the cursor beyond the end of a line 1844 6.3.018 ":0argadd zero" added the argument after the first one 1992 6.3.019 crash during startup when compiled for debugging 1915 6.3.020 "dw" doesn't work right for UTF-8 when 'delcombine' is set 2822 6.3.021 can't edit file with path separator in trail byte of last char 6419 6.3.023 when <Space> is remapped abbreviations are not expanded 2456 6.3.024 missing NUL for strings created with ga_concat() 3070 6.3.026 setting 'bg' in syncolor.vim may cause endless loop or crash 7500 6.3.027 VMS: Writing a file may insert extra CR characters 2128 6.3.028 the BOM marker is written when appending to a file 2173 6.3.029 crash in syntax highlighting code when inserting a line break 4579 6.3.030 GTK 2: crash when 'enc' is set to "utf-8" and menus redefined 1483 6.3.031 pressing Tab when entering a mapping may cause a display error 2094 6.3.032 with Python 2.3 using threads doesn't work 1552 6.3.033 mapping ending in two-char command doesn't restart Insert mode 1618 6.3.034 VMS: crash in RTL when using :help, caused by ? wildcard 1770 6.3.036 ml_get errors when fold was deleted 2889 6.3.037 (after 6.3.032) warning for unused variable 2749 6.3.039 line numbers not updated when inserting a line above window 18020 6.3.040 window count for a buffer was wrong after error handling 1760 6.3.042 CTRL-X CTRL-E in Insert mode does not scroll fold correctly 8053 6.3.043 'hlsearch' highlighting sometimes disappears 12283 6.3.045 some option values may cause trouble in a modeline
2005-01-06 21:39:28 +01:00
CONFLICTS+= vim-motif-[0-9]* vim-kde-[0-9]*
1999-12-21 14:26:28 +01:00
CONFIGURE_ARGS+= --enable-gui=athena
CONFIGURE_ARGS+= --with-tlib=ncurses
1999-12-21 14:26:28 +01:00
BUILD_TARGET= vim
1999-12-21 14:26:28 +01:00
INSTALL_TARGET= installvimbin
.include "../../mk/bsd.prefs.mk"
.if defined(XAW_TYPE) && (${XAW_TYPE} == "3d" || ${XAW_TYPE} == "xpm")
2003-01-05 00:00:56 +01:00
MAKE_ENV+= XAW_LIB="Xaw3d"
.else
XAW_TYPE= standard
2003-01-05 00:00:56 +01:00
MAKE_ENV+= XAW_LIB="Xaw"
.endif
2004-04-25 03:46:11 +02:00
LIBS+= -lXaw
1999-12-21 14:26:28 +01:00
post-install:
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
1999-12-21 14:26:28 +01:00
2004-04-25 03:46:11 +02:00
.include "../../devel/ncurses/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"