62d3b1c1fc
for being outdated. Thank you to all the testers and people who submitted patches for this update. Approved by: portmgr
66 lines
1.7 KiB
Bash
66 lines
1.7 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$DebuggableLibraries != XDEFAULT -a X$DebuggableLibraries != X ]; then
|
|
echo "#define DebuggableLibraries $DebuggableLibraries" >> $LOCALDEF
|
|
fi
|
|
|
|
# disable some options
|
|
for i in \
|
|
InstallXdmConfig \
|
|
InstallXinitConfig \
|
|
InstallFSConfig \
|
|
InstallAppDefFiles \
|
|
BuildServer \
|
|
BuildFontServer \
|
|
BuildFonts \
|
|
Build75DpiFonts \
|
|
Build100DpiFonts \
|
|
BuildSpeedoFonts \
|
|
BuildType1Fonts \
|
|
BuildCIDFonts \
|
|
BuildCyrillicFonts \
|
|
BuildLatin2Fonts \
|
|
BuildPlugin
|
|
do \
|
|
echo "#define $i NO" >> $LOCALDEF
|
|
done
|
|
|
|
echo "#define FreeBSDCC ${CC}" >> $LOCALDEF
|
|
echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF
|
|
echo "#define FreeBSDCFLAGS ${CFLAGS}" >> $LOCALDEF
|
|
|
|
echo "#define FreeBSDBuildXlib YES" >> $LOCALDEF
|
|
echo "#define FreeBSDBuildXbin NO" >> $LOCALDEF
|
|
echo "#define UseInstalledPrograms 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
|