summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Kobierski <fkobi@pm.me>2024-12-14 16:10:04 +0100
committerNowa Ammerlaan <nowa@gentoo.org>2024-12-19 16:07:08 +0100
commit5ff421be4922aa1f5a6fdc1c858b57a28761e28a (patch)
tree9bf3ee6e80cd381cad8dc852f7827fafefacbe31
parentmedia-libs/libvpl-tools: drop 1.1.0 (diff)
downloadgentoo-5ff421be4922aa1f5a6fdc1c858b57a28761e28a.tar.gz
gentoo-5ff421be4922aa1f5a6fdc1c858b57a28761e28a.tar.bz2
gentoo-5ff421be4922aa1f5a6fdc1c858b57a28761e28a.zip
media-libs/libvpl-tools: add 1.2.0-r1 that does not fortify source
Signed-off-by: Filip Kobierski <fkobi@pm.me> Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
-rw-r--r--media-libs/libvpl-tools/files/libvpl-tools-1.2.0_do-not-fortify-source.patch23
-rw-r--r--media-libs/libvpl-tools/libvpl-tools-1.2.0-r1.ebuild73
2 files changed, 96 insertions, 0 deletions
diff --git a/media-libs/libvpl-tools/files/libvpl-tools-1.2.0_do-not-fortify-source.patch b/media-libs/libvpl-tools/files/libvpl-tools-1.2.0_do-not-fortify-source.patch
new file mode 100644
index 000000000000..94fd05d1a7e8
--- /dev/null
+++ b/media-libs/libvpl-tools/files/libvpl-tools-1.2.0_do-not-fortify-source.patch
@@ -0,0 +1,23 @@
+From: Filip Kobierski <fkobi@pm.me>
+
+---
+ cmake/CompileOptions.cmake | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/cmake/CompileOptions.cmake b/cmake/CompileOptions.cmake
+index 02926c4..bba557d 100644
+--- a/cmake/CompileOptions.cmake
++++ b/cmake/CompileOptions.cmake
+@@ -51,9 +51,6 @@ else()
+ add_compile_options("-Werror=format-security")
+ if(NOT MINGW)
+ string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
+- if(NOT CMAKE_BUILD_TYPE MATCHES debug)
+- add_definitions("-D_FORTIFY_SOURCE=2")
+- endif()
+ endif()
+ if(NOT MINGW)
+ add_compile_options("-fstack-protector-strong")
+--
+2.45.2
+
diff --git a/media-libs/libvpl-tools/libvpl-tools-1.2.0-r1.ebuild b/media-libs/libvpl-tools/libvpl-tools-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..bb09032dafcc
--- /dev/null
+++ b/media-libs/libvpl-tools/libvpl-tools-1.2.0-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Intel Video Processing Library tools"
+HOMEPAGE="https://github.com/intel/libvpl-tools/"
+SRC_URI="https://github.com/intel/libvpl-tools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="dri +drm opencl test +vaapi wayland X"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ dri? ( X )
+ opencl? ( X )
+ vaapi? ( drm )
+ wayland? ( vaapi )
+ X? ( vaapi )
+"
+
+RDEPEND="
+ drm? ( x11-libs/libdrm[video_cards_intel] )
+ opencl? ( virtual/opencl )
+ vaapi? ( media-libs/libva[X?,wayland?,drm(+)?] )
+ wayland? (
+ dev-libs/wayland
+ )
+ X? (
+ x11-libs/libX11
+ x11-libs/libxcb
+ )
+ x11-libs/libpciaccess
+ >=media-libs/libvpl-2.11.0:=
+"
+
+DEPEND="${RDEPEND}
+ wayland? (
+ dev-libs/wayland-protocols
+ )
+"
+
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.2.0_do-not-fortify-source.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_TESTS="$(usex test)"
+
+ -DBUILD_EXPERIMENTAL="$(usex X)"
+ -DTOOLS_ENABLE_X11="$(usex X)"
+ -DTOOLS_ENABLE_SCREEN_CAPTURE="$(usex X)"
+ -DTOOLS_ENABLE_RENDER="$(usex X)"
+ -DTOOLS_ENABLE_OPENCL="$(usex opencl)"
+
+ -DENABLE_DRI3="$(usex dri)"
+ -DENABLE_DRM="$(usex drm)"
+ -DENABLE_VA="$(usex vaapi)"
+ -DENABLE_WAYLAND="$(usex wayland)"
+ -DENABLE_X11="$(usex X)"
+
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+ )
+ cmake_src_configure
+}