XFree86 X11R5 distribution
%n XFree86
%v 2.1.1
%c *
%l *
%b *
%d *
%f1 ftp.cs.unc.edu:/pub/bogus/TAR_FILES/misc/XFree86
%t1 X11R5-PL26.tar.gz
%f2 ftp.physics.su.oz.au:/XFree86
%t2 XFree86-2.1.tar.gz
%f3 ftp.physics.su.oz.au:/XFree86
%t3 Type1.tar.gz
%f4 ftp.cs.unc.edu:/pub/bogus/TAR_FILES/misc/XFree86
%t4 Type1-fonts.tar.gz
%f3 ftp.physics.su.oz.au:/XFree86
%p5 XFree86-2.1.diff.gz
%f6 ftp.physics.su.oz.au:/XFree86
%p6 2.1-2.1.1.diff.gz
%f7 ftp.physics.su.oz.au:/XFree86
%p7 Type1.patch1.gz
%f8 ftp.physics.su.oz.au:/XFree86
%p8 Type1.patch2.gz
%f9 ftp.cs.unc.edu:/pub/bogus/TAR_FILES/misc/XFree86
%p9 Type1-fonts.patch.gz
%w misc
%%
# Copyright 1994 Rickard E. Faith, Kevin E. Martin, and Doug L. Hoffman
# All rights reserved.
# See the BOGUS.LICENSE file for distribution restrictions.

# Build the X Window system requires several different steps,
# and to package everything up requires several different PMS files.
if [ ! -e $BUILDDIR ]; then mkdir -p $BUILDDIR; fi
cd $BUILDDIR
rm -rf $NAME-$VERSION
mkdir $NAME-$VERSION
cd $NAME-$VERSION

# Untar the original tree with patches
tar xzf $SRCTARDIR/$NAME/$TARFILE1

# Apply the XFree86 2.1 patches
rm -rf mit/server/ddx/x386
tar xzf $SRCTARDIR/$NAME/$TARFILE2
zcat $SRCTARDIR/$NAME/$PATCHFILE5 | patch -s -p

# Apply the XFree86 2.1.1 patches
zcat $SRCTARDIR/$NAME/$PATCHFILE6 | patch -s -p

# Add in support for Type1 fonts
cd mit/fonts/lib/font
tar xzf $SRCTARDIR/$NAME/$TARFILE3
cd ../../..
zcat $SRCTARDIR/$NAME/$PATCHFILE7 | patch -s -p
cd ..
zcat $SRCTARDIR/$NAME/$PATCHFILE8 | patch -s -p

# Add in the Type1 fonts
cd mit/fonts/scaled
tar xzf $SRCTARDIR/$NAME/$TARFILE4
cd ../../..
zcat $SRCTARDIR/$NAME/$PATCHFILE9 | patch -s -p

patch -p0 -s << 'PATCH_EOF' &&
--- mit/config/site.def.orig	Sun Jun 19 22:09:55 1994
+++ mit/config/site.def	Sun Jun 19 22:19:26 1994
@@ -62,7 +62,7 @@
  *		Linux:		NO
  *		NetBSD, FreeBSD YES
  */
-/* #define ForceNormalLib	YES */
+#define ForceNormalLib	YES
 
 /*
  * To build shared libs on NetBSD uncomment this.
@@ -218,7 +218,7 @@
 /* #define BuildXTest	NO */
 
 /* Do you *really* want PEX? */
-/* #define BuildPex	YES */
+#define BuildPex	YES
 
 /*****************************************************************************
  *                                                                           *
@@ -227,22 +227,22 @@
  *****************************************************************************/
 
 /* To build the Font Server, uncomment the following */
-/* #define BuildFontServer	YES */
+#define BuildFontServer	YES
 
 /* Usually only want to build fonts once */
-#define BuildFonts	NO
+#define BuildFonts	YES
 
 /* If you don't want to compress pcf fonts, uncomment this */
 /* #define CompressAllFonts	NO */
 
 /* If you want to build 100dpi fonts, uncomment this */
-/* #define Build100Dpi	YES */
+#define Build100Dpi	YES
 
 /* If you don't want to build 75dpi fonts, uncomment this */
 /* #define Build75Dpi	NO */
 
 /* If you want to build the k14, jiskan, hanglg fonts, uncomment this */
-/* #define BuildLargeMiscFonts	YES */
+#define BuildLargeMiscFonts	YES
 
 /* If you want Type1 code included */
 #if !defined(AmoebaConf) && !defined(MinixConf) && !defined(OsfArchitecture)
@@ -393,11 +393,9 @@
  * Enable these if you want to automatically install these config files
  * Be careful of overwriting customised files
  */
-/*
 #define InstallXdmConfig YES
 #define InstallXinitConfig YES
 #define InstallFSConfig YES
-*/
 
 /*****************************************************************************
  *                                                                           *
--- mit/clients/Imakefile.orig	Sat Jun  4 18:00:45 1994
+++ mit/clients/Imakefile	Sat Jun  4 18:00:56 1994
@@ -22,7 +22,7 @@
 SUBDIRS = \
 	appres bitmap editres listres oclock twm viewres \
 	xauth xbiff xcalc xclipboard xclock xcmsdb $(XCONSOLE) \
-	xditview xdpyinfo xedit xfd xkill xload xlogo \
+	xditview xdpyinfo xedit xfd xkill xlogo \
 	xlsatoms xlsclients xlsfonts xmag xman $(XMH) \
 	xmodmap xpr xprop xrdb xrefresh xfontsel $(RUNDIRS) \
  	xset xsetroot xstdcmap xterm xwd xwininfo xwud $(XLOGIN)
PATCH_EOF
cd mit
make World BOOTSTRAPCFLAGS=
* rm -rf /usr/X386
* make install
* make install.man
* make install.linkkit
* ldconfig -v
* if [ -e /usr/bin/X11 ]; then rm /usr/bin/X11; fi
* ln -sf /usr/X386/bin /usr/bin/X11
* if [ -e /usr/lib/X11 ]; then rm /usr/lib/X11; fi
* ln -sf /usr/X386/lib/X11 /usr/lib/X11
* if [ -e /usr/include/X11 ]; then rm /usr/include/X11; fi
* ln -sf /usr/X386/include/X11 /usr/include/X11
** pms -t XFree86-2.1.1.bin
** pms -t XFree86-2.1.1.cfg
** pms -t XFree86-2.1.1.doc
** pms -t XFree86-2.1.1.fnt
** pms -t XFree86-2.1.1.fnt100
** pms -t XFree86-2.1.1.fnt75
** pms -t XFree86-2.1.1.fntbig
** pms -t XFree86-2.1.1.fntscl
** pms -t XFree86-2.1.1.inc
** pms -t XFree86-2.1.1.lib
** pms -t XFree86-2.1.1.lkit
** pms -t XFree86-2.1.1.man
** pms -t XFree86-2.1.1.pex
** pms -t XFree86-2.1.1.slib
** pms -t XFree86-2.1.1.8514
** pms -t XFree86-2.1.1.Mach32
** pms -t XFree86-2.1.1.Mach8
** pms -t XFree86-2.1.1.Mono
** pms -t XFree86-2.1.1.S3
** pms -t XFree86-2.1.1.SVGA
** pms -t XFree86-2.1.1.VGA16

%i set -x
%i ldconfig -v
exit
%%
* usr/bin/X11
* usr/lib/X11
* usr/include/X11
