Subject: RE: src/gnu/games/chess/Xchess
To: None <current-users@netbsd.org>
From: None <JUENGST@saph2.physik.uni-bonn.de>
List: current-users
Date: 10/21/1994 12:19:47
> One of those parts of the distribution that doesn't even compile
> and has been getting on my nerves for years :-) Problem is, I'm not
> an X programmer, so I don't know if my fixes make any sense. In case
> anyone wants them, here they are, without warranty. Don't forget to
> build a separate version of gnuchess with -DCHESSTOOL and nondsp.c
> if you want to play xchess -c (against the computer) -- I did that
> and installed it as 'gnuchess' instead of 'chess' so that xchess could
> find it.
>
> Don't even think of mailing me about this -- I don't do X and I don't play
> chess, I'm just one of those people who hate a incomplete system :-)
> If anyone has a better set of fixes, I'd be grateful if they submitted them
> to the NetBSD project :-)
>
> diff -c ../Xchess/Makefile ./Makefile
> *** ../Xchess/Makefile Fri Dec 17 13:56:00 1993
> --- ./Makefile Fri Oct 21 15:18:06 1994
> ***************
> *** 2,13 ****
>
> PROG = xchess
>
> ! SRCS = board.c button.c clock.c control.c jail.c message.c parse.c popup.c \
> program.c record.c std.c valid.c window.c XCircle.c scrollText.c
>
> ! CFLAGS += -I. -DDEF_PROGRAM=\"gnuchess\"
>
> ! LDADD = -L/usr/X386/lib -lX11
~~~~~~~~~~~~~~~
> DPADD = /usr/X386/lib/libX11.a
~~~~~~~~~~~~~~~~~~~~~~
>
> .include <bsd.prog.mk>
> --- 2,13 ----
>
> PROG = xchess
>
> ! SRCS = xchess.c board.c button.c clock.c control.c jail.c message.c parse.c popup.c \
> program.c record.c std.c valid.c window.c XCircle.c scrollText.c
>
> ! CFLAGS += -I/usr/X386/include -I. -DDEF_PROGRAM=\"/usr/games/gnuchess\"
~~~~~~~~~~~~~~~~~~~
>
> ! LDADD = -L/usr/X386/lib -loldX -lX11 -lm -lcompat
~~~~~~~~~~~~~~~
> DPADD = /usr/X386/lib/libX11.a
~~~~~~~~~~~~~~~~~~~~~~
>
> .include <bsd.prog.mk>
> [...]
It may be a good idea to remove all this -I and -L stuff and create the
missing symbolic links, e.g. /usr/X386/include/X11/* -> /usr/include/X11/,
/usr/X386/lib/* -> /usr/lib/ etc..
I wouldn't use /usr/X386/include/X11 -> /usr/include/X11, because I've
got many extensions for X11 which are installed in separate directories,
but not in /usr/X386 and have links in the directory /usr/include/X11.
I'm sure that sparc, vax, m68k et al. users don't like to see /usr/X386
in their sources.
>
> --
> Me: Ronald Khoo Food: Roti Chanai Drink: Tea, weak, milky without sugar
> In Malaysia: ronald@cpm.my +60 3 241 5232 Computer Protocol Malaysia
> In England: ronald@demon.net +44 81 349 0063 Demon Internet Services
Henry
--
juengst@saph2.physik.uni-bonn.de [131.220.221.12] (internet)
juengst@boss1.physik.uni-bonn.de [131.220.221.30]
saph2::juengst [13.259] (decnet)
Any opinions in this mail are my own.