Skip to content

Commit 9a10dab

Browse files
committed
Update runtime to 5.15-25.08
Added patches for build Updated pyzmq to 23.2 to build on py 3.13 nvcodec is now in the runtime Signed-off-by: Hubert Figuière <hub@figuiere.net>
1 parent 4572eff commit 9a10dab

File tree

3 files changed

+38
-18
lines changed

3 files changed

+38
-18
lines changed

org.openshot.OpenShot.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
app-id: org.openshot.OpenShot
22
base: com.riverbankcomputing.PyQt.BaseApp
3-
base-version: '5.15-24.08'
3+
base-version: '5.15-25.08'
44
runtime: org.kde.Platform
5-
runtime-version: '5.15-24.08'
5+
runtime-version: '5.15-25.08'
66
sdk: org.kde.Sdk
77
command: openshot-qt
88
rename-icon: openshot-qt
@@ -43,6 +43,7 @@ modules:
4343
buildsystem: cmake-ninja
4444
builddir: true
4545
config-opts:
46+
- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
4647
- -DCMAKE_BUILD_TYPE=Release
4748
cleanup:
4849
- /bin
@@ -68,6 +69,7 @@ modules:
6869
buildsystem: cmake-ninja
6970
builddir: true
7071
config-opts:
72+
- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
7173
- -DCMAKE_BUILD_TYPE=Release
7274
- -DCPPZMQ_BUILD_TESTS=OFF
7375
sources:
@@ -79,12 +81,12 @@ modules:
7981
- name: pyzmq
8082
buildsystem: simple
8183
build-commands:
82-
- python3 setup.py install --prefix=/app --root=/
84+
- pip3 install --no-build-isolation --prefix=/app .
8385
sources:
8486
- type: git
8587
url: https://github.com/zeromq/pyzmq.git
86-
commit: 46af3b5f5fdfdfe4e3ea2a432081845c3c054609
87-
tag: v22.3.0
88+
commit: 015e616fbc50023e7c5c77db2ddd7bee2919c6c1
89+
tag: v23.2.1
8890

8991
- python3-requests.json
9092

@@ -113,7 +115,9 @@ modules:
113115
commands:
114116
- sed -i 's|/usr/local/share/fonts/|/run/host/fonts/|' usvg/src/fontdb.rs
115117
- type: patch
116-
path: patches/resvg-qt515.patch
118+
paths:
119+
- patches/resvg-qt515.patch
120+
- patches/resvg-rust-191.patch
117121

118122
- name: 'x264'
119123
config-opts:
@@ -124,18 +128,6 @@ modules:
124128
url: https://code.videolan.org/videolan/x264.git
125129
commit: cde9a93319bea766a92e306d69059c76de970190
126130

127-
- name: nv-codec-headers
128-
no-autogen: true
129-
make-install-args:
130-
- PREFIX=/app
131-
cleanup:
132-
- '*'
133-
sources:
134-
- type: git
135-
url: https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
136-
commit: a99740a84b49fd609e04b03279e66c5a8b767440
137-
tag: n10.0.26.1
138-
139131
- name: ffmpeg
140132
config-opts:
141133
- --enable-gpl
@@ -219,6 +211,8 @@ modules:
219211
project-id: 6615
220212
stable-only: true
221213
url-template: https://github.com/opencv/opencv_contrib/archive/$version.tar.gz
214+
- type: patch
215+
path: patches/opencv-cmake.patch
222216
- name: libopenshot
223217
buildsystem: cmake-ninja
224218
builddir: true

patches/opencv-cmake.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/cmake/OpenCVGenPkgconfig.cmake b/cmake/OpenCVGenPkgconfig.cmake
2+
index 43d6a87..7eba012 100644
3+
--- a/cmake/OpenCVGenPkgconfig.cmake
4+
+++ b/cmake/OpenCVGenPkgconfig.cmake
5+
@@ -94,7 +94,7 @@ file(GENERATE OUTPUT "${CMAKE_HELPER_SCRIPT}" CONTENT "${HELPER_SCRIPT}")
6+
add_custom_target(developer_scripts)
7+
add_custom_command(
8+
OUTPUT "${CMAKE_BINARY_DIR}/unix-install/${OPENCV_PC_FILE_NAME}"
9+
- COMMAND ${CMAKE_COMMAND} "-DCMAKE_HELPER_SCRIPT=${CMAKE_HELPER_SCRIPT}" -P "${OpenCV_SOURCE_DIR}/cmake/OpenCVGenPkgconfig.cmake"
10+
+ COMMAND ${CMAKE_COMMAND} "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" "-DCMAKE_HELPER_SCRIPT=${CMAKE_HELPER_SCRIPT}" -P "${OpenCV_SOURCE_DIR}/cmake/OpenCVGenPkgconfig.cmake"
11+
DEPENDS "${CMAKE_BINARY_DIR}/OpenCVGenPkgConfig.info.cmake"
12+
"${OpenCV_SOURCE_DIR}/cmake/OpenCVGenPkgconfig.cmake"
13+
COMMENT "Generate ${OPENCV_PC_FILE_NAME}"

patches/resvg-rust-191.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/backend_qt/mod.rs b/src/backend_qt/mod.rs
2+
index 4409a6f..4ba98a0 100644
3+
--- a/src/backend_qt/mod.rs
4+
+++ b/src/backend_qt/mod.rs
5+
@@ -16,7 +16,7 @@ macro_rules! try_create_image {
6+
qt::Image::new_rgba_premultiplied($size.width(), $size.height()),
7+
$ret,
8+
"Failed to create a {}x{} image.", $size.width(), $size.height()
9+
- );
10+
+ )
11+
};
12+
}
13+

0 commit comments

Comments
 (0)