diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-28 03:20:07 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-28 03:20:07 +0800 |
commit | 2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc (patch) | |
tree | 95c9232df177ee6e9ecddb82cddaf1265e643dab /x11-servers | |
parent | 9967c44104882f0775dbdb910f2a6ce5e49d8137 (diff) | |
download | marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar.gz marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar.bz2 marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar.lz marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar.xz marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.tar.zst marcuscom-ports-2dd3ce4b831ae2fbe9002bcc61f33128bc974ddc.zip |
Add other XFree servers that need freetype2 fixes.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7161 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-servers')
-rw-r--r-- | x11-servers/XFree86-4-NestServer/Makefile | 43 | ||||
-rw-r--r-- | x11-servers/XFree86-4-NestServer/distinfo | 9 | ||||
-rw-r--r-- | x11-servers/XFree86-4-NestServer/pkg-descr | 8 | ||||
-rw-r--r-- | x11-servers/XFree86-4-NestServer/pkg-install | 13 | ||||
-rwxr-xr-x | x11-servers/XFree86-4-NestServer/scripts/configure | 63 | ||||
-rw-r--r-- | x11-servers/XFree86-4-PrintServer/Makefile | 43 | ||||
-rw-r--r-- | x11-servers/XFree86-4-PrintServer/distinfo | 9 | ||||
-rw-r--r-- | x11-servers/XFree86-4-PrintServer/pkg-descr | 3 | ||||
-rwxr-xr-x | x11-servers/XFree86-4-PrintServer/scripts/configure | 62 | ||||
-rw-r--r-- | x11-servers/XFree86-4-VirtualFramebufferServer/Makefile | 43 | ||||
-rw-r--r-- | x11-servers/XFree86-4-VirtualFramebufferServer/distinfo | 9 | ||||
-rw-r--r-- | x11-servers/XFree86-4-VirtualFramebufferServer/pkg-descr | 3 | ||||
-rw-r--r-- | x11-servers/XFree86-4-VirtualFramebufferServer/pkg-install | 13 | ||||
-rwxr-xr-x | x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure | 65 |
14 files changed, 386 insertions, 0 deletions
diff --git a/x11-servers/XFree86-4-NestServer/Makefile b/x11-servers/XFree86-4-NestServer/Makefile new file mode 100644 index 000000000..103c4cd35 --- /dev/null +++ b/x11-servers/XFree86-4-NestServer/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: XFree86-NestServer +# Date created: 10 Oct 1999 +# Whom: taguchi@tohoku.iij.ad.jp +# +# $FreeBSD: ports/x11-servers/XFree86-4-NestServer/Makefile,v 1.33 2006/08/26 04:09:21 lesi Exp $ +# + +PORTNAME= NestServer +PORTVERSION= 4.5.0 +PORTREVISION= 1 +CATEGORIES= x11-servers +MASTER_SITES= ${MASTER_SITE_XFREE} +MASTER_SITE_SUBDIR= ${PORTVERSION} +PKGNAMEPREFIX= XFree86- +DISTFILES= XFree86-${PORTVERSION}-src-1.tgz \ + XFree86-${PORTVERSION}-src-2.tgz \ + XFree86-${PORTVERSION}-src-3.tgz + +MAINTAINER= x11@FreeBSD.org +COMMENT= XFree86-4 nested X server + +CONFLICTS= xorg-nestserver-[0-9]* + +EXTRA_PATCHES= ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_bitmap_pcfread.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.h \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftsystem.c +MAN1= Xnest.1 +PLIST_FILES= bin/Xnest + +XBUILD_DIRS= lib/font lib/lbxutil lib/Xdmcp lib/Xau programs/Xserver +XINCLUDE_DIRS= lib/xkbfile lib/xtrans +XINSTALL_DIRS= programs/Xserver +XINSTALL_MAN_DIRS= programs/Xserver/hw/xnest + +.include "${.CURDIR}/../../x11/XFree86-4-libraries/Makefile.inc" +.include <bsd.port.pre.mk> +.if ${X_WINDOW_SYSTEM:L} != xfree86-4 +IGNORE= is part of XFree86 and you have ${X_WINDOW_SYSTEM} set for X11\ + distribution. See The X Window System and Virtual Consoles chapter\ + of FAQ for more information +.endif +.include <bsd.port.post.mk> diff --git a/x11-servers/XFree86-4-NestServer/distinfo b/x11-servers/XFree86-4-NestServer/distinfo new file mode 100644 index 000000000..a439d4854 --- /dev/null +++ b/x11-servers/XFree86-4-NestServer/distinfo @@ -0,0 +1,9 @@ +MD5 (xc/XFree86-4.5.0-src-1.tgz) = 6c0fcf8069c13d068276016bbf6ad712 +SHA256 (xc/XFree86-4.5.0-src-1.tgz) = 0e9fb93a0db5f7f4f78e951d559fae36a0fb0e24683a9918dff7ffee766e0aae +SIZE (xc/XFree86-4.5.0-src-1.tgz) = 10507331 +MD5 (xc/XFree86-4.5.0-src-2.tgz) = cc296c71cbe58edc3ffdec1084e58f4c +SHA256 (xc/XFree86-4.5.0-src-2.tgz) = a50120da18c6caeb151094fa2ab7afc618821c72d3cedf6842f3636880839a09 +SIZE (xc/XFree86-4.5.0-src-2.tgz) = 5826556 +MD5 (xc/XFree86-4.5.0-src-3.tgz) = c0ad630bfec4545857c2877b3e2dcbeb +SHA256 (xc/XFree86-4.5.0-src-3.tgz) = 2719f8055955dce293f2a8a846514d3908fa05b9d053c59b4fe1e09470a054df +SIZE (xc/XFree86-4.5.0-src-3.tgz) = 12086763 diff --git a/x11-servers/XFree86-4-NestServer/pkg-descr b/x11-servers/XFree86-4-NestServer/pkg-descr new file mode 100644 index 000000000..fc238b95e --- /dev/null +++ b/x11-servers/XFree86-4-NestServer/pkg-descr @@ -0,0 +1,8 @@ +This package contains Xnest, a nested X server. +Xnest is a client and a server. Xnest is a client of the +real server which manages windows and graphics requests on +its behalf. Xnest is a server to its own clients. Xnest +manages windows and graphics requests on their behalf. To +these clients Xnest appears to be a conventional server. + +WWW: http://www.xfree86.org/ diff --git a/x11-servers/XFree86-4-NestServer/pkg-install b/x11-servers/XFree86-4-NestServer/pkg-install new file mode 100644 index 000000000..6f04a27ff --- /dev/null +++ b/x11-servers/XFree86-4-NestServer/pkg-install @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +PKG_PREFIX=${PKG_PREFIX:=/usr/X11R6} +SECCONFDIR=${PKG_PREFIX}/lib/X11/xserver + +if [ ! -f ${SECCONFDIR}/SecurityPolicy ]; then + cp ${SECCONFDIR}/SecurityPolicy.default-NestServer \ + ${SECCONFDIR}/SecurityPolicy +fi diff --git a/x11-servers/XFree86-4-NestServer/scripts/configure b/x11-servers/XFree86-4-NestServer/scripts/configure new file mode 100755 index 000000000..a5a5dfc2c --- /dev/null +++ b/x11-servers/XFree86-4-NestServer/scripts/configure @@ -0,0 +1,63 @@ +#!/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 + +# disable some options +for i in BuildFonts \ + Build75DpiFonts \ + Build100DpiFonts \ + BuildSpeedoFonts \ + BuildType1Fonts \ + BuildCIDFonts \ + BuildCyrillicFonts \ + BuildLatin2Fonts \ + BuildHtmlManPages \ + XF86Server \ + BuildFontServer \ + XVirtualFramebufferServer \ + XprtServer \ + XdmxServer \ + LibHeaders \ + ForceNormalLib \ + InstallSecurityConfig \ + XTrueTypeInstallCConvHeaders +do \ + echo "#define $i NO" >> $LOCALDEF +done + +echo "#define BuildServer YES" >> $LOCALDEF +echo "#define XnestServer YES" >> $LOCALDEF +echo "#define BuildServersOnly YES" >> $LOCALDEF +echo "#define UseInstalledPrograms YES" >> $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 diff --git a/x11-servers/XFree86-4-PrintServer/Makefile b/x11-servers/XFree86-4-PrintServer/Makefile new file mode 100644 index 000000000..a5e5bc15f --- /dev/null +++ b/x11-servers/XFree86-4-PrintServer/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: XFree86-PrintServer +# Date created: 10 Oct 1999 +# Whom: taguchi@tohoku.iij.ad.jp +# +# $FreeBSD: ports/x11-servers/XFree86-4-PrintServer/Makefile,v 1.32 2006/08/26 04:09:21 lesi Exp $ +# + +PORTNAME= PrintServer +PORTVERSION= 4.5.0 +PORTREVISION= 1 +CATEGORIES= x11-servers +MASTER_SITES= ${MASTER_SITE_XFREE} +MASTER_SITE_SUBDIR= ${PORTVERSION} +PKGNAMEPREFIX= XFree86- +DISTFILES= XFree86-${PORTVERSION}-src-1.tgz \ + XFree86-${PORTVERSION}-src-2.tgz \ + XFree86-${PORTVERSION}-src-3.tgz + +MAINTAINER= x11@FreeBSD.org +COMMENT= XFree86-4 print server + +CONFLICTS= xorg-printserver-* + +EXTRA_PATCHES= ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_bitmap_pcfread.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.h \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftsystem.c +PLIST_FILES= bin/Xprt +XBUILD_DIRS= lib/font lib/lbxutil lib/Xdmcp lib/Xau programs/Xserver +XINCLUDE_DIRS= lib/xkbfile lib/xtrans +XINSTALL_DIRS= programs/Xserver + +do-install: + $(INSTALL_PROGRAM) ${WRKSRC}/programs/Xserver/Xprt ${PREFIX}/bin/Xprt + +.include "${.CURDIR}/../../x11/XFree86-4-libraries/Makefile.inc" +.include <bsd.port.pre.mk> +.if ${X_WINDOW_SYSTEM:L} != xfree86-4 +IGNORE= is part of XFree86 and you have ${X_WINDOW_SYSTEM} set for X11\ + distribution. See The X Window System and Virtual Consoles chapter\ + of FAQ for more information +.endif +.include <bsd.port.post.mk> diff --git a/x11-servers/XFree86-4-PrintServer/distinfo b/x11-servers/XFree86-4-PrintServer/distinfo new file mode 100644 index 000000000..a439d4854 --- /dev/null +++ b/x11-servers/XFree86-4-PrintServer/distinfo @@ -0,0 +1,9 @@ +MD5 (xc/XFree86-4.5.0-src-1.tgz) = 6c0fcf8069c13d068276016bbf6ad712 +SHA256 (xc/XFree86-4.5.0-src-1.tgz) = 0e9fb93a0db5f7f4f78e951d559fae36a0fb0e24683a9918dff7ffee766e0aae +SIZE (xc/XFree86-4.5.0-src-1.tgz) = 10507331 +MD5 (xc/XFree86-4.5.0-src-2.tgz) = cc296c71cbe58edc3ffdec1084e58f4c +SHA256 (xc/XFree86-4.5.0-src-2.tgz) = a50120da18c6caeb151094fa2ab7afc618821c72d3cedf6842f3636880839a09 +SIZE (xc/XFree86-4.5.0-src-2.tgz) = 5826556 +MD5 (xc/XFree86-4.5.0-src-3.tgz) = c0ad630bfec4545857c2877b3e2dcbeb +SHA256 (xc/XFree86-4.5.0-src-3.tgz) = 2719f8055955dce293f2a8a846514d3908fa05b9d053c59b4fe1e09470a054df +SIZE (xc/XFree86-4.5.0-src-3.tgz) = 12086763 diff --git a/x11-servers/XFree86-4-PrintServer/pkg-descr b/x11-servers/XFree86-4-PrintServer/pkg-descr new file mode 100644 index 000000000..ed3cb4ddd --- /dev/null +++ b/x11-servers/XFree86-4-PrintServer/pkg-descr @@ -0,0 +1,3 @@ +This package contains Xprt, X print server. + +WWW: http://www.xfree86.org/ diff --git a/x11-servers/XFree86-4-PrintServer/scripts/configure b/x11-servers/XFree86-4-PrintServer/scripts/configure new file mode 100755 index 000000000..4891f552f --- /dev/null +++ b/x11-servers/XFree86-4-PrintServer/scripts/configure @@ -0,0 +1,62 @@ +#!/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 + +# disable some options +for i in BuildFonts \ + Build75DpiFonts \ + Build100DpiFonts \ + BuildSpeedoFonts \ + BuildType1Fonts \ + BuildCIDFonts \ + BuildCyrillicFonts \ + BuildLatin2Fonts \ + BuildHtmlManPages \ + XF86Server \ + BuildFontServer \ + XnestServer \ + XVirtualFramebufferServer \ + XdmxServer \ + LibHeaders \ + ForceNormalLib \ + XTrueTypeInstallCConvHeaders +do \ + echo "#define $i NO" >> $LOCALDEF +done + +echo "#define BuildServer YES" >> $LOCALDEF +echo "#define XprtServer YES" >> $LOCALDEF +echo "#define BuildServersOnly YES" >> $LOCALDEF +echo "#define UseInstalledPrograms YES" >> $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 diff --git a/x11-servers/XFree86-4-VirtualFramebufferServer/Makefile b/x11-servers/XFree86-4-VirtualFramebufferServer/Makefile new file mode 100644 index 000000000..73556b51d --- /dev/null +++ b/x11-servers/XFree86-4-VirtualFramebufferServer/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: XFree86-VirtualFramebufferServer +# Date created: 10 Oct 1999 +# Whom: taguchi@tohoku.iij.ad.jp +# +# $FreeBSD: ports/x11-servers/XFree86-4-VirtualFramebufferServer/Makefile,v 1.34 2006/08/26 04:09:21 lesi Exp $ +# + +PORTNAME= VirtualFramebufferServer +PORTVERSION= 4.5.0 +PORTREVISION= 1 +CATEGORIES= x11-servers +MASTER_SITES= ${MASTER_SITE_XFREE} +MASTER_SITE_SUBDIR= ${PORTVERSION} +PKGNAMEPREFIX= XFree86- +DISTFILES= XFree86-${PORTVERSION}-src-1.tgz \ + XFree86-${PORTVERSION}-src-2.tgz \ + XFree86-${PORTVERSION}-src-3.tgz + +MAINTAINER= x11@FreeBSD.org +COMMENT= XFree86-4 virtual framebuffer server + +CONFLICTS= xorg-vfbserver-[0-9]* + +EXTRA_PATCHES= ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_bitmap_pcfread.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.c \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftfuncs.h \ + ${.CURDIR}/../../x11-servers/XFree86-4-Server/files/patch-lib_font_FreeType_ftsystem.c +MAN1= Xvfb.1 +PLIST_FILES= bin/Xvfb + +XBUILD_DIRS= lib/font lib/lbxutil/ lib/Xdmcp lib/Xau programs/Xserver +XINCLUDE_DIRS= lib/xkbfile lib/xtrans +XINSTALL_DIRS= programs/Xserver +XINSTALL_MAN_DIRS= programs/Xserver/hw/vfb + +.include "${.CURDIR}/../../x11/XFree86-4-libraries/Makefile.inc" +.include <bsd.port.pre.mk> +.if ${X_WINDOW_SYSTEM:L} != xfree86-4 +IGNORE= is part of XFree86 and you have ${X_WINDOW_SYSTEM} set for X11\ + distribution. See The X Window System and Virtual Consoles chapter\ + of FAQ for more information +.endif +.include <bsd.port.post.mk> diff --git a/x11-servers/XFree86-4-VirtualFramebufferServer/distinfo b/x11-servers/XFree86-4-VirtualFramebufferServer/distinfo new file mode 100644 index 000000000..a439d4854 --- /dev/null +++ b/x11-servers/XFree86-4-VirtualFramebufferServer/distinfo @@ -0,0 +1,9 @@ +MD5 (xc/XFree86-4.5.0-src-1.tgz) = 6c0fcf8069c13d068276016bbf6ad712 +SHA256 (xc/XFree86-4.5.0-src-1.tgz) = 0e9fb93a0db5f7f4f78e951d559fae36a0fb0e24683a9918dff7ffee766e0aae +SIZE (xc/XFree86-4.5.0-src-1.tgz) = 10507331 +MD5 (xc/XFree86-4.5.0-src-2.tgz) = cc296c71cbe58edc3ffdec1084e58f4c +SHA256 (xc/XFree86-4.5.0-src-2.tgz) = a50120da18c6caeb151094fa2ab7afc618821c72d3cedf6842f3636880839a09 +SIZE (xc/XFree86-4.5.0-src-2.tgz) = 5826556 +MD5 (xc/XFree86-4.5.0-src-3.tgz) = c0ad630bfec4545857c2877b3e2dcbeb +SHA256 (xc/XFree86-4.5.0-src-3.tgz) = 2719f8055955dce293f2a8a846514d3908fa05b9d053c59b4fe1e09470a054df +SIZE (xc/XFree86-4.5.0-src-3.tgz) = 12086763 diff --git a/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-descr b/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-descr new file mode 100644 index 000000000..33a18240b --- /dev/null +++ b/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-descr @@ -0,0 +1,3 @@ +This package contains XVirtualFramebufferServer(Xvfb). + +WWW: http://www.xfree86.org/ diff --git a/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-install b/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-install new file mode 100644 index 000000000..3b7163d60 --- /dev/null +++ b/x11-servers/XFree86-4-VirtualFramebufferServer/pkg-install @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +PKG_PREFIX=${PKG_PREFIX:=/usr/X11R6} +SECCONFDIR=${PKG_PREFIX}/lib/X11/xserver + +if [ ! -f ${SECCONFDIR}/SecurityPolicy ]; then + cp ${SECCONFDIR}/SecurityPolicy.default-VFBServer \ + ${SECCONFDIR}/SecurityPolicy +fi diff --git a/x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure b/x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure new file mode 100755 index 000000000..1882084a1 --- /dev/null +++ b/x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure @@ -0,0 +1,65 @@ +#!/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 + +# disable some options +for i in BuildFonts \ + Build75DpiFonts \ + Build100DpiFonts \ + BuildSpeedoFonts \ + BuildType1Fonts \ + BuildCIDFonts \ + BuildCyrillicFonts \ + BuildLatin2Fonts \ + BuildHtmlManPages \ + XF86Server \ + BuildFontServer \ + XnestServer \ + XprtServer \ + XdmxServer \ + LibHeaders \ + ForceNormalLib \ + InstallSecurityConfig \ + XTrueTypeInstallCConvHeaders +do \ + echo "#define $i NO" >> $LOCALDEF +done + +echo "#define BuildServer YES" >> $LOCALDEF +echo "#define XVirtualFramebufferServer YES" >> $LOCALDEF +echo "#define BuildServersOnly 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 + +# Copy ORIGDEF to DESTDEF +rm -f $DESTDEF +cp -f $ORIGDEF $DESTDEF + +# copy generated config to host.def +cp -f $LOCALDEF $HOSTDEF + +exit 0 |