freebsd-ports/x11-servers/xorg-server/scripts/configure

43 lines
1.6 KiB
Text
Raw Normal View History

#!/bin/sh
LOCALDEF=$WRKDIR/.config
rm -f $LOCALDEF
echo "#define InstallXserverSetUID ${SUID_XSERVER}" >> $LOCALDEF
echo "#define JoystickSupport NO" >> $LOCALDEF
echo "#define BuildLBX NO" >> $LOCALDEF
echo "#define XnestServer NO" >> $LOCALDEF
echo "#define BuildFontServer NO" >> $LOCALDEF
echo "#define XVirtualFramebufferServer NO" >> $LOCALDEF
echo "#define XprtServer NO" >> $LOCALDEF
echo "#define LibInstall NO" >> $LOCALDEF
echo "#define ForceNormalLib NO" >> $LOCALDEF
echo "#define XTrueTypeInstallCConvHeaders NO" >> $LOCALDEF
echo "#define BuildServer YES" >> $LOCALDEF
echo "#define BuildXprint NO" >> $LOCALDEF
echo "#define BuildLibraries NO" >> $LOCALDEF
echo "#define LibInstallBuild YES" >> $LOCALDEF
echo "#define ModInstall YES" >> $LOCALDEF
echo "#define XF86Server NO" >> $LOCALDEF
echo "#define BuildServersOnly YES" >> $LOCALDEF
echo "#define BuildGLXLibrary YES" >> $LOCALDEF
echo "#define UseInstalledPrograms YES" >> $LOCALDEF
echo "#define StandardIncludes -I${PREFIX}/include" >> $LOCALDEF
echo "#define BuildXFree86ConfigTools YES" >> $LOCALDEF
echo "#define DriverManDir \$(MANSOURCEPATH)4" >> $LOCALDEF
echo "#define DriverManSuffix 4x" >> $LOCALDEF
echo "#define MiscManDir \$(MANSOURCEPATH)7" >> $LOCALDEF
echo "#define MiscManSuffix 7x" >> $LOCALDEF
if [ X$OLD_KEYBOARD = XYES ]; then
echo "#define UseDeprecatedKeyboardDriver YES" >> $LOCALDEF
fi
if [ X$WITH_DEBUG != X ]; then
export CFLAGS="-g $CFLAGS"
echo "#define InstPgmFlags" >> $LOCALDEF
echo "#define MakeDllModules YES" >> $LOCALDEF
fi
sh $PORTSDIR/x11-servers/xorg-server/scripts/configure.gen