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/opengtl/opengtl-0.9.17.ebuild

48 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/opengtl/opengtl-0.9.17.ebuild,v 1.2 2012/11/28 16:18:10 ago Exp $
EAPI=4
MY_P="OpenGTL-${PV}"
inherit cmake-utils
DESCRIPTION="Collection of libraries for graphics transformation algorithms"
HOMEPAGE="http://opengtl.org/"
SRC_URI="http://download.opengtl.org/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="debug test"
RDEPEND="
media-libs/libpng
=sys-devel/llvm-3.1*
"
DEPEND="${RDEPEND}
test? ( dev-util/lcov )
"
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}/${P}-ldflags.patch"
"${FILESDIR}/${P}-gcc-4.7.patch"
)
src_configure() {
local mycmakeargs=(
$(cmake-utils_use debug OPENGTL_ENABLE_DEBUG_OUTPUT)
$(cmake-utils_use test OPENGTL_BUILD_TESTS)
$(cmake-utils_use test OPENGTL_CODE_COVERAGE)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
newdoc OpenShiva/doc/reference/region.pdf OpenShiva.pdf
}