# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-xlibs/emul-linux-x86-xlibs-1.1.ebuild,v 1.4 2004/04/15 00:13:18 kugelfang Exp $ DESCRIPTION="X11R6 libraries for emulation of 32bit x86 on amd64" SRC_URI="mirror://gentoo/distfiles/emul-linux-x86-xlibs-1.1.tar.bz2" HOMEPAGE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64" DEPEND="virtual/glibc" src_unpack () { unpack ${A} } src_install() { cd ${WORKDIR} mkdir -p ${D}/emul/linux/x86 mkdir -p ${D}/emul/linux/x86/usr/lib/opengl mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/X11/locale mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/dri mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/fonts mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/codeconv mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/extensions mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/drivers mkdir -p ${D}/emul/linux/x86/usr/X11R6/lib/modules/input mkdir -p ${D}/etc/env.d # ARGH, forgot to include env.d file, workaround till next version echo "LDPATH=/emul/linux/x86/usr/X11R6/lib:/emul/linux/x86/usr/lib/opengl/xorg-x11/lib" > ${D}/etc/env.d/75emul-linux-x86-xlibs #mv -v ${WORKDIR}/etc/env.d/75emul-linux-x86-xlibs ${D}/etc/env.d/ #rm -Rf ${WORKDIR}/etc # ARGH2, libxrx.so[.6] must be symlinks ! cd ${WORKDIR}/usr/X11R6/lib rm -f libxrx.so rm -f libxrx.so.6 ln -sf libxrx.so.6.3 libxrx.so ln -sf libxrx.so.6.3 libxrx.so.6 cp -Rpvf ${WORKDIR}/* ${D}/emul/linux/x86 }