/xview-illumos

XView for illumos/Tribblix

Primary LanguageC

This is the XVIew toolkit, hacked about a bit to build on illumos
(Tribblix specifically).

See README.xview for the original README file.

The initial commit is the original xview-3.2p1.4 source.

The next commit added the debian patches. While we're not debian, this
brings most of the code up to modern standards - current compilers will
simply choke on common coding practices of 30 years ago.

The next commit fixed up the libs and clients to build and run on Tribblix.

Anything after that is cleanup.

To build, installing into a tree based on /tmp/xv:

env CC=gcc PATH=/usr/gnu/bin:$PATH OPENWINHOME=/usr X11DIR=/usr bash Build-LinuxXView.bash libs

Depending on your style of shell, either
export PWDTOP=`pwd`
or
setenv PWDTOP `pwd`

cd lib
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config -DHasGcc3=YES" gmake Makefiles
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake CC=gcc CCOPTIONS= CDEBUGFLAGS= includes
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake CC=gcc CCOPTIONS=-I`pwd`/.. CDEBUGFLAGS=
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake -k install CC=gcc CCOPTIONS= CDEBUGFLAGS= INSTALL=ginstall DESTDIR=/tmp/xv
cd ..

env CC=gcc PATH=/usr/gnu/bin:$PATH OPENWINHOME=/usr X11DIR=/usr bash Build-LinuxXView.bash clients

cd clients
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config -DHasGcc3=YES" gmake Makefiles
env IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake CC=gcc CCOPTIONS= CDEBUGFLAGS="-O -I/tmp/xv/usr/include" includes
env LD_LIBRARY_PATH=/tmp/xv/usr/lib IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake CC=gcc CCOPTIONS= CDEBUGFLAGS="-O -I/tmp/xv/usr/include"
env LD_LIBRARY_PATH=/tmp/xv/usr/lib IMAKEINCLUDE="-I${PWDTOP}/config -I/usr/lib/X11/config" gmake -k install CC=gcc CCOPTIONS= CDEBUGFLAGS= INSTALL=ginstall DESTDIR=/tmp/xv
cd ..

mv /tmp/xv/usr/share/openwin/help /tmp/xv/usr/lib
rmdir /tmp/xv/usr/share/src/xview /tmp/xv/usr/share/src \
  /tmp/xv/usr/share/openwin /tmp/xv/usr/share