blob: b83a4bffdc3c8eaf9692a8609cf346cf3239af60 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/Xaw3d/Xaw3d-1.5-r1.ebuild,v 1.38 2009/12/14 11:13:41 remi Exp $
# Ok, hopefully this will resolv the problem with the version of libXaw3d that
# gets created.
#
# The problem its seems, is that when X gets compiled, it determines (with the
# help of some very dark magic) what version libXaw.so it it should build (6.1 or
# 7.0). Now, when compiling Xaw3d, it checks which version of Xaw was built, and
# then builds the same version of Xaw3d.
#
# Since this ebuild use the Makefile's "install" function, it "should" not be a
# problem anymore.
#
# Azarah.
EAPI="2"
inherit eutils toolchain-funcs
DESCRIPTION="drop-in 3D replacement of the Xaw widget set which comes with X"
HOMEPAGE="http://freshmeat.net/projects/xaw3d/"
SRC_URI="ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-${PV/[a-z]}E.tar.gz
http://mirror.libre.fm/gnusource/18/${P}/Xaw3d-${PV/[a-z]}E.tar.gz
mirror://gentoo/xaw3d_${PV/[a-z]}+E-17.diff.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE=""
# There _might_ be something else, but I doubt it.
RDEPEND="x11-libs/libXt
x11-libs/libX11
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXp"
DEPEND="${RDEPEND}
>=sys-apps/sed-4
x11-misc/imake
x11-misc/gccmakedep"
S=${WORKDIR}/xc/lib/Xaw3d
src_prepare() {
cd "${WORKDIR}/xc"
epatch ${WORKDIR}/xaw3d_${PV/[a-z]}+E-17.diff
cd "${S}"
sed -e 's:\(XCOMM\).*\(EXTRA_INCLUDES\):\2:' -i Imakefile || die
}
src_compile() {
# convoluted process for out-of-tree building
mkdir ./X11
cd ./X11 ; ln -sf ../../Xaw3d . ; cd ..
xmkmf || die
make includes || die
make depend || die
emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" \
SHLIBGLOBALSFLAGS="${LDFLAGS}" || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc README.XAW3D
}
|