freebsd-ports/x11/XFree86-4-clients/scripts/configure
Eric Anholt c90ee83f03 Update X.Org ports to 6.8.1, and the DRI port to use Mesa 6.2. Because Mesa 6.2
DRI drivers are incompatible with the old libGL in XFree86, they have been
repocopied to graphics/xfree86-dri.  Also note that with this commit the html
manpages are going away, and with it the runtime dependency on perl for the
imake port.

Release notes at: http://www.x.org/X11R6.8.1/RELNOTES.txt

Props to:	kris (multiple cluster runs and sorting through logs)
		lesi (fixing all the issues in those logs, and more)
2004-12-23 01:35:49 +00:00

81 lines
2.3 KiB
Bash

#!/bin/sh
# This script does the following:
# (1) cp xf86site.def, installed by imake-4 port,
# to ${WRKDIR}/xc/config/cf.
# this provides settings for the ports system.
# (2) Create a host.def for this specific port, using
# host.def as a base.
ORIGDEF=$PREFIX/lib/X11/config/xf86site.def
DESTDEF=$WRKDIR/xc/config/cf/xf86site.def
ORIGHOSTDEF=$PREFIX/lib/X11/config/host.def
LOCALDEF=$WRKDIR/.config
HOSTDEF=$WRKDIR/xc/config/cf/host.def
# Use original host.def as initial config file
rm -f $LOCALDEF
grep -v '#define.*ProjectRoot' $ORIGHOSTDEF >> $LOCALDEF
echo "#define ProjectRoot $PREFIX" >> $LOCALDEF
# This is also defined in xf86site.def, but doesn't get
# picked up for some reason.
echo "#define NothingOutsideProjectRoot YES" >> $LOCALDEF
# User Config.
if [ X$InstallXdmConfig != XDEFAULT -a X$InstallXdmConfig != X ]; then
echo "#define InstallXdmConfig $InstallXdmConfig" >> $LOCALDEF
fi
if [ X$InstallXinitConfig != XDEFAULT -a X$InstallXinitConfig != X ]; then
echo "#define InstallXinitConfig $InstallXinitConfig" >> $LOCALDEF
fi
if [ X$InstallAppDefFiles != XDEFAULT -a X$InstallAppDefFiles != X ]; then
echo "#define InstallAppDefFiles $InstallAppDefFiles" >> $LOCALDEF
fi
# disable some options
for i in \
InstallFSConfig \
BuildServer \
BuildFontServer \
BuildFonts \
Build75DpiFonts \
Build100DpiFonts \
BuildSpeedoFonts \
BuildType1Fonts \
BuildCIDFonts \
BuildCyrillicFonts \
BuildLatin2Fonts \
BuildPlugin \
BuildHtmlManPages \
LibHeaders \
LibInstall \
ForceNormalLib \
ModInstall \
XTrueTypeInstallCConvHeaders
do \
echo "#define $i NO" >> $LOCALDEF
done
echo "#define FreeBSDCC ${CC}" >> $LOCALDEF
echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF
echo "#define FreeBSDCFLAGS ${CFLAGS}" >> $LOCALDEF
echo "#define FontLibSharedFreeType YES" >> $LOCALDEF
echo "#define LibInstallBuild YES" >> $LOCALDEF
echo "#define FreeBSDBuildXlib NO" >> $LOCALDEF
echo "#define FreeBSDBuildXbin YES" >> $LOCALDEF
echo "#define StandardIncludes -I$PREFIX/include" >> $LOCALDEF
echo "#define DontUseLibPathVar YES" >> $LOCALDEF
echo "#define PreloadSetup" >> $LOCALDEF
echo "#define UseInstalledPrograms YES" >> $LOCALDEF
echo "#define UseInstalledLibraries YES" >> $LOCALDEF
# Copy ORIGDEF to DESTDEF
rm -f $DESTDEF
cp -f $ORIGDEF $DESTDEF
# copy generated config to host.def
cp -f $LOCALDEF $HOSTDEF
exit 0