diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2003-11-09 08:24:56 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2003-11-09 08:24:56 +0000 |
commit | a5954ed93ba0727d96be84e495b3c0e1e73d2f64 (patch) | |
tree | 891c8e19fb04b2d639e819a14d96a3571b7cb146 /graphics/xfree86-dri/scripts/configure | |
parent | Fix trailing spaces following a \ (diff) |
Add new port "dri". This port contains the split-out DRI client drivers from
XFree86-4-Server. I decided the history from XFree86-4-Server wasn't
significant enough, and will hopefully be obsolete soon when Mesa starts
providing the DRI drivers.
Notes
Notes:
svn path=/head/; revision=93503
Diffstat (limited to '')
-rw-r--r-- | graphics/xfree86-dri/scripts/configure | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/graphics/xfree86-dri/scripts/configure b/graphics/xfree86-dri/scripts/configure new file mode 100644 index 000000000000..609c55af6fe5 --- /dev/null +++ b/graphics/xfree86-dri/scripts/configure @@ -0,0 +1,46 @@ +#!/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 +echo "#define X11ProjectRoot $PREFIX" >> $LOCALDEF + +# This is also defined in xf86site.def, but doesn't get +# picked up for some reason. +echo "#define NothingOutsideProjectRoot YES" >> $LOCALDEF + +echo "#define BuildXF86DRI YES" >> $LOCALDEF +echo "#define BuildXF86DRM NO" >> $LOCALDEF +echo "#define HasGlide3 YES" >> $LOCALDEF + +echo "#define BuildGLXLibrary YES" >> $LOCALDEF +echo "#define UseInstalledPrograms YES" >> $LOCALDEF +echo "#define UseInstalled YES" >> $LOCALDEF +echo "#define StandardIncludes -I${PREFIX}/include" >> $LOCALDEF + +echo "#define FreeBSDCC ${CC}" >> $LOCALDEF +echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF +echo "#define FreeBSDCFLAGS ${CFLAGS}" >> $LOCALDEF + +# Copy ORIGDEF to DESTDEF +rm -f $DESTDEF +cp -f $ORIGDEF $DESTDEF + +# copy generated config to host.def +cp -f $LOCALDEF $HOSTDEF + +exit 0 |