You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/quarter/quarter-1.0.0-r1.ebuild

61 lines
1.2 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/quarter/quarter-1.0.0-r1.ebuild,v 1.3 2010/09/06 01:11:38 reavertm Exp $
EAPI="2"
inherit base
MY_P="${P/q/Q}"
DESCRIPTION="A glue between Nokia Qt4 and Coin3D"
HOMEPAGE="http://www.coin3d.org/lib/quarter"
SRC_URI="ftp://ftp.coin3d.org/pub/coin/src/all/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="debug doc static-libs"
RDEPEND="
>=media-libs/coin-3.0.0[javascript]
x11-libs/qt-core:4
x11-libs/qt-gui:4
x11-libs/qt-opengl:4
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( app-doc/doxygen )
"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}/${P}-gcc44.patch"
)
DOCS=(AUTHORS NEWS README)
src_configure() {
# Bug 336008
MAKEOPTS=-j1
econf \
htmldir="${ROOT}usr/share/doc/${PF}/html" \
--enable-pkgconfig \
--enable-shared \
--with-coin \
$(use_enable debug) \
$(use_enable debug symbols) \
$(use_enable doc html) \
$(use_enable static-libs static)
}
src_install() {
base_src_install
# Do not install .la files
rm -f "${D}"/usr/lib*/qt4/plugins/designer/*.{la,a}
use static-libs || rm -f "${D}"/usr/lib*/*.la
}