diff options
Diffstat (limited to 'x11-servers/XFree86-4-Server-snap/scripts/configure')
-rw-r--r-- | x11-servers/XFree86-4-Server-snap/scripts/configure | 149 |
1 files changed, 67 insertions, 82 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure index c6a337bedb1e..85ee63af6364 100644 --- a/x11-servers/XFree86-4-Server-snap/scripts/configure +++ b/x11-servers/XFree86-4-Server-snap/scripts/configure @@ -1,14 +1,11 @@ #!/bin/sh # This script does the following: -# (1) cp current xf86site.def (it is created by the imake-4 port) +# (1) cp xf86site.def, installed by imake-4 port, # to ${WRKDIR}/xc/config/cf. -# this means this port uses imake-4's config for defaults. -# (2) Generate temporal config for compiling. -# Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used locally for compiling this port, so these configs will be generated -# by this script. These configs will be stored to the `host.def' file, -# but this host.def will never be installed. +# 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 @@ -16,45 +13,29 @@ ORIGHOSTDEF=$PREFIX/lib/X11/config/host.def LOCALDEF=$WRKDIR/.config HOSTDEF=$WRKDIR/xc/config/cf/host.def -configure () { - # Use original host.def as initial config file - rm -f $LOCALDEF - grep -v '#define.*ProjectRoot' $ORIGHOSTDEF >> $LOCALDEF - echo "#define ProjectRoot $PREFIX" >> $LOCALDEF +# Use original host.def as initial config file +rm -f $LOCALDEF +grep -v '#define.*ProjectRoot' $ORIGHOSTDEF >> $LOCALDEF +echo "#define ProjectRoot $PREFIX" >> $LOCALDEF - # It's good for FreeBSD ports/packages system. - echo "#define NothingOutsideProjectRoot YES" >> $LOCALDEF +# This is also defined in xf86site.def, but doesn't get +# picked up for some reason. +echo "#define NothingOutsideProjectRoot YES" >> $LOCALDEF - # Now, we can use this configuration. - # Thanks, Trevor Johnson <trevor@jpj.net> - echo "#define InstallXserverSetUID NO" >> $LOCALDEF +# Now, we can use this configuration. +# Thanks, Trevor Johnson <trevor@jpj.net> +echo "#define InstallXserverSetUID NO" >> $LOCALDEF - # User Config. - if [ X$HasSecureRPC != XDEFAULT -a X$HasSecureRPC != X ]; then - echo "#define HasSecureRPC $HasSecureRPC" >> $LOCALDEF - fi - if [ X$HasPam != XDEFAULT -a X$HasPam != X ]; then - echo "#define HasPam $HasPam" >> $LOCALDEF - fi - if [ X$ExtendedInputDevices = XDEFAULT -o X$ExtendedInputDevices = XYES ]; then - echo "#define XInputDrivers mouse digitaledge dynapro elo2300 \ - elographics magellan \ - microtouch mutouch spaceorb summa \ - wacom void citron" >> $LOCALDEF - echo "#define JoystickSupport YES" >> $LOCALDEF - else - echo "#define XInputDrivers mouse" >> $LOCALDEF - fi - echo "#define BuildXF86DRI ${BuildXF86DRI}" >> $LOCALDEF - echo "#define BuildXF86DRM NO" >> $LOCALDEF - echo "#define HasGlide3 ${HasGlide3}" >> $LOCALDEF - echo "#define Glide3IncDir glide3" >> $LOCALDEF +echo "#define XInputDrivers mouse keyboard digitaledge dynapro elo2300 \ + elographics magellan \ + microtouch mutouch spaceorb summa \ + wacom void citron" >> $LOCALDEF +echo "#define BuildXF86DRI ${BuildXF86DRI}" >> $LOCALDEF +echo "#define BuildXF86DRM NO" >> $LOCALDEF +echo "#define HasGlide3 YES" >> $LOCALDEF - # Matrox driver support - echo "#define HaveMatroxHal $HaveMatroxHal" >> $LOCALDEF - - # disable some configs: there are not used this ports - for i in \ +# disable some options +for i in \ BuildFonts \ Build75DpiFonts \ Build100DpiFonts \ @@ -62,6 +43,7 @@ configure () { BuildType1Fonts \ BuildCIDFonts \ BuildCyrillicFonts \ + JoystickSupport \ XnestServer \ BuildFontServer \ XVirtualFramebufferServer \ @@ -70,52 +52,55 @@ configure () { LibInstall \ ForceNormalLib \ XTrueTypeInstallCConvHeaders - do \ - echo "#define $i NO" >> $LOCALDEF - done - echo "#define BuildServer YES" >> $LOCALDEF - echo "#define LibInstallBuild YES" >> $LOCALDEF - echo "#define ModInstall YES" >> $LOCALDEF - echo "#define XF86Server YES" >> $LOCALDEF - echo "#define BuildServersOnly YES" >> $LOCALDEF - echo "#define BuildXFree86ConfigTools YES" >> $LOCALDEF - echo "#define UseInstalledPrograms YES" >> $LOCALDEF - echo "#define StandardIncludes -I${PREFIX}/include" >> $LOCALDEF - echo "#define FreeBSDCC ${CC}" >> $LOCALDEF - echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF - echo "#define FreeBSDCFLAGS ${CFLAGS}" >> $LOCALDEF +do \ + echo "#define $i NO" >> $LOCALDEF +done + +echo "#define BuildServer YES" >> $LOCALDEF +echo "#define LibInstallBuild YES" >> $LOCALDEF +echo "#define ModInstall YES" >> $LOCALDEF +echo "#define XF86Server YES" >> $LOCALDEF +echo "#define BuildServersOnly YES" >> $LOCALDEF +echo "#define BuildGLXLibrary YES" >> $LOCALDEF +echo "#define BuildXFree86ConfigTools YES" >> $LOCALDEF +echo "#define UseInstalledPrograms YES" >> $LOCALDEF +echo "#define StandardIncludes -I${PREFIX}/include" >> $LOCALDEF - # More of the i386 drivers could probably move to XF86CardDrivers. - # Is fbdev driver useful to us? - # GlideDriver was left out because we have no Glide2 package. - cat >> $LOCALDEF <<END -#ifndef XF86CardDrivers -#ifdef i386Architecture -#define ArchSpecificDrivers apm ark chips cirrus cyrix fbdev i740 \ - i128 i810 neomagic sis trident tseng \ - vesa vmware -#define DriDrivers gamma tdfx mga i810 i830 r128 radeon sis +echo "#define FreeBSDCC ${CC}" >> $LOCALDEF +echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF +if [ X$WITH_DEBUG != X ]; then + echo "#define FreeBSDCFLAGS -g ${CFLAGS}" >> $LOCALDEF + echo "#define InstPgmFlags" >> $LOCALDEF +else + echo "#define FreeBSDCFLAGS ${CFLAGS}" >> $LOCALDEF +fi + +# We need to test cards on these architectures and see what can be added +# to the other architectures. +cat >> $LOCALDEF <<END +#if defined(i386Architecture) +# define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \ + neomagic i740 tdfx savage \ + cirrus vmware tseng trident chips apm \ + i128 nsc ati i810 ark cyrix siliconmotion \ + vesa vga +#elif defined(ia64Architecture) +# define XF86CardDrivers mga nv tdfx glint ati vga #elif defined(AlphaArchitecture) -#define ArchSpecificDrivers -#define DriDrivers gamma tdfx mga r128 radeon -#endif -#define XF86CardDrivers ati glint mga nv rendition s3 s3virge \ - savage siliconmotion tdfx tga vga \ - ArchSpecificDrivers DevelDrivers \ - XF86OSCardDrivers XF86ExtraCardDrivers +# define XF86CardDrivers mga glint nv tga s3 s3virge rendition \ + tdfx savage cirrus ati siliconmotion vga +#elif defined(Sparc64Architecture) +# define XF86CardDrivers nv ati sunffb #endif END - echo "#define FreeBSDBuildXxserv YES" >> $LOCALDEF +echo "#define FreeBSDBuildXxserv YES" >> $LOCALDEF - # Copy ORIGDEF to DESTDEF - rm -f $DESTDEF - cp -f $ORIGDEF $DESTDEF +# Copy ORIGDEF to DESTDEF +rm -f $DESTDEF +cp -f $ORIGDEF $DESTDEF - # copy generated config to host.def - cp -f $LOCALDEF $HOSTDEF -} +# copy generated config to host.def +cp -f $LOCALDEF $HOSTDEF -cp ${X11BASE}/lib/X11/config/version.def ${WRKSRC}/config/cf -configure exit 0 |