diff --git a/multimedia/gstreamer1-plugins-rust/Makefile b/multimedia/gstreamer1-plugins-rust/Makefile index 87b15304b4f0..3e90e413e77b 100644 --- a/multimedia/gstreamer1-plugins-rust/Makefile +++ b/multimedia/gstreamer1-plugins-rust/Makefile @@ -1,471 +1,472 @@ PORTNAME= gstreamer1-plugins-rust DISTVERSION= 0.8.4 CATEGORIES= multimedia PATCH_SITES= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/ PATCHFILES+= 6da4192fe62c.patch:-p1 # https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/910 MAINTAINER= jbeich@FreeBSD.org COMMENT= Various GStreamer plugins written in Rust WWW= https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs LICENSE= LGPL21+ MIT LICENSE_COMB= multi LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSE-LGPLv2 BUILD_DEPENDS= cargo-cbuild:devel/cargo-c USES= cargo gnome gstreamer meson pkgconfig ssl USE_GITLAB= yes USE_GNOME= glib20 GL_SITE= https://gitlab.freedesktop.org GL_ACCOUNT= gstreamer GL_PROJECT= gst-plugins-rs GL_COMMIT= 18c9bd0355e0fc1ab20072d805807112945ad5bb MAKE_ENV= ${CARGO_ENV} CARGO_CRATES= adler-1.0.2 \ adler32-1.2.0 \ aes-0.6.0 \ aes-ctr-0.6.0 \ aes-soft-0.6.4 \ aesni-0.10.0 \ aho-corasick-0.7.18 \ ansi_term-0.12.1 \ anyhow-1.0.57 \ arbitrary-0.4.7 \ arg_enum_proc_macro-0.3.2 \ array-init-2.0.0 \ arrayvec-0.7.2 \ async-compression-0.3.12 \ async-task-4.2.0 \ async-trait-0.1.53 \ async-tungstenite-0.17.2 \ atomic_refcell-0.1.8 \ atty-0.2.14 \ autocfg-1.1.0 \ backoff-0.4.0 \ base-x-0.2.10 \ base32-0.4.0 \ base64-0.13.0 \ bincode-1.3.3 \ bindgen-0.59.2 \ bitflags-1.3.2 \ bitstream-io-1.3.0 \ block-buffer-0.9.0 \ block-buffer-0.10.2 \ build_const-0.2.2 \ bumpalo-3.9.1 \ byte-slice-cast-1.2.1 \ bytemuck-1.9.1 \ byteorder-1.4.3 \ bytes-1.1.0 \ cache-padded-1.2.0 \ cc-1.0.73 \ cdg-0.1.0 \ cdg_renderer-0.7.0 \ cexpr-0.6.0 \ cfg-expr-0.7.4 \ cfg-expr-0.10.2 \ cfg-if-0.1.10 \ cfg-if-1.0.0 \ chrono-0.4.19 \ cipher-0.2.5 \ clang-sys-1.3.1 \ clap-2.34.0 \ clap-3.1.12 \ clap_derive-3.1.7 \ clap_lex-0.1.1 \ claxon-0.4.3 \ color_quant-1.1.0 \ concurrent-queue-1.2.2 \ const_fn-0.4.9 \ cookie-0.15.1 \ cookie_store-0.15.1 \ core-foundation-0.9.3 \ core-foundation-sys-0.8.3 \ cpufeatures-0.2.2 \ crc-1.8.1 \ crc-3.0.0 \ crc-catalog-2.1.0 \ crc32fast-1.3.2 \ crossbeam-channel-0.5.4 \ crossbeam-deque-0.8.1 \ crossbeam-epoch-0.9.8 \ crossbeam-utils-0.8.8 \ crypto-common-0.1.3 \ crypto-mac-0.11.1 \ csound-0.1.8 \ csound-sys-0.1.2 \ ctor-0.1.22 \ ctr-0.6.0 \ dasp_frame-0.11.0 \ dasp_sample-0.11.0 \ dav1d-0.8.0 \ dav1d-sys-0.5.0 \ deflate-1.0.0 \ diff-0.1.12 \ digest-0.9.0 \ digest-0.10.3 \ dirs-next-2.0.0 \ dirs-sys-next-0.1.2 \ discard-1.0.4 \ ebur128-0.1.6 \ ed25519-1.4.1 \ either-1.6.1 \ encoding_rs-0.8.31 \ env_logger-0.8.4 \ env_logger-0.9.0 \ fastrand-1.7.0 \ field-offset-0.3.4 \ flate2-1.0.23 \ fnv-1.0.7 \ foreign-types-0.3.2 \ foreign-types-shared-0.1.1 \ form_urlencoded-1.0.1 \ fragile-1.2.0 \ fst-0.4.7 \ futures-0.3.21 \ futures-channel-0.3.21 \ futures-core-0.3.21 \ futures-executor-0.3.21 \ futures-io-0.3.21 \ futures-macro-0.3.21 \ futures-sink-0.3.21 \ futures-task-0.3.21 \ futures-util-0.3.21 \ generic-array-0.14.5 \ getopts-0.2.21 \ getrandom-0.2.6 \ gif-0.11.3 \ glob-0.3.0 \ h2-0.3.13 \ hashbrown-0.11.2 \ headers-0.3.7 \ headers-core-0.2.0 \ heck-0.3.3 \ heck-0.4.0 \ hermit-abi-0.1.19 \ hex-0.4.3 \ hmac-0.11.0 \ hostname-0.3.1 \ hrtf-0.8.0 \ http-0.2.6 \ http-body-0.4.4 \ httparse-1.7.0 \ httpdate-1.0.2 \ humantime-2.1.0 \ hyper-0.14.18 \ hyper-proxy-0.9.1 \ hyper-tls-0.5.0 \ hyphenation-0.8.4 \ hyphenation_commons-0.8.4 \ idna-0.2.3 \ if-addrs-0.6.7 \ if-addrs-sys-0.3.2 \ image-0.24.1 \ indexmap-1.8.1 \ instant-0.1.12 \ interpolate_name-0.2.3 \ ipnet-2.5.0 \ itertools-0.10.3 \ itoa-1.0.1 \ jobserver-0.1.24 \ js-sys-0.3.57 \ lazy_static-1.4.0 \ lazycell-1.3.0 \ lewton-0.10.2 \ libc-0.2.124 \ libfuzzer-sys-0.3.5 \ libloading-0.7.3 \ libm-0.2.2 \ libmdns-0.6.2 \ librespot-0.3.1 \ librespot-audio-0.3.1 \ librespot-connect-0.3.1 \ librespot-core-0.3.1 \ librespot-discovery-0.3.1 \ librespot-metadata-0.3.1 \ librespot-playback-0.3.1 \ librespot-protocol-0.3.1 \ libsodium-sys-0.2.7 \ libwebp-sys2-0.1.2 \ lock_api-0.4.7 \ log-0.4.16 \ m3u8-rs-4.0.0 \ match_cfg-0.1.0 \ matches-0.1.9 \ md-5-0.9.1 \ memchr-2.4.1 \ memoffset-0.6.5 \ mime-0.3.16 \ minimal-lexical-0.2.1 \ miniz_oxide-0.5.1 \ mio-0.8.2 \ miow-0.3.7 \ more-asserts-0.2.2 \ muldiv-1.0.0 \ multimap-0.8.3 \ nasm-rs-0.2.4 \ native-tls-0.2.10 \ nnnoiseless-0.4.0 \ nom-7.1.1 \ noop_proc_macro-0.3.0 \ ntapi-0.3.7 \ num-bigint-0.4.3 \ num-complex-0.4.0 \ num-derive-0.3.3 \ num-integer-0.1.44 \ num-iter-0.1.42 \ num-rational-0.4.0 \ num-traits-0.2.14 \ num_cpus-1.13.1 \ ogg-0.8.0 \ once_cell-1.10.0 \ opaque-debug-0.3.0 \ openssl-0.10.38 \ openssl-probe-0.1.5 \ openssl-sys-0.9.72 \ option-operations-0.4.0 \ os_str_bytes-6.0.0 \ output_vt100-0.1.3 \ parking_lot-0.12.0 \ parking_lot_core-0.9.2 \ paste-1.0.7 \ pbkdf2-0.8.0 \ peeking_take_while-0.1.2 \ percent-encoding-2.1.0 \ pest-2.1.3 \ pin-project-lite-0.2.8 \ pin-utils-0.1.0 \ pkg-config-0.3.25 \ png-0.17.5 \ pocket-resources-0.3.2 \ polling-2.2.0 \ ppv-lite86-0.2.16 \ pretty-hex-0.3.0 \ pretty_assertions-1.2.1 \ primal-check-0.3.1 \ priority-queue-1.2.1 \ proc-macro-crate-1.1.3 \ proc-macro-error-1.0.4 \ proc-macro-error-attr-1.0.4 \ proc-macro-hack-0.5.19 \ proc-macro2-1.0.37 \ protobuf-2.27.1 \ protobuf-codegen-2.27.1 \ protobuf-codegen-pure-2.27.1 \ psl-types-2.0.10 \ publicsuffix-2.1.1 \ quick-xml-0.22.0 \ quote-1.0.18 \ rand-0.8.5 \ rand_chacha-0.3.1 \ rand_core-0.6.3 \ rand_distr-0.4.3 \ rav1e-0.5.1 \ rayon-1.5.2 \ rayon-core-1.9.2 \ realfft-2.0.1 \ redox_syscall-0.2.13 \ redox_users-0.4.3 \ regex-1.5.5 \ regex-syntax-0.6.25 \ remove_dir_all-0.5.3 \ reqwest-0.11.10 \ rpassword-5.0.1 \ rubato-0.10.1 \ rusoto_core-0.48.0 \ rusoto_credential-0.48.0 \ rusoto_s3-0.48.0 \ rusoto_signature-0.48.0 \ rust_hawktracer-0.7.0 \ rust_hawktracer_normal_macro-0.4.1 \ rust_hawktracer_proc_macro-0.4.1 \ rustc-hash-1.1.0 \ rustc_version-0.2.3 \ rustc_version-0.3.3 \ rustc_version-0.4.0 \ rustfft-6.0.1 \ ryu-1.0.9 \ same-file-1.0.6 \ schannel-0.1.19 \ scopeguard-1.1.0 \ security-framework-2.6.1 \ security-framework-sys-2.6.1 \ semver-0.9.0 \ semver-0.11.0 \ semver-1.0.7 \ semver-parser-0.7.0 \ semver-parser-0.10.2 \ serde-1.0.136 \ serde_bytes-0.11.5 \ serde_derive-1.0.136 \ serde_json-1.0.79 \ serde_urlencoded-0.7.1 \ sha-1-0.9.8 \ sha-1-0.10.0 \ sha1-0.6.1 \ sha1_smol-1.0.0 \ sha2-0.9.9 \ shannon-0.2.0 \ shell-words-1.1.0 \ shlex-1.1.0 \ signal-hook-registry-1.4.0 \ signature-1.5.0 \ simd_helpers-0.1.0 \ slab-0.4.6 \ smallvec-1.8.0 \ smawk-0.3.1 \ socket2-0.4.4 \ sodiumoxide-0.2.7 \ standback-0.2.17 \ stdweb-0.4.20 \ stdweb-derive-0.5.3 \ stdweb-internal-macros-0.2.9 \ stdweb-internal-runtime-0.1.5 \ strength_reduce-0.2.3 \ strsim-0.8.0 \ strsim-0.10.0 \ structopt-0.3.26 \ structopt-derive-0.4.18 \ strum-0.21.0 \ strum_macros-0.21.1 \ subtle-2.4.1 \ syn-1.0.91 \ synstructure-0.12.6 \ system-deps-3.1.2 \ system-deps-6.0.2 \ tempfile-3.3.0 \ termcolor-1.1.3 \ textwrap-0.11.0 \ textwrap-0.15.0 \ thiserror-1.0.30 \ thiserror-impl-1.0.30 \ time-0.1.43 \ time-0.2.27 \ time-macros-0.1.1 \ time-macros-impl-0.1.2 \ tinyvec-1.6.0 \ tinyvec_macros-0.1.0 \ tokio-1.17.0 \ tokio-macros-1.7.0 \ tokio-native-tls-0.3.0 \ tokio-stream-0.1.8 \ tokio-util-0.6.9 \ tokio-util-0.7.1 \ toml-0.5.9 \ tower-service-0.3.1 \ tracing-0.1.34 \ tracing-attributes-0.1.20 \ tracing-core-0.1.26 \ transpose-0.2.1 \ try-lock-0.2.3 \ tungstenite-0.17.2 \ typenum-1.15.0 \ ucd-trie-0.1.3 \ unicode-bidi-0.3.7 \ unicode-linebreak-0.1.2 \ unicode-normalization-0.1.19 \ unicode-segmentation-1.9.0 \ unicode-width-0.1.9 \ unicode-xid-0.2.2 \ url-2.2.2 \ utf-8-0.7.6 \ uuid-0.8.2 \ uuid-1.0.0 \ v_frame-0.2.5 \ va_list-0.1.4 \ vcpkg-0.2.15 \ vec_map-0.8.2 \ vergen-3.2.0 \ version-compare-0.0.11 \ version-compare-0.1.0 \ version_check-0.9.4 \ waker-fn-1.1.0 \ walkdir-2.3.2 \ want-0.3.0 \ wasi-0.10.2+wasi-snapshot-preview1 \ wasi-0.11.0+wasi-snapshot-preview1 \ wasm-bindgen-0.2.80 \ wasm-bindgen-backend-0.2.80 \ wasm-bindgen-futures-0.4.30 \ wasm-bindgen-macro-0.2.80 \ wasm-bindgen-macro-support-0.2.80 \ wasm-bindgen-shared-0.2.80 \ web-sys-0.3.57 \ weezl-0.1.6 \ wepoll-ffi-0.1.2 \ which-4.2.5 \ winapi-0.3.9 \ winapi-i686-pc-windows-gnu-0.4.0 \ winapi-util-0.1.5 \ winapi-x86_64-pc-windows-gnu-0.4.0 \ windows-sys-0.34.0 \ windows_aarch64_msvc-0.34.0 \ windows_i686_gnu-0.34.0 \ windows_i686_msvc-0.34.0 \ windows_x86_64_gnu-0.34.0 \ windows_x86_64_msvc-0.34.0 \ winreg-0.10.1 \ xml-rs-0.8.4 \ zerocopy-0.3.0 \ zerocopy-derive-0.2.0 \ zeroize-1.5.4 \ cairo-rs,cairo-sys-rs,gdk-pixbuf,gdk-pixbuf-sys,gio,gio-sys,glib,glib-macros,glib-sys,gobject-sys,graphene-rs,graphene-sys,pango,pango-sys,pangocairo,pangocairo-sys@git+https://github.com/gtk-rs/gtk-rs-core?branch=0.15\#59eea5774c06bfd323e9298240f615ad2f7ced9e \ gstreamer,gstreamer-app,gstreamer-app-sys,gstreamer-audio,gstreamer-audio-sys,gstreamer-base,gstreamer-base-sys,gstreamer-check,gstreamer-check-sys,gstreamer-net,gstreamer-net-sys,gstreamer-rtp,gstreamer-rtp-sys,gstreamer-sys,gstreamer-video,gstreamer-video-sys@git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs?branch=0.18\#9ee22baa07d2c4e67742baeafb2be49e1db9befe \ gdk4,gdk4-sys,gsk4,gsk4-sys,gtk4,gtk4-macros,gtk4-sys@git+https://github.com/gtk-rs/gtk4-rs?branch=0.4\#36aa4108f8e221536e194f62d8ee3be8ea6191f0 \ ffv1@git+https://github.com/rust-av/ffv1.git?rev=2afb025a327173ce891954c052e804d0f880368a\#2afb025a327173ce891954c052e804d0f880368a \ flavors@git+https://github.com/rust-av/flavors\#c48542aef94b7da36d6f306f4016bee9c79e09ba \ atk,atk-sys,gdk,gdk-sys,gtk,gtk-sys,gtk3-macros@git+https://github.com/gtk-rs/gtk3-rs?branch=0.15\#51df5c22fbe02ec57c5052a3e5a91cc9671a0e83 CARGO_BUILD= no CARGO_INSTALL= no CARGO_TEST= no OPTIONS_DEFINE= CAIRO CSOUND DAV1D GTK4 PANGO SODIUM OPTIONS_DEFAULT=CAIRO CSOUND DAV1D GTK4 PANGO SODIUM OPTIONS_EXCLUDE_aarch64= CSOUND # https://github.com/neithanmo/csound-rs/commit/8962b89d7bda OPTIONS_EXCLUDE_armv7= CSOUND # https://github.com/neithanmo/csound-rs/commit/8962b89d7bda OPTIONS_EXCLUDE_powerpc64le= CSOUND OPTIONS_EXCLUDE_powerpc64= CSOUND OPTIONS_EXCLUDE_powerpc= CSOUND DAV1D OPTIONS_SUB= yes CAIRO_USE= GNOME=cairo CAIRO_MESON_ENABLED= videofx CSOUND_DESC= Audio filtering via Csound CSOUND_LIB_DEPENDS= libcsound64.so:audio/csound CSOUND_CONFIGURE_ENV= CSOUND_LIB_DIR="${LOCALBASE}/lib" CSOUND_MESON_ENABLED= csound DAV1D_DESC= AV1 video decoding via libdav1d DAV1D_BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} DAV1D_LIB_DEPENDS= libdav1d.so:multimedia/dav1d DAV1D_MESON_ENABLED= dav1d GTK4_DESC= ${GTK3_DESC:S/3/4/} GTK4_LIB_DEPENDS= libgraphene-1.0.so:graphics/graphene GTK4_USE= GNOME=gtk40 +GTK4_MESON_ENABLED= gtk4 PANGO_USE= GNOME=cairo,pango PANGO_MESON_ENABLED= closedcaption SODIUM_DESC= File encryption and decryption via libsodium SODIUM_LIB_DEPENDS= libsodium.so:security/libsodium SODIUM_MESON_ON= -Dsodium=system SODIUM_MESON_OFF= -Dsodium=disabled post-patch: @${REINPLACE_CMD} -e 's,"llvm-config,&${LLVM_DEFAULT},' \ ${WRKSRC}/cargo-crates/clang-sys-*/build/common.rs \ ${WRKSRC}/cargo-crates/clang-sys-*/src/support.rs # Make each cargo subcommand very verbose @${REINPLACE_CMD} -e "/'cargo'/s/]/, '--verbose', '--verbose'&/" \ ${WRKSRC}/cargo_wrapper.py post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gstreamer-1.0/*.so .include