1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Remove extra CFLAGS define to force building with buggy open-motif.

Add a check to the program that checks for buggy open-motif so that
version 2.2.3 is seen as non-buggy.  This last check is already in
nedit sources in similar form.
This commit is contained in:
Daniel Eischen 2004-08-15 22:08:35 +00:00
parent 47fa80a00e
commit d0bfdb90d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116317
2 changed files with 21 additions and 15 deletions

View File

@ -25,7 +25,6 @@ USE_XPM= yes
MAN1= nclient.1 nedit.1
ALL_TARGET= freebsd
MAKE_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP} BINMODE=${BINMODE}
CFLAGS+= -DBUILD_BROKEN_NEDIT
post-extract:
${CP} ${DISTDIR}/nedit.app-defaults ${WRKSRC}/NEdit.ad

View File

@ -1,14 +1,21 @@
--- util/check_lin_tif.c.orig Thu Nov 13 07:09:50 2003
+++ util/check_lin_tif.c Sat Feb 7 14:57:33 2004
@@ -164,9 +164,8 @@
"risking instability and probable data loss. You are very brave!\n"
"Please do not report bugs to the NEdit developers unless you can\n"
"reproduce them with a known-good NEdit binary downloaded from:\n"
- "\thttp://www.nedit.org\n"
- "\nHIT ENTER TO CONTINUE\n", tif);
- fgets(buf, 2, stdin);
+ "\thttp://www.nedit.org\n", tif);
+ sleep(5);
exit(0);
#else
fprintf(stderr,
--- util/check_lin_tif.c.orig Thu Nov 13 02:09:50 2003
+++ util/check_lin_tif.c Sun Aug 15 17:43:47 2004
@@ -252,7 +252,7 @@
/* Check for the dreaded Open Motif 2.2.2 */
if (force_bad ||
- (XmVERSION == 2 && XmREVISION == 2 && XmUPDATE_LEVEL <= 3)) {
+ (XmVERSION == 2 && XmREVISION == 2 && XmUPDATE_LEVEL < 3)) {
fprintf(stderr, "ERROR: Bad Open Motif Version:\n\t%s\n", vs);
fprintf(stderr,
"\nThis version of Open Motif is known to be broken and is\n"
@@ -262,7 +262,8 @@
"\thttp://www.motifdeveloper.com/tips/tip22.html\n"
"\thttp://www.motifdeveloper.com/tips/Motif22Review.pdf\n");
finish(1, tif);
- }
+ }
+ exit(0);
}
#endif