summaryrefslogtreecommitdiff
blob: 4009f9d433d51d9ebd6bbcf183426824e2943f49 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit flag-o-matic

DESCRIPTION="Glue between Coin3D and Qt"
HOMEPAGE="http://www.coin3d.org/"
SRC_URI="https://github.com/coin3d/soqt/archive/${P}.tar.gz"
S="${WORKDIR}/soqt-${P}"

LICENSE="|| ( GPL-2 PEL )"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="doc"

RDEPEND="
	dev-qt/qtgui:4[qt3support]
	dev-qt/qtopengl:4[qt3support]
	dev-qt/qt3support:4
	>=media-libs/coin-2.4.4
"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	doc? ( app-doc/doxygen )
"

PATCHES=( "${FILESDIR}/${P}-gcc44.patch" )

src_configure() {
	export PATH="/usr/bin/:${PATH}"
	export QTDIR="/usr"
	export CONFIG_QTLIBS="$(pkg-config --libs QtGui)"

	append-ldflags $(no-as-needed)

	econf \
		--with-coin \
		--disable-html-help\
		$(use_enable doc html) \
		htmldir=/usr/share/doc/${PF}/html
}

src_compile() {
	emake -j1
}

src_install() {
	emake DESTDIR="${D}" install
	dodoc AUTHORS ChangeLog NEWS README*
}