diff --git a/recipes/gst-rtsp-server/bld.bat b/recipes/gst-rtsp-server/bld.bat new file mode 100644 index 0000000000000..2825c9e33599a --- /dev/null +++ b/recipes/gst-rtsp-server/bld.bat @@ -0,0 +1,27 @@ +@ECHO ON + +:: set pkg-config path so that host deps can be found +:: (set as env var so it's used by both meson and during build with g-ir-scanner) +set "PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig;%LIBRARY_PREFIX%\share\pkgconfig;%BUILD_PREFIX%\Library\lib\pkgconfig" + +:: get mixed path (forward slash) form of prefix so host prefix replacement works +set "LIBRARY_PREFIX_M=%LIBRARY_PREFIX:\=/%" + +%BUILD_PREFIX%\Scripts\meson.exe setup builddir ^ + --wrap-mode=nofallback ^ + --buildtype=release ^ + --prefix=%LIBRARY_PREFIX_M% ^ + --backend=ninja ^ + -Dexamples=disabled ^ + -Dintrospection=enabled ^ + -Dtests=disabled ^ + -Dc_link_args=intl.dll.lib +if errorlevel 1 exit 1 + +ninja -v -C builddir -j %CPU_COUNT% +if errorlevel 1 exit 1 + +ninja -C builddir install -j %CPU_COUNT% +if errorlevel 1 exit 1 + +del %LIBRARY_PREFIX%\bin\*.pdb diff --git a/recipes/gst-rtsp-server/build.sh b/recipes/gst-rtsp-server/build.sh new file mode 100644 index 0000000000000..de539dd1fb3f7 --- /dev/null +++ b/recipes/gst-rtsp-server/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -ex + +mkdir build +pushd build + +export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig:$BUILD_PREFIX/lib/pkgconfig +EXTRA_FLAGS="-Dintrospection=enabled" +if [[ $CONDA_BUILD_CROSS_COMPILATION == "1" ]]; then + # Use Meson cross-file flag to enable cross compilation + EXTRA_FLAGS="--cross-file $BUILD_PREFIX/meson_cross_file.txt -Dintrospection=disabled" +fi + +export PKG_CONFIG=$(which pkg-config) + +meson ${MESON_ARGS} \ + $EXTRA_FLAGS \ + --wrap-mode=nofallback \ + -Dexamples=disabled \ + -Dtests=disabled \ + .. +ninja -j${CPU_COUNT} +ninja install diff --git a/recipes/gst-rtsp-server/meta.yaml b/recipes/gst-rtsp-server/meta.yaml new file mode 100644 index 0000000000000..0dc860cc729d1 --- /dev/null +++ b/recipes/gst-rtsp-server/meta.yaml @@ -0,0 +1,65 @@ +{% set version = "1.26.8" %} + +package: + name: gst-rtsp-server + version: {{ version }} + +source: + - url: https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-{{ version }}.tar.xz + sha256: 5c0ab4822d8dc381f1449abefcfcde0ba6fdb4be58f84002522923965e3b1293 + +build: + number: 0 + ignore_run_exports_from: + - python # [build_platform != target_platform] + - python_abi # [build_platform != target_platform] + +requirements: + build: + - {{ compiler('c') }} + - {{ stdlib('c') }} + - {{ compiler('cxx') }} + - pkg-config + - meson + - ninja + - gettext-tools + - gobject-introspection + - cross-python_{{ target_platform }} # [build_platform != target_platform] + - python <{{ 3.15 }} + - setuptools <81 + host: + - gstreamer {{ version }} + - gst-plugins-base {{ version }} + - glib + - libintl-devel # [not linux] + - libiconv + - zlib + run: + - gstreamer {{ version }} + - gst-plugins-base {{ version }} + - libsoup # [not ppc64le] + - glib-networking # [not ppc64le] + +test: + commands: + - test -f $PREFIX/include/gstreamer-1.0/gst/rtsp-server/rtsp-server.h # [unix] + - test -f $PREFIX/lib/libgstrtspserver-1.0${SHLIB_EXT} # [unix] + - test -f $PREFIX/lib/gstreamer-1.0/libgstrtspclientsink${SHLIB_EXT} # [unix] + - if not exist %LIBRARY_PREFIX%\\include\\gstreamer-1.0\\gst\\rtsp-server\\rtsp-server.h exit 1 # [win] + - if not exist %LIBRARY_PREFIX%\\bin\\gstrtspserver-1.0-0.dll exit 1 # [win] + - if not exist %LIBRARY_PREFIX%\\lib\\gstreamer-1.0\\gstrtspclientsink.dll exit 1 # [win] + - gst-inspect-1.0 --plugin rtspclientsink # [win] +about: + home: http://gstreamer.freedesktop.org/ + summary: 'GStreamer RTSP Server' + description: | + GStreamer RTSP Server is a library on top of GStreamer for building an RTSP server. + doc_source_url: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/main/subprojects/gst-rtsp-server/docs + license: LGPL-2.1-or-later + license_family: LGPL + license_file: COPYING + doc_url: https://gstreamer.freedesktop.org/modules/gst-rtsp-server.html + dev_url: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/main/subprojects/gst-rtsp-server +extra: + recipe-maintainers: + - tjwilli58