diff options
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/xfree/files/digest-xfree-4.0.3-r3 | 5 | ||||
-rw-r--r-- | x11-base/xfree/files/digest-xfree-4.2.0-r11 | 9 | ||||
-rw-r--r-- | x11-base/xfree/files/digest-xfree-4.2.0-r9 | 7 | ||||
-rw-r--r-- | x11-base/xfree/xfree-4.0.3-r3.ebuild | 84 | ||||
-rw-r--r-- | x11-base/xfree/xfree-4.2.0-r11.ebuild | 297 | ||||
-rw-r--r-- | x11-base/xfree/xfree-4.2.0-r9.ebuild | 195 |
6 files changed, 0 insertions, 597 deletions
diff --git a/x11-base/xfree/files/digest-xfree-4.0.3-r3 b/x11-base/xfree/files/digest-xfree-4.0.3-r3 deleted file mode 100644 index 9172b095d054..000000000000 --- a/x11-base/xfree/files/digest-xfree-4.0.3-r3 +++ /dev/null @@ -1,5 +0,0 @@ -MD5 d314c311aa4a29d74695b0e39b6d80c4 X402src-1.tgz 23880758 -MD5 7dc2f848c7466f6704c8dfc3492628ae X402src-2.tgz 18918369 -MD5 3126d1ef38e3ece0260804ed3c691144 X402src-3.tgz 9306963 -MD5 c8bb56df966dd0a51d2291bca36e0ea4 4.0.2-4.0.3.diff.gz 138449 -MD5 a70e4d28c241374868a099127c668949 truetype.tar.gz 1524606 diff --git a/x11-base/xfree/files/digest-xfree-4.2.0-r11 b/x11-base/xfree/files/digest-xfree-4.2.0-r11 deleted file mode 100644 index 7e2b543247be..000000000000 --- a/x11-base/xfree/files/digest-xfree-4.2.0-r11 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 ad43a8e9e39703322005cd6f7145b77f X420src-1.tgz 25961532 -MD5 dae33268a9f2735b9678a81fb23e8d3e X420src-2.tgz 23227328 -MD5 560899e175a02ab592185b69756f539e X420src-3.tgz 9306679 -MD5 09bd932beeb5fc483ebb653033aeefca freetype-2.0.9.tar.bz2 621244 -MD5 a70e4d28c241374868a099127c668949 truetype.tar.gz 1524606 -MD5 222bffcae6c2be37ec5cd993037f4f45 xf86Wacom.c.gz 26156 -MD5 19a91692fdb4fa3d2797f57beebee34a 4.2.0-xlib-i18n-module.patch 3970 -MD5 5684153cb1f84875fb3535e3263dc447 4.2.0-zlib-security.patch 1391 -MD5 2d5c738854c7cc0378ae457b09a029f4 4.2.0-libGLU-bad-extern.patch 1463 diff --git a/x11-base/xfree/files/digest-xfree-4.2.0-r9 b/x11-base/xfree/files/digest-xfree-4.2.0-r9 deleted file mode 100644 index b283fdfb86c8..000000000000 --- a/x11-base/xfree/files/digest-xfree-4.2.0-r9 +++ /dev/null @@ -1,7 +0,0 @@ -MD5 ad43a8e9e39703322005cd6f7145b77f X420src-1.tgz 25961532 -MD5 dae33268a9f2735b9678a81fb23e8d3e X420src-2.tgz 23227328 -MD5 560899e175a02ab592185b69756f539e X420src-3.tgz 9306679 -MD5 19a91692fdb4fa3d2797f57beebee34a 4.2.0-xlib-i18n-module.patch 3970 -MD5 5684153cb1f84875fb3535e3263dc447 4.2.0-zlib-security.patch 1391 -MD5 2d5c738854c7cc0378ae457b09a029f4 4.2.0-libGLU-bad-extern.patch 1463 -MD5 a70e4d28c241374868a099127c668949 truetype.tar.gz 1524606 diff --git a/x11-base/xfree/xfree-4.0.3-r3.ebuild b/x11-base/xfree/xfree-4.0.3-r3.ebuild deleted file mode 100644 index 025dc1ac2d80..000000000000 --- a/x11-base/xfree/xfree-4.0.3-r3.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.0.3-r3.ebuild,v 1.13 2002/08/01 11:59:04 seemant Exp $ - -A="X402src-1.tgz X402src-2.tgz X402src-3.tgz 4.0.2-4.0.3.diff.gz truetype.tar.gz" -S=${WORKDIR}/xc -DESCRIPTION="Xfree - 4.0.3 with Antialias support and ATI TV and Overlay support from the LiVID project" -SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/4.0.2/source" -SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/4.0.2/source" - -SRC_URI="$SRC_PATH0/X402src-1.tgz $SRC_PATH0/X402src-2.tgz $SRC_PATH0/X402src-3.tgz - $SRC_PATH1/X402src-1.tgz $SRC_PATH1/X402src-2.tgz $SRC_PATH1/X402src-3.tgz - ftp://ftp.xfree.org/pub/XFree86/4.0.3/patches/4.0.2-4.0.3.diff.gz - ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/4.0.3/patches/4.0.2-4.0.3.diff.gz - http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz" -# http://www.linuxvideo.org/devel/data/gatos.tar.gz" - -HOMEPAGE="http://www.xfree.org - http://www.linuxvideo.org/gatos/" - -LICENSE="X11" -SLOT="0" -KEYWORDS="x86 -ppc" - -DEPEND=">=sys-libs/ncurses-5.1 - >=sys-libs/zlib-1.1.3-r2 - >=sys-devel/flex-2.5.4a-r2 - sys-devel/perl" - -RDEPEND=">=sys-libs/ncurses-5.1" - -PROVIDE="virtual/x11 virtual/opengl" - -src_unpack () { - unpack X402src-{1,2,3}.tgz - #gatos.tar.gz - cd ${S} - gzip -dc ${DISTDIR}/4.0.2-4.0.3.diff.gz | patch -p1 - patch -p1 < ${FILESDIR}/${PV}/glibc-2.2.2-ClockP.diff - cp ${FILESDIR}/${PV}/site.def config/cf/host.def - echo "#define DefaultGcc2i386Opt ${CFLAGS}" >> config/cf/host.def - #( cd ${S}/programs/Xserver/hw/xfree86/loader; patch -p0 < ${WORKDIR}/gatos-ati/ati_xv/loader.patch ) - #( cd ${S}/programs/Xserver/hw/xfree86/i2c; patch -p1 < ${WORKDIR}/gatos-ati/ati_xv/i2c.patch ) -} - -src_compile() { - make World || die - #cd ${WORKDIR}/gatos-ati/ati_xv/ati.2 - #export PATH=${S}/config/imake/bootstrap:$PATH - #try ${S}/config/util/xmkmf ${S} - #try make -} - -src_install() { - make install DESTDIR=${D} || die - make install.man DESTDIR=${D} || die - # MANPATH=/usr/X11R6/share/man - - #cd ${WORKDIR}/gatos-ati/ati_xv/ati.2 - - #try make install DESTDIR=${D} - - insinto /usr/X11R6/lib/X11 - doins ${FILESDIR}/${PV}/XftConfig - cd ${D}/usr/X11R6/lib/X11/fonts - tar xzf ${DISTDIR}/truetype.tar.gz - - dosym /usr/X11R6/lib/libGL.so.1.2 /usr/lib/libMesaGL.so - - insinto /etc/env.d - doins ${FILESDIR}/10xfree - insinto /etc/X11/xinit - doins ${FILESDIR}/xinitrc - insinto /etc/X11/xdm - doins ${FILESDIR}/Xsession - insinto /etc/pam.d - doins ${FILESDIR}/xdm - exeinto /etc/rc.d/init.d - newexe ${FILESDIR}/xdm.start xdm -} - - - - diff --git a/x11-base/xfree/xfree-4.2.0-r11.ebuild b/x11-base/xfree/xfree-4.2.0-r11.ebuild deleted file mode 100644 index 3b230ced5c96..000000000000 --- a/x11-base/xfree/xfree-4.2.0-r11.ebuild +++ /dev/null @@ -1,297 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.2.0-r11.ebuild,v 1.12 2002/08/14 12:00:14 murphy Exp $ - -FT2_VER=2.0.9 -MY_V="`echo ${PV} |sed -e 's:\.::g'`" -S=${WORKDIR}/xc -DESCRIPTION="Xfree86: famous and free X server" -SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/${PV}/source" -SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/${PV}/source" - -X_PATCHES="ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-xlib-i18n-module.patch - ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-zlib-security.patch - ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-libGLU-bad-extern.patch" -# NOTE: 4.2.0-xlib-i18n-module.patch, -# 4.2.0-zlib-security.patch, -# 4.2.0-libGLU-bad-extern.patch -# -# is ONLY for XFree86 4.2.0 - -# Updated Wacom driver -# Homepage: http://people.mandrakesoft.com/~flepied/projects/wacom/ -X_DRIVERS="http://people.mandrakesoft.com/~flepied/projects/wacom/xf86Wacom.c.gz" - -SRC_URI="${SRC_PATH0}/X${MY_V}src-1.tgz - ${SRC_PATH0}/X${MY_V}src-2.tgz - ${SRC_PATH0}/X${MY_V}src-3.tgz - ${SRC_PATH1}/X${MY_V}src-1.tgz - ${SRC_PATH1}/X${MY_V}src-2.tgz - ${SRC_PATH1}/X${MY_V}src-3.tgz - mirror://sourceforge/freetype/freetype-${FT2_VER}.tar.bz2 - http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz - ${X_PATCHES} - ${X_DRIVERS}" - -HOMEPAGE="http://www.xfree.org" -LICENSE="X11" -SLOT="0" -KEYWORDS="x86 ppc sparc sparc64" - -DEPEND=">=sys-libs/ncurses-5.1 - >=sys-libs/pam-0.75 - >=sys-libs/zlib-1.1.3-r2 - sys-devel/flex - sys-devel/perl - 3dfx? ( >=media-libs/glide-v3-3.10 )" - -RDEPEND=">=sys-libs/ncurses-5.1 - >=x11-base/opengl-update-1.3" - -PROVIDE="virtual/x11 - virtual/opengl - virtual/glu" - -src_unpack () { - - unpack X${MY_V}src-{1,2,3}.tgz - - # Deploy our custom freetype2. We want it static for stability, - # and because some things in Gentoo depends the freetype2 that - # is distributed with XFree86. - unpack freetype-${FT2_VER}.tar.bz2 - cd ${S}/extras/freetype2 - rm -rf * - mv ${WORKDIR}/freetype-${FT2_VER}/* . - # Enable hinting for truetype fonts - cd ${S}/extras/freetype2/include/freetype/config - cp ftoption.h ftoption.h.orig - sed -e 's:#undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER:#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER:' \ - ftoption.h.orig > ftoption.h - - # Update Wacom Driver, hopefully resolving bug #1632 - # The kernel driver should prob also be updated, this can be - # found at: - # - # http://people.mandrakesoft.com/~flepied/projects/wacom/ - # - zcat ${DISTDIR}/xf86Wacom.c.gz > \ - ${S}/programs/Xserver/hw/xfree86/input/wacom/xf86Wacom.c || die - - # resolve bug #794 - # NOTE: 4.2.0-xlib-i18n-module.patch is ONLY for XFree86 4.2.0 - # 4.2.0-zlib-security.patch is also ONLY for XFree86 4.2.0 - # 4.2.0-libGLU-bad-extern.patch same here .. fixes gcc-3.x compile - # errors - cd ${WORKDIR} - patch -p0 < ${DISTDIR}/${PV}-xlib-i18n-module.patch || die - patch -p0 < ${DISTDIR}/${PV}-zlib-security.patch || die - patch -p0 < ${DISTDIR}/${PV}-libGLU-bad-extern.patch || die - - cd ${S} - - # Various patches from all over - for x in ${FILESDIR}/${PV}/*.patch.bz2 - do - bzcat ${x} | patch -p2 || die "Failed to apply ${x}!" - done - - cp ${FILESDIR}/${PVR}/site.def config/cf/host.def - echo "#define XVendorString \"Gentoo Linux (XFree86 ${PV}, revision ${PR})\"" \ - >> config/cf/host.def - echo "#define OptimizedCDebugFlags ${CFLAGS}" >> config/cf/host.def - echo "#define GccWarningOptions -pipe" >> config/cf/host.def - - if [ "${ARCH}" = "x86" ] - then - # optimize Mesa for architecture - if [ -n "`use mmx`" ] - then - echo "#define HasMMXSupport YES" >> config/cf/host.def - fi - if [ -n "`use 3dnow`" ] - then - echo "#define MesaUse3DNow YES" >> config/cf/host.def - elif [ -n "`use sse`" ] - then - echo "#define MesaUseKatmai YES" >> config/cf/host.def - fi - fi - - # build with glide3 support? (build the tdfx_dri.o module) - if [ -n "`use 3dfx`" ] - then - echo "#define HasGlide3 YES" >> config/cf/host.def - fi - - # fix build problem (XFree86 server among others, was not - # linked against libXau) - cp ${S}/programs/Xserver/Imakefile \ - ${S}/programs/Xserver/Imakefile.orig - sed -e '2i CCLINK = $(CC) -L../../lib/Xau -lXau' \ - ${S}/programs/Xserver/Imakefile.orig \ - > ${S}/programs/Xserver/Imakefile - - # Apply Xft quality patch from http://www.cs.mcgill.ca/~dchest/xfthack/ -# cd ${S}/lib/Xft -# cat ${FILESDIR}/${PVR}/xft-quality.diff | patch -p1 || die -} - -src_compile() { - - # fix build build problems for tdfx driver - if [ -n "`use 3dfx`" ] - then - cd ${S}/lib/GL/mesa/src/drv/tdfx - ln -s /usr/include/glide3/glide.h glide.h - ln -s /usr/include/glide3/glideutl.h glideutl.h - ln -s /usr/include/glide3/glidesys.h glidesys.h - ln -s /usr/include/glide3/g3ext.h g3ext.h - cd ${S} - fi - - emake World || die - - if [ "`use nls`" ] - then - cd ${S}/nls - make || die - cd ${s} - fi -} - -src_install() { - - # fix compile for gcc-3.1 - if [ "`gcc -dumpversion`" = "3.1" ] - then - make install \ - CXXDEBUGFLAGS="${CXXDEBUGFLAGS} -mno-mmx" \ - CDEBUGFLAGS="${CDEBUGFLAGS} -mno-mmx" \ - DESTDIR=${D} || die - else - make install DESTDIR=${D} || die - fi - - make install.man DESTDIR=${D} || die - - if [ "`use nls`" ] - then - cd ${S}/nls - make DESTDIR=${D} install || die - cd ${S} - fi - - # we zap the our CFLAGS in the host.def file, as hardcoded CFLAGS can - # mess up other things that use xmkmf - cp ${D}/usr/X11R6/lib/X11/config/host.def \ - ${D}/usr/X11R6/lib/X11/config/host.def.orig - grep -v OptimizedCDebugFlags ${D}/usr/X11R6/lib/X11/config/host.def.orig > \ - ${D}/usr/X11R6/lib/X11/config/host.def - rm -f ${D}/usr/X11R6/lib/X11/config/host.def.orig - # theoretically, /usr/X11R6/lib/X11/config is a possible candidate for - # config file management. If we find that people really worry about imake - # stuff, we may add it. But for now, we leave the dir unprotected. - - insinto /etc/X11 - doins ${FILESDIR}/${PVR}/XftConfig - dosym ../../../../etc/X11/XftConfig /usr/X11R6/lib/X11/XftConfig - cd ${D}/usr/X11R6/lib/X11/fonts - tar -xz --no-same-owner -f ${DISTDIR}/truetype.tar.gz || \ - die "Failed to unpack truetype.tar.gz" - - dodir /usr/bin - dosym /usr/X11R6/bin /usr/bin/X11 - - dosym /usr/X11R6/lib/X11 /usr/lib/X11 - - dosym libGL.so.1.2 /usr/X11R6/lib/libGL.so - dosym libGL.so.1.2 /usr/X11R6/lib/libGL.so.1 - dosym libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so - # We move libGLU to /usr/lib now - dosym libGLU.so.1.3 /usr/lib/libMesaGLU.so - - # .la files for libtool support - insinto /usr/X11R6/lib - doins ${FILESDIR}/${PVR}/lib/*.la - - exeinto /etc/X11 - # new session management script - doexe ${FILESDIR}/${PVR}/chooser.sh - # new display manager script - doexe ${FILESDIR}/${PVR}/startDM.sh - exeinto /etc/X11/Sessions - doexe ${FILESDIR}/${PVR}/Sessions/* - insinto /etc/env.d - doins ${FILESDIR}/${PVR}/10xfree - insinto /etc/X11/xinit - doins ${FILESDIR}/${PVR}/xinitrc - exeinto /etc/X11/xdm - doexe ${FILESDIR}/${PVR}/Xsession ${FILESDIR}/${PVR}/Xsetup_0 - insinto /etc/X11/fs - newins ${FILESDIR}/${PVR}/xfs.config config - insinto /etc/pam.d - doins ${FILESDIR}/${PVR}/xdm - exeinto /etc/init.d - newexe ${FILESDIR}/${PVR}/xdm.start xdm - newexe ${FILESDIR}/${PVR}/xfs.start xfs - insinto /etc/conf.d - newins ${FILESDIR}/${PVR}/xfs.conf.d xfs - - # we want libGLU.so* in /usr/lib - mv ${D}/usr/X11R6/lib/libGLU.* ${D}/usr/lib - - # next section is to setup the dinamic libGL stuff - dodir /usr/lib/opengl/xfree/{lib,extensions,include} - mv ${D}/usr/X11R6/lib/libGL.so* ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/libGL.la ${D}/usr/lib/opengl/xfree/lib - # libGL.a cause problems with tuxracer, etc - mv ${D}/usr/X11R6/lib/libGL.a ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/libMesaGL.so ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/modules/extensions/libglx* \ - ${D}/usr/lib/opengl/xfree/extensions - mv ${D}/usr/X11R6/include/GL/{gl.h,glx.h,glxtokens.h} \ - ${D}/usr/lib/opengl/xfree/include -} - -pkg_preinst() { - # this changed from a directory/file to a symlink - if [ ! -L ${ROOT}/usr/X11R6/lib/X11/XftConfig ] && \ - [ -f ${ROOT}/usr/X11R6/lib/X11/XftConfig ] - then - rm -rf ${ROOT}/usr/X11R6/lib/X11/XftConfig - fi - if [ ! -L ${ROOT}/usr/X11R6/lib/X11/app-defaults ] && \ - [ -d ${ROOT}/usr/X11R6/lib/X11/app-defaults ] - then - mv f ${ROOT}/usr/X11R6/lib/X11/app-defaults ${ROOT}/etc/X11 - fi - - # clean the dinamic libGL stuff's home to ensure - # we dont have stale libs floating around - if [ -d ${ROOT}/usr/lib/opengl/xfree ] - then - rm -rf ${ROOT}/usr/lib/opengl/xfree/* - fi -} - -pkg_postinst() { - env-update - echo ">>> Making font dirs..." - find ${ROOT}/usr/X11R6/lib/X11/fonts/* -type d -maxdepth 1 \ - -exec ${ROOT}/usr/X11R6/bin/mkfontdir {} ';' - - #switch to the xfree implementation - if [ "${ROOT}" = "/" ] - then - /usr/sbin/opengl-update xfree - fi - - # add back directories that portage nukes on unmerge - if [ ! -d ${ROOT}/var/lib/xdm ] - then - mkdir -p ${ROOT}/var/lib/xdm - fi - touch ${ROOT}/var/lib/xdm/.keep -} - diff --git a/x11-base/xfree/xfree-4.2.0-r9.ebuild b/x11-base/xfree/xfree-4.2.0-r9.ebuild deleted file mode 100644 index ef64435e382b..000000000000 --- a/x11-base/xfree/xfree-4.2.0-r9.ebuild +++ /dev/null @@ -1,195 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.2.0-r9.ebuild,v 1.10 2002/08/14 12:00:14 murphy Exp $ - -MY_V="`echo ${PV} |sed -e 's:\.::g'`" -S=${WORKDIR}/xc -DESCRIPTION="Xfree86: famous and free X server" -SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/${PV}/source" -SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/${PV}/source" - -SRC_URI="$SRC_PATH0/X${MY_V}src-1.tgz - $SRC_PATH0/X${MY_V}src-2.tgz - $SRC_PATH0/X${MY_V}src-3.tgz - $SRC_PATH1/X${MY_V}src-1.tgz - $SRC_PATH1/X${MY_V}src-2.tgz - $SRC_PATH1/X${MY_V}src-3.tgz - ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-xlib-i18n-module.patch - ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-zlib-security.patch - ftp://ftp.xfree86.org/pub/XFree86/4.2.0/fixes/4.2.0-libGLU-bad-extern.patch - http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz" -# NOTE: 4.2.0-xlib-i18n-module.patch is ONLY for XFree86 4.2.0 - -HOMEPAGE="http://www.xfree.org" -LICENSE="X11" -SLOT="0" -KEYWORDS="x86 ppc sparc sparc64" - -DEPEND=">=sys-libs/ncurses-5.1 - >=sys-libs/zlib-1.1.3-r2 - sys-devel/flex - sys-devel/perl - 3dfx? ( >=media-libs/glide-v3-3.10 )" - -RDEPEND=">=sys-libs/ncurses-5.1" - -PROVIDE="virtual/x11 - virtual/opengl - virtual/glu" - -src_unpack () { - - unpack X${MY_V}src-{1,2,3}.tgz - - # resolve bug #794 - # NOTE: 4.2.0-xlib-i18n-module.patch is ONLY for XFree86 4.2.0 - # 4.2.0-zlib-security.patch is also ONLY for XFree86 4.2.0 - # 4.2.0-libGLU-bad-extern.patch same here .. fixes gcc-3.x compile - # errors - cd ${WORKDIR} - patch -p0 < ${DISTDIR}/${PV}-xlib-i18n-module.patch || die - patch -p0 < ${DISTDIR}/${PV}-zlib-security.patch || die - patch -p0 < ${DISTDIR}/${PV}-libGLU-bad-extern.patch || die - - cd ${S} - cp ${FILESDIR}/${PVR}/site.def config/cf/host.def - echo "#define DefaultGcc2i386Opt ${CFLAGS}" >> config/cf/host.def - echo "#define GccWarningOptions -Wno" >> config/cf/host.def - echo "#define DefaultCCOptions -ansi" >> config/cf/host.def - - # optimize Mesa for architecture - if [ -n "`use sse`" ] ; then - echo "#define MesaUseKatmai YES" >> config/cf/host.def - fi - if [ -n "`use 3dnow`" ] ; then - echo "#define MesaUse3DNow YES" >> config/cf/host.def - fi - - # build with glide3 support? (build the tdfx_dri.o module) - if [ -n "`use 3dfx`" ] - then - echo "#define HasGlide3 YES" >> config/cf/host.def - fi - - # fix build problem (XFree86 server among others, was not - # linked against libXau) - cp ${S}/programs/Xserver/Imakefile \ - ${S}/programs/Xserver/Imakefile.orig - sed -e '2i CCLINK = $(CC) -L../../lib/Xau -lXau' \ - ${S}/programs/Xserver/Imakefile.orig \ - > ${S}/programs/Xserver/Imakefile - - # Apply Xft quality patch from http://www.cs.mcgill.ca/~dchest/xfthack/ - cd ${S}/lib/Xft - cat ${FILESDIR}/${PVR}/xft-quality.diff | patch -p1 || die -} - -src_compile() { - - emake World || die - - if [ "`use nls`" ] - then - cd ${S}/nls - make || die - cd ${s} - fi -} - -src_install() { - - make install DESTDIR=${D} || die - make install.man DESTDIR=${D} || die - - if [ "`use nls`" ] - then - cd ${S}/nls - make DESTDIR=${D} install || die - cd ${S} - fi - - #we zap the host.def file which gets hard-coded with our CFLAGS, messing up other things that use xmkmf - echo > ${D}/usr/X11R6/lib/X11/config/host.def - #theoretically, /usr/X11R6/lib/X11/config is a possible candidate for config file management. - #If we find that people really worry about imake stuff, we may add it. But for now, we leave - #the dir unprotected. - - insinto /etc/X11 - doins ${FILESDIR}/${PVR}/XftConfig - dosym ../../../.././etc/X11/XftConfig /usr/X11R6/lib/X11/XftConfig - cd ${D}/usr/X11R6/lib/X11/fonts - tar -xz --no-same-owner -f ${DISTDIR}/truetype.tar.gz - dodir /usr/bin - dosym /usr/X11R6/bin /usr/bin/X11 - - dosym /usr/X11R6/lib/X11 /usr/lib/X11 - - dosym libGL.so.1.2 /usr/X11R6/lib/libGL.so - dosym libGL.so.1.2 /usr/X11R6/lib/libGL.so.1 - dosym libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so - dosym ../X11R6/lib/libGLU.so.1.3 /usr/lib/libMesaGLU.so - - # .la files for libtool support - insinto /usr/X11R6/lib - doins ${FILESDIR}/${PVR}/lib/*.la - - exeinto /etc/X11 - #new session management script - doexe ${FILESDIR}/${PVR}/chooser.sh - #new display manager script - doexe ${FILESDIR}/${PVR}/startDM.sh - exeinto /etc/X11/Sessions - doexe ${FILESDIR}/${PVR}/Sessions/* - insinto /etc/env.d - doins ${FILESDIR}/${PVR}/10xfree - insinto /etc/X11/xinit - doins ${FILESDIR}/${PVR}/xinitrc - exeinto /etc/X11/xdm - doexe ${FILESDIR}/${PVR}/Xsession ${FILESDIR}/${PVR}/Xsetup_0 - insinto /etc/X11/fs - newins ${FILESDIR}/${PVR}/xfs.config config - insinto /etc/pam.d - doins ${FILESDIR}/${PVR}/xdm - exeinto /etc/init.d - newexe ${FILESDIR}/${PVR}/xdm.start xdm - newexe ${FILESDIR}/${PVR}/xfs.start xfs - - #next section is to setup the dinamic libGL stuff - dosbin ${FILESDIR}/${PVR}/opengl-update - dodir /usr/lib/opengl/xfree/{lib,extensions,include} - mv ${D}/usr/X11R6/lib/libGL.so* ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/libGL.la ${D}/usr/lib/opengl/xfree/lib - # libGL.a cause problems with tuxracer, etc - mv ${D}/usr/X11R6/lib/libGL.a ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/libMesaGL.so ${D}/usr/lib/opengl/xfree/lib - mv ${D}/usr/X11R6/lib/modules/extensions/libglx* \ - ${D}/usr/lib/opengl/xfree/extensions - mv ${D}/usr/X11R6/include/GL/{gl.h,glx.h,glxtokens.h} \ - ${D}/usr/lib/opengl/xfree/include -} - -pkg_preinst() { - #this changed from a file to a symlink - rm -rf ${ROOT}/usr/X11R6/lib/X11/XftConfig - - #clean the dinamic libGL stuff's home to ensure - #we dont have stale libs floating around - if [ -d ${ROOT}/usr/lib/opengl/xfree ] - then - rm -rf ${ROOT}/usr/lib/opengl/xfree/* - fi -} - -pkg_postinst() { - env-update - echo ">>> Making font dirs..." - find ${ROOT}/usr/X11R6/lib/X11/fonts/* -type d -maxdepth 1 \ - -exec ${ROOT}/usr/X11R6/bin/mkfontdir {} ';' - - #switch to the xfree implementation - if [ "${ROOT}" = "/" ] - then - /usr/sbin/opengl-update xfree - fi -} - |