Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/multimedia/ccextractor/files/patch-src_rust_build.rs
27214 views
1
--- src/rust/build.rs.orig 2026-01-05 15:05:24 UTC
2
+++ src/rust/build.rs
3
@@ -69,6 +69,7 @@ fn main() {
4
"eia608_screen",
5
"uint8_t",
6
"word_list",
7
+ "iconv_t",
8
]);
9
10
#[cfg(feature = "hardsubx_ocr")]
11
@@ -115,7 +116,7 @@ fn main() {
12
}
13
14
// On Linux, try pkg-config to find FFmpeg include paths
15
- if cfg!(target_os = "linux") {
16
+ if cfg!(any(target_os = "linux", target_os = "freebsd")) {
17
if let Ok(lib) = pkg_config::Config::new().probe("libavcodec") {
18
for path in lib.include_paths {
19
builder = builder.clang_arg(format!("-I{}", path.display()));
20
21