-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25992 from mmcauliffe/qt-multimedia
Add qt6-multimedia package
- Loading branch information
Showing
6 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo on | ||
|
||
mkdir build | ||
cd build | ||
|
||
cmake -LAH -G "Ninja" ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^ | ||
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ | ||
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS ^ | ||
-DQT_DEFAULT_MEDIA_BACKEND=ffmpeg ^ | ||
.. | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
cmake --build . --target install --config Release | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
:: unversioned exes must avoid clobbering the qt5 packages, but versioned dlls still need to be in PATH | ||
xcopy /y /s %LIBRARY_PREFIX%\lib\qt6\bin\*.dll %LIBRARY_PREFIX%\bin | ||
if %ERRORLEVEL% neq 0 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY" | ||
|
||
if test "$CONDA_BUILD_CROSS_COMPILATION" = "1" | ||
then | ||
CMAKE_ARGS="${CMAKE_ARGS} -DQT_HOST_PATH=${BUILD_PREFIX}" | ||
fi | ||
|
||
if [[ $(uname) == "Linux" ]]; then | ||
CMAKE_ARGS="${CMAKE_ARGS} -DFEATURE_vulkan=ON" | ||
fi | ||
|
||
mkdir build | ||
cd build | ||
|
||
cmake -LAH -G "Ninja" ${CMAKE_ARGS} \ | ||
-DCMAKE_PREFIX_PATH=${PREFIX} \ | ||
-DCMAKE_FIND_FRAMEWORK=LAST \ | ||
-DCMAKE_INSTALL_RPATH:STRING=${PREFIX}/lib \ | ||
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \ | ||
-DFEATURE_linux_v4l=OFF \ | ||
-DQT_DEFAULT_MEDIA_BACKEND=ffmpeg \ | ||
.. | ||
|
||
cmake --build . --target install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
os_version: | ||
linux_64: cos7 | ||
provider: | ||
linux_aarch64: default | ||
build_platform: | ||
linux_aarch64: linux_64 | ||
osx_arm64: osx_64 | ||
conda_build: | ||
pkg_format: '2' | ||
conda_forge_output_validation: true | ||
test: native_and_emulated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# https://doc.qt.io/qt-6/macos.html | ||
c_stdlib_version: # [osx] | ||
- '11.0' # [osx] | ||
MACOSX_SDK_VERSION: # [osx] | ||
- '12.3' # [osx] | ||
|
||
gstreamer: # [unix] | ||
- '1.24' # [unix] | ||
gst_plugins_base: # [unix] | ||
- '1.24' # [unix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{% set version = "6.7.1" %} | ||
|
||
package: | ||
name: qt6-multimedia | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://download.qt.io/official_releases/qt/{{ version.rpartition('.')[0] }}/{{ version }}/submodules/qtmultimedia-everywhere-src-{{ version }}.tar.xz | ||
sha256: 656d1543727f5bf1bd39fe2548ac454860109dc8555df77d7940f21e3d65cd3e | ||
|
||
build: | ||
number: 0 | ||
detect_binary_files_with_prefix: true | ||
run_exports: | ||
- {{ pin_subpackage('qt6-multimedia', max_pin='x.x') }} | ||
missing_dso_whitelist: # [win] | ||
- '$RPATH/api-ms-win-core-libraryloader-l1-2-0.dll' # [win] | ||
- '$RPATH/api-ms-win-ntuser-sysparams-l1-1-0.dll' # [win] | ||
- '$RPATH/api-ms-win-core-heap-l2-1-0.dll' # [win] | ||
- '$RPATH/api-ms-win-core-libraryloader-l1-2-1.dll' # [win] | ||
|
||
requirements: | ||
build: | ||
- make # [unix] | ||
- cmake | ||
- ninja | ||
- perl | ||
- ruby >=2.5 # [linux] | ||
- bison # [linux] | ||
- flex # [linux] | ||
- gperf # [linux] | ||
- {{ compiler('cxx') }} | ||
- {{ compiler('c') }} | ||
- {{ stdlib("c") }} | ||
- qt6-main {{ version }} # [build_platform != target_platform] | ||
- {{ cdt('mesa-libgl-devel') }} # [linux] | ||
- {{ cdt('mesa-libegl-devel') }} # [linux] | ||
- {{ cdt('mesa-dri-drivers') }} # [linux] | ||
- {{ cdt('libdrm-devel') }} # [linux] | ||
- {{ cdt('libglvnd-glx') }} # [linux] | ||
- {{ cdt('libglvnd-egl') }} # [linux] | ||
- {{ cdt('libglvnd-devel') }} # [linux] | ||
|
||
# native libs | ||
- ffmpeg # [build_platform != target_platform] | ||
- ffmpeg *=lgpl* # [build_platform != target_platform] | ||
{% if version == "6.7.1" %} | ||
# We will remove gstreamer support in favor of ffmpeg after 6.7.1 | ||
- gstreamer # [build_platform != target_platform and linux] | ||
- gst-plugins-base {{ gstreamer }} # [build_platform != target_platform and linux] | ||
{% endif %} | ||
- pulseaudio-client # [build_platform != target_platform and linux] | ||
|
||
- xorg-libx11 # [build_platform != target_platform and linux] | ||
- xorg-libxext # [build_platform != target_platform and linux] | ||
- xorg-libxdamage # [build_platform != target_platform and linux] | ||
- xorg-libxrandr # [build_platform != target_platform and linux] | ||
- xorg-libxcomposite # [build_platform != target_platform and linux] | ||
- xorg-libxxf86vm # [build_platform != target_platform and linux] | ||
- xorg-libxtst # [build_platform != target_platform and linux] | ||
- xorg-xf86vidmodeproto # [build_platform != target_platform and linux] | ||
host: | ||
- alsa-lib # [linux] | ||
- ffmpeg | ||
- ffmpeg *=lgpl* | ||
{% if version == "6.7.1" %} | ||
# We will remove gstreamer support in favor of ffmpeg after 6.7.1 | ||
# gstreamer plugin not supported on win32: https://bugreports.qt.io/browse/QTBUG-107073 | ||
- gstreamer # [unix] | ||
- gst-plugins-base {{ gstreamer }} # [unix] | ||
{% endif %} | ||
- libvulkan-headers # [not osx] | ||
- libvulkan-loader # [not osx] | ||
- pthread-stubs # [linux] | ||
- pulseaudio-client # [linux] | ||
- qt6-main {{ version }} | ||
- xorg-libx11 # [linux] | ||
- xorg-libxext # [linux] | ||
- xorg-libxdamage # [linux] | ||
- xorg-libxrandr # [linux] | ||
- xorg-libxcomposite # [linux] | ||
# https://github.com/conda-forge/staged-recipes/pull/22084 | ||
- xorg-libxxf86vm # [linux] | ||
- xorg-libxtst # [linux] | ||
- xorg-xf86vidmodeproto # [linux] | ||
run: | ||
- xorg-libx11 # [linux] | ||
- xorg-libxrandr # [linux] | ||
|
||
test: | ||
commands: | ||
{% set qt_libs = ["Multimedia", "SpatialAudio"] %} | ||
{% for each_qt_lib in qt_libs %} | ||
- test -d $PREFIX/include/qt6/Qt{{ each_qt_lib }} # [unix] | ||
- test -f $PREFIX/lib/libQt6{{ each_qt_lib }}${SHLIB_EXT} # [unix] | ||
- if not exist %PREFIX%\\Library\\include\\qt6\\Qt{{ each_qt_lib }} exit 1 # [win] | ||
- if not exist %PREFIX%\\Library\\lib\\Qt6{{ each_qt_lib }}.lib exit 1 # [win] | ||
- if not exist %PREFIX%\\Library\\bin\\Qt6{{ each_qt_lib }}.dll exit 1 # [win] | ||
{% endfor %} | ||
{% if version == "6.7.1" %} | ||
- test -f $PREFIX/lib/qt6/plugins/multimedia/libgstreamermediaplugin${SHLIB_EXT} # [unix] | ||
{% else %} | ||
- test ! -f $PREFIX/lib/qt6/plugins/multimedia/libgstreamermediaplugin${SHLIB_EXT} # [unix] | ||
{% endif %} | ||
- test -f $PREFIX/lib/qt6/plugins/multimedia/libffmpegmediaplugin${SHLIB_EXT} # [unix] | ||
- if not exist %PREFIX%\\Library\\lib\\qt6\\plugins\\multimedia\\ffmpegmediaplugin.dll exit 1 # [win] | ||
|
||
about: | ||
home: http://qt-project.org | ||
license: GPL-3.0-only | ||
license_file: LICENSES/GPL-3.0-only.txt | ||
summary: Qt is a cross-platform application and UI framework. | ||
description: | | ||
Qt helps you create connected devices, UIs & applications that run | ||
anywhere on any device, on any operating system at any time. | ||
doc_url: http://doc.qt.io/ | ||
dev_url: https://github.com/qt/qtmultimedia | ||
|
||
extra: | ||
recipe-maintainers: | ||
- mmcauliffe | ||
- conda-forge/qt-main | ||
feedstock-name: qt-multimedia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mesa-libGL | ||
mesa-libGL-devel | ||
mesa-libEGL-devel | ||
mesa-dri-drivers | ||
libX11-devel | ||
libglvnd-glx |