summaryrefslogtreecommitdiff
blob: f48f4d08ba4318d56ba74089592b73549b6a9e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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.5 2004/06/14 08:33:47 kloeri 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"
IUSE=""

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
}