media-plugins/obs-backgroundremoval - 1.1.13 (supertux88)

Search

Package Information

Description:
OBS plugin for removing background
Homepage:
https://github.com/occ-ai/obs-backgroundremoval
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
1.1.13 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

ONNXRUNTIME_VERSION=1.17.1

DESCRIPTION="OBS plugin for removing background"
HOMEPAGE="https://github.com/occ-ai/obs-backgroundremoval"
SRC_URI="
	https://github.com/occ-ai/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/microsoft/onnxruntime/releases/download/v${ONNXRUNTIME_VERSION}/onnxruntime-linux-x64-gpu-${ONNXRUNTIME_VERSION}.tgz
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	dev-qt/qtbase:6[widgets]
	>=media-video/obs-studio-29
	>=media-libs/opencv-4.7.0:=
"
RDEPEND="${DEPEND}"
BDEPEND="app-admin/chrpath"

QA_PRESTRIPPED="/usr/lib64/obs-plugins/obs-backgroundremoval/libonnxruntime.so.${ONNXRUNTIME_VERSION} /usr/lib64/obs-plugins/obs-backgroundremoval/libonnxruntime_providers_shared.so"

PATCHES=(
	"${FILESDIR}"/fetch-onnxruntime-from-path.patch
	"${FILESDIR}"/remove-update-check.patch
	"${FILESDIR}"/remove-tensorflow-support.patch
)

src_configure() {
	mycmakeargs=(
		--preset linux-x86_64
		-B "${BUILD_DIR}"
		-DUSE_SYSTEM_OPENCV=ON
		-DDISABLE_ONNXRUNTIME_GPU=ON
	)
	cmake_src_configure
}

src_compile() {
	chrpath -d "${WORKDIR}/onnxruntime-linux-x64-gpu-${ONNXRUNTIME_VERSION}/lib/libonnxruntime.so.${ONNXRUNTIME_VERSION}"

	cmake_src_compile
}

Dependencies

DEPEND

	dev-qt/qtbase:6[widgets]
	>=media-video/obs-studio-29
	>=media-libs/opencv-4.7.0:=

RDEPEND

	dev-qt/qtbase:6[widgets]
	>=media-video/obs-studio-29
	>=media-libs/opencv-4.7.0:=

BDEPEND

app-admin/chrpath

Manifest for 1.1.13

Type File Size Source URLs
DIST obs-backgroundremoval-1.1.13.tar.gz 56994747 bytes https://github.com/occ-ai/obs-backgroundremoval/archive/1.1.13.tar.gz
DIST onnxruntime-linux-x64-gpu-1.17.1.tgz 170787228 bytes https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz