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/libuvc/libuvc-0.0.6-r1.ebuild

43 lines
782 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="A cross-platform library for USB video devices, built atop libusb"
HOMEPAGE="https://int80k.com/libuvc/"
SRC_URI="https://github.com/ktossell/libuvc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
SLOT="0"
IUSE=""
RDEPEND="
virtual/jpeg:0
virtual/libusb:1
virtual/udev
"
DEPEND="${RDEPEND}"
CMAKE_MIN_VERSION="2.8.0"
DOCS=( changelog.txt README.md )
src_prepare() {
sed -r -i \
-e 's/(\$\{CMAKE_INSTALL_PREFIX\}\/)lib/\1'"$(get_libdir)"'/' \
CMakeLists.txt || die
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TARGET=Shared
)
cmake-utils_src_configure
}