2000-06-08 03:25:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# configuration scripts for imake/XFree86
|
|
|
|
|
|
|
|
F=${WRKDIR}/.config
|
|
|
|
|
|
|
|
configure () {
|
|
|
|
rm -f $F
|
|
|
|
|
|
|
|
if [ ${OSVERSION} -ge 300000 -a X${HasSecureRPC} != "X" ]; then
|
|
|
|
echo "#define HasSecureRPC ${HasSecureRPC}" >> $F
|
|
|
|
fi
|
|
|
|
if [ X${HasXdmAuth} != "X" ]; then
|
|
|
|
echo "#define HasXdmAuth ${HasXdmAuth}" >> $F
|
|
|
|
fi
|
|
|
|
if [ X${HasPam} != "X" ]; then
|
|
|
|
echo "#define HasPam ${HasPam}" >> $F
|
|
|
|
fi
|
|
|
|
if [ X${BuildPexExt} != "X" ]; then
|
|
|
|
echo "#define BuildPexExt ${BuildPexExt}" >> $F
|
|
|
|
fi
|
|
|
|
if [ X${BuildXinerama} != "X" ]; then
|
|
|
|
echo "#define BuildXinerama ${BuildXinerama}" >> $F
|
|
|
|
fi
|
|
|
|
if [ X${BuildXIE} != "X" ]; then
|
|
|
|
echo "#define BuildXIE ${BuildXIE}" >> $F
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat >> $F <<EOF
|
2000-09-07 00:03:49 +00:00
|
|
|
#ifndef XF86CardDrivers
|
|
|
|
#ifdef i386Architecture
|
2000-06-08 03:25:55 +00:00
|
|
|
#define XF86CardDrivers mga glint nv tga s3virge sis rendition \
|
|
|
|
neomagic i740 tdfx \
|
|
|
|
cirrus tseng trident chips apm \
|
|
|
|
GlideDriver fbdev \
|
2000-09-07 00:03:49 +00:00
|
|
|
ati r128 AgpGartDrivers cyrix \
|
|
|
|
vga XF86OSCardDrivers XF86ExtraCardDrivers
|
|
|
|
#else
|
|
|
|
#define XF86CardDrivers mga glint nv tga s3virge sis rendition \
|
|
|
|
neomagic i740 tdfx \
|
|
|
|
cirrus tseng trident chips apm \
|
|
|
|
GlideDriver fbdev \
|
|
|
|
ati r128 cyrix \
|
|
|
|
vga XF86OSCardDrivers XF86ExtraCardDrivers
|
|
|
|
#endif
|
|
|
|
#endif
|
2000-06-08 03:25:55 +00:00
|
|
|
EOF
|
|
|
|
echo "#define XInputDrivers mouse dynapro elo2300 elographics magellan \
|
|
|
|
microtouch mutouch spaceorb wacom" >> $F
|
|
|
|
|
2000-09-27 22:47:56 +00:00
|
|
|
# Never install something to outside ${X11BASE}!!
|
|
|
|
echo "#define NothingOutsideProjectRoot YES" >> $F
|
2000-06-08 03:25:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configure
|
|
|
|
|
|
|
|
cat $F >> ${WRKDIR}/xc/config/cf/xf86site.def
|
|
|
|
|
|
|
|
echo "#define ProjectRoot ${PREFIX}" > ${WRKDIR}/xc/config/cf/host.def
|
|
|
|
|
|
|
|
cd ${WRKDIR}/xc
|
|
|
|
make Makefile.boot
|
|
|
|
make -f xmakefile SUBDIRS="include config" VerifyOS Makefiles includes
|