blob: 16cbfdc215091c847374b7c9c5f7abf130b211a9 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/marble/marble-0.4.ebuild,v 1.2 2007/10/30 13:52:46 cryos Exp $
inherit toolchain-funcs multilib
DESCRIPTION="Free 3D desk globe and world atlas"
HOMEPAGE="http://edu.kde.org/marble/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=x11-libs/qt-4.2.3"
DEPEND="${RDEPEND}
>=dev-util/cmake-2.4.5"
S=${WORKDIR}/${PN}
src_compile() {
# Determine the lib suffix
if [[ $(get_libdir) == 'lib64' ]]; then
local libsuffix='64'
else
local libsuffix=''
fi
# Only use Qt to build marble
cmake -DQTONLY=ON -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${libsuffix} \
-DCMAKE_C_COMPILER=$(type -p $(tc-getCC)) \
-DCMAKE_CXX_COMPILER=$(type -p $(tc-getCXX))
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
}
|