1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00
Files
sunny-overlay/media-libs/ipu7-camera-hal/ipu7-camera-hal-0_p20250929.ebuild

49 lines
934 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
COMMIT_ID="feed9155372c0ba5543ca0c04052bdd71ed8b031"
DESCRIPTION="Intel IPU7 MIPI camera HAL"
HOMEPAGE="https://github.com/intel/ipu7-camera-hal"
SRC_URI="https://github.com/intel/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-libs/expat
dev-libs/jsoncpp
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
media-libs/ipu7-camera-bins
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
sed -i \
-e '/cmake_minimum_required/s#2\.8#3.5#1' \
CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_CAMHAL_ADAPTOR=ON
-DBUILD_CAMHAL_PLUGIN=ON
-DIPU_VERSIONS="ipu7x;ipu75xa"
-DUSE_STATIC_GRAPH=ON
-DUSE_STATIC_GRAPH_AUTOGEN=ON
)
cmake_src_configure
}