Merge pull request #297171 from wegank/tiscamera-bump

tiscamera: 1.0.0 -> 1.1.1

authored by Weijia Wang and committed by GitHub 444f009a 67b7cbee

+8 -131
-25
pkgs/os-specific/linux/tiscamera/0001-cmake-find-aravis-fix-pkg-cfg-include-dirs.patch
··· 1 - From 90b540bd135de2587352719b14c385b20aa572be Mon Sep 17 00:00:00 2001 2 - From: Raymond Gauthier <jraygauthier@gmail.com> 3 - Date: Wed, 15 Jun 2022 16:09:58 -0400 4 - Subject: [PATCH] cmake-find-aravis: fix pkg cfg include dirs 5 - 6 - --- 7 - cmake/modules/FindAravis.cmake | 2 +- 8 - 1 file changed, 1 insertion(+), 1 deletion(-) 9 - 10 - diff --git a/cmake/modules/FindAravis.cmake b/cmake/modules/FindAravis.cmake 11 - index 5dab5431..811302b9 100644 12 - --- a/cmake/modules/FindAravis.cmake 13 - +++ b/cmake/modules/FindAravis.cmake 14 - @@ -20,7 +20,7 @@ find_path(aravis_INCLUDE_DIR 15 - arv.h 16 - PATHS 17 - ${aravis_PKGCONF_INCLUDE_DIRS} 18 - - ${aravis0_6_PKGCONF_INCLUDE_DIRS} 19 - + ${aravis0_8_PKGCONF_INCLUDE_DIRS} 20 - /usr/local/include 21 - # /usr/local/include/aravis-0.4 22 - /usr/local/include/aravis-0.8 23 - -- 24 - 2.31.1 25 -
-70
pkgs/os-specific/linux/tiscamera/0001-tcamconvert-tcamsrc-add-missing-include-lib-dirs.patch
··· 1 - From 5e7146e176cb1b01b47d16a66763469dccd87f25 Mon Sep 17 00:00:00 2001 2 - From: Raymond Gauthier <jraygauthier@gmail.com> 3 - Date: Thu, 9 Jun 2022 19:45:30 -0400 4 - Subject: [PATCH] tcamconvert&tcamsrc: add missing include/lib dirs 5 - 6 - These were building libraries with dependencies on gstreamer-video 7 - and gstreamer-base but weren't adding the proper include and 8 - lib directories which resulted in build failure on systems 9 - where video and base aren't installed in the same location 10 - as gstreamer itself (e.g: nix, nixos). 11 - --- 12 - src/gstreamer-1.0/tcamconvert/CMakeLists.txt | 2 ++ 13 - src/gstreamer-1.0/tcamsrc/CMakeLists.txt | 11 +++++++++++ 14 - 2 files changed, 13 insertions(+) 15 - 16 - diff --git a/src/gstreamer-1.0/tcamconvert/CMakeLists.txt b/src/gstreamer-1.0/tcamconvert/CMakeLists.txt 17 - index 30563c38..066cb5d7 100644 18 - --- a/src/gstreamer-1.0/tcamconvert/CMakeLists.txt 19 - +++ b/src/gstreamer-1.0/tcamconvert/CMakeLists.txt 20 - @@ -28,6 +28,8 @@ add_library(tcamconvert SHARED 21 - target_include_directories(tcamconvert 22 - PRIVATE 23 - ${GSTREAMER_INCLUDE_DIRS} 24 - + ${GSTREAMER_BASE_INCLUDE_DIRS} 25 - + ${GSTREAMER_VIDEO_INCLUDE_DIRS} 26 - ) 27 - 28 - set_project_warnings(tcamconvert) 29 - diff --git a/src/gstreamer-1.0/tcamsrc/CMakeLists.txt b/src/gstreamer-1.0/tcamsrc/CMakeLists.txt 30 - index 3bc7ed97..ed5be37f 100644 31 - --- a/src/gstreamer-1.0/tcamsrc/CMakeLists.txt 32 - +++ b/src/gstreamer-1.0/tcamsrc/CMakeLists.txt 33 - @@ -21,12 +21,15 @@ add_library(gsttcamstatistics SHARED 34 - target_include_directories(gsttcamstatistics 35 - PRIVATE 36 - ${GSTREAMER_INCLUDE_DIRS} 37 - + ${GSTREAMER_BASE_INCLUDE_DIRS} 38 - + ${GSTREAMER_VIDEO_INCLUDE_DIRS} 39 - ) 40 - 41 - target_link_libraries( gsttcamstatistics 42 - PRIVATE 43 - ${GSTREAMER_LIBRARIES} 44 - ${GSTREAMER_BASE_LIBRARIES} 45 - + ${GSTREAMER_VIDEO_LIBRARIES} 46 - ) 47 - 48 - 49 - @@ -53,10 +56,18 @@ add_library(gsttcamsrc SHARED 50 - tcambind.cpp 51 - ) 52 - 53 - + target_include_directories(gsttcamsrc 54 - + PRIVATE 55 - + ${GSTREAMER_INCLUDE_DIRS} 56 - + ${GSTREAMER_BASE_INCLUDE_DIRS} 57 - + ${GSTREAMER_VIDEO_INCLUDE_DIRS} 58 - + ) 59 - + 60 - target_link_libraries( gsttcamsrc 61 - PRIVATE 62 - ${GSTREAMER_LIBRARIES} 63 - ${GSTREAMER_BASE_LIBRARIES} 64 - + ${GSTREAMER_VIDEO_LIBRARIES} 65 - 66 - tcamgstbase 67 - tcam::gst-helper 68 - -- 69 - 2.31.1 70 -
-25
pkgs/os-specific/linux/tiscamera/0001-udev-rules-fix-install-location.patch
··· 1 - From fdbc0b74812b9afd663226715375b5688e5408b5 Mon Sep 17 00:00:00 2001 2 - From: Raymond Gauthier <jraygauthier@gmail.com> 3 - Date: Thu, 9 Jun 2022 20:23:02 -0400 4 - Subject: [PATCH] udev/rules: fix install location 5 - 6 - --- 7 - CMakeInstall.cmake | 2 +- 8 - 1 file changed, 1 insertion(+), 1 deletion(-) 9 - 10 - diff --git a/CMakeInstall.cmake b/CMakeInstall.cmake 11 - index 4773091f..962c9b09 100644 12 - --- a/CMakeInstall.cmake 13 - +++ b/CMakeInstall.cmake 14 - @@ -92,7 +92,7 @@ else() 15 - 16 - else() 17 - 18 - - set(TCAM_INSTALL_UDEV "${CMAKE_INSTALL_PREFIX}/udev/rules.d" CACHE PATH "udev rules installation path" FORCE) 19 - + set(TCAM_INSTALL_UDEV "${CMAKE_INSTALL_PREFIX}/lib/udev/rules.d" CACHE PATH "udev rules installation path" FORCE) 20 - set(TCAM_INSTALL_SYSTEMD "${CMAKE_INSTALL_PREFIX}/lib/systemd/system/" CACHE PATH "systemd unit installation path" FORCE) 21 - 22 - set(TCAM_INSTALL_PKGCONFIG "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" CACHE PATH "pkgconfig installation path" FORCE) 23 - -- 24 - 2.31.1 25 -
+8 -11
pkgs/os-specific/linux/tiscamera/default.nix
··· 19 19 , gobject-introspection 20 20 , gst_all_1 21 21 , wrapGAppsHook 22 - , withDoc ? true 22 + # needs pkg_resources 23 + , withDoc ? false 23 24 , sphinx 24 25 , graphviz 25 26 , withAravis ? true ··· 32 33 33 34 stdenv.mkDerivation rec { 34 35 pname = "tiscamera"; 35 - version = "1.0.0"; 36 + version = "1.1.1"; 36 37 37 38 src = fetchFromGitHub { 38 39 owner = "TheImagingSource"; 39 - repo = pname; 40 - rev = "v-${pname}-${version}"; 41 - sha256 = "0msz33wvqrji11kszdswcvljqnjflmjpk0aqzmsv6i855y8xn6cd"; 40 + repo = "tiscamera"; 41 + rev = "v-tiscamera-${version}"; 42 + hash = "sha256-33U/8CbqNWIRwfDHXCZSN466WEQj9fip+Z5EJ7kIwRM="; 42 43 }; 43 - 44 - patches = [ 45 - ./0001-tcamconvert-tcamsrc-add-missing-include-lib-dirs.patch 46 - ./0001-udev-rules-fix-install-location.patch 47 - ./0001-cmake-find-aravis-fix-pkg-cfg-include-dirs.patch 48 - ]; 49 44 50 45 postPatch = '' 51 46 cp ${catch2}/include/catch2/catch.hpp external/catch/catch.hpp ··· 109 104 "-DTCAM_ARAVIS_USB_VISION=${if withAravis && withAravisUsbVision then "ON" else "OFF"}" 110 105 "-DTCAM_INSTALL_FORCE_PREFIX=ON" 111 106 ]; 107 + 108 + env.CXXFLAGS = "-include cstdint"; 112 109 113 110 doCheck = true; 114 111