aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ccextractor/files
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ccextractor/files')
-rw-r--r--multimedia/ccextractor/files/patch-linux_Makefile.am238
-rw-r--r--multimedia/ccextractor/files/patch-linux_configure.ac20
-rw-r--r--multimedia/ccextractor/files/patch-src_GUI_file__browser.c26
-rw-r--r--multimedia/ccextractor/files/patch-src_GUI_save__load__data.c8
-rw-r--r--multimedia/ccextractor/files/patch-src_lib__ccx_configuration.c11
-rw-r--r--multimedia/ccextractor/files/patch-src_lib__ccx_params.c27
6 files changed, 330 insertions, 0 deletions
diff --git a/multimedia/ccextractor/files/patch-linux_Makefile.am b/multimedia/ccextractor/files/patch-linux_Makefile.am
new file mode 100644
index 000000000000..4cb504238ec6
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-linux_Makefile.am
@@ -0,0 +1,238 @@
+--- linux/Makefile.am.orig 2021-12-15 17:05:37 UTC
++++ linux/Makefile.am
+@@ -5,110 +5,6 @@ ccextractor_SOURCES = \
+ ccextractor_SOURCES = \
+ ../src/ccextractor.c \
+ ../src/ccextractor.h \
+- ../src/thirdparty/gpacmp4/avc_ext.c \
+- ../src/thirdparty/gpacmp4/avilib.c \
+- ../src/thirdparty/gpacmp4/av_parsers.c \
+- ../src/thirdparty/gpacmp4/base_encoding.c \
+- ../src/thirdparty/gpacmp4/bitstream.c \
+- ../src/thirdparty/gpacmp4/box_code_3gpp.c \
+- ../src/thirdparty/gpacmp4/box_code_adobe.c \
+- ../src/thirdparty/gpacmp4/box_code_apple.c \
+- ../src/thirdparty/gpacmp4/box_code_base.c \
+- ../src/thirdparty/gpacmp4/box_code_drm.c \
+- ../src/thirdparty/gpacmp4/box_dump.c \
+- ../src/thirdparty/gpacmp4/box_code_meta.c \
+- ../src/thirdparty/gpacmp4/box_funcs.c \
+- ../src/thirdparty/gpacmp4/color.c \
+- ../src/thirdparty/gpacmp4/configfile.c \
+- ../src/thirdparty/gpacmp4/data_map.c \
+- ../src/thirdparty/gpacmp4/desc_private.c \
+- ../src/thirdparty/gpacmp4/descriptors.c \
+- ../src/thirdparty/gpacmp4/drm_sample.c \
+- ../src/thirdparty/gpacmp4/error.c \
+- ../src/thirdparty/gpacmp4/gpac_ogg.c \
+- ../src/thirdparty/gpacmp4/hint_track.c \
+- ../src/thirdparty/gpacmp4/hinting.c \
+- ../src/thirdparty/gpacmp4/ipmpx_code.c \
+- ../src/thirdparty/gpacmp4/ipmpx_parse.c \
+- ../src/thirdparty/gpacmp4/isom_intern.c \
+- ../src/thirdparty/gpacmp4/isom_read.c \
+- ../src/thirdparty/gpacmp4/isom_store.c \
+- ../src/thirdparty/gpacmp4/isom_write.c \
+- ../src/thirdparty/gpacmp4/list.c \
+- ../src/thirdparty/gpacmp4/math.c \
+- ../src/thirdparty/gpacmp4/media.c \
+- ../src/thirdparty/gpacmp4/media_odf.c \
+- ../src/thirdparty/gpacmp4/meta.c \
+- ../src/thirdparty/gpacmp4/movie_fragments.c \
+- ../src/thirdparty/gpacmp4/odf_code.c \
+- ../src/thirdparty/gpacmp4/odf_codec.c \
+- ../src/thirdparty/gpacmp4/odf_command.c \
+- ../src/thirdparty/gpacmp4/os_config_init.c \
+- ../src/thirdparty/gpacmp4/os_divers.c \
+- ../src/thirdparty/gpacmp4/os_file.c \
+- ../src/thirdparty/gpacmp4/qos.c \
+- ../src/thirdparty/gpacmp4/sample_descs.c \
+- ../src/thirdparty/gpacmp4/slc.c \
+- ../src/thirdparty/gpacmp4/stbl_read.c \
+- ../src/thirdparty/gpacmp4/stbl_write.c \
+- ../src/thirdparty/gpacmp4/track.c \
+- ../src/thirdparty/gpacmp4/tx3g.c \
+- ../src/thirdparty/gpacmp4/url.c \
+- ../src/thirdparty/gpacmp4/utf.c \
+- ../src/thirdparty/gpacmp4/os_thread.c \
+- ../src/thirdparty/gpacmp4/module.c \
+- ../src/thirdparty/gpacmp4/os_module.c \
+- ../src/thirdparty/gpacmp4/xml_parser.c \
+- ../src/thirdparty/gpacmp4/constants.c \
+- ../src/thirdparty/gpacmp4/gpac/avparse.h \
+- ../src/thirdparty/gpacmp4/gpac/base_coding.h \
+- ../src/thirdparty/gpacmp4/gpac/bitstream.h \
+- ../src/thirdparty/gpacmp4/gpac/color.h \
+- ../src/thirdparty/gpacmp4/gpac/config_file.h \
+- ../src/thirdparty/gpacmp4/gpac/configuration.h \
+- ../src/thirdparty/gpacmp4/gpac/constants.h \
+- ../src/thirdparty/gpacmp4/gpac/events_constants.h \
+- ../src/thirdparty/gpacmp4/gpac/ietf.h \
+- ../src/thirdparty/gpacmp4/gpac/isomedia.h \
+- ../src/thirdparty/gpacmp4/gpac/list.h \
+- ../src/thirdparty/gpacmp4/gpac/maths.h \
+- ../src/thirdparty/gpacmp4/gpac/media_tools.h \
+- ../src/thirdparty/gpacmp4/gpac/mpeg4_odf.h \
+- ../src/thirdparty/gpacmp4/gpac/network.h \
+- ../src/thirdparty/gpacmp4/gpac/revision.h \
+- ../src/thirdparty/gpacmp4/gpac/setup.h \
+- ../src/thirdparty/gpacmp4/gpac/tools.h \
+- ../src/thirdparty/gpacmp4/gpac/utf.h \
+- ../src/thirdparty/gpacmp4/gpac/version.h \
+- ../src/thirdparty/gpacmp4/gpac/iso639.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/avilib.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/isomedia_dev.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/media_dev.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/odf_dev.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/odf_parse_common.h \
+- ../src/thirdparty/gpacmp4/gpac/internal/ogg.h \
+- ../src/thirdparty/libpng/pngstruct.h \
+- ../src/thirdparty/libpng/pngpriv.h \
+- ../src/thirdparty/libpng/pnginfo.h \
+- ../src/thirdparty/libpng/pnglibconf.h \
+- ../src/thirdparty/libpng/pngconf.h \
+- ../src/thirdparty/libpng/pngdebug.h \
+- ../src/thirdparty/libpng/png.h \
+- ../src/thirdparty/libpng/png.c \
+- ../src/thirdparty/libpng/pngerror.c \
+- ../src/thirdparty/libpng/pngget.c \
+- ../src/thirdparty/libpng/pngmem.c \
+- ../src/thirdparty/libpng/pngpread.c \
+- ../src/thirdparty/libpng/pngread.c \
+- ../src/thirdparty/libpng/pngrio.c \
+- ../src/thirdparty/libpng/pngrtran.c \
+- ../src/thirdparty/libpng/pngrutil.c \
+- ../src/thirdparty/libpng/pngset.c \
+- ../src/thirdparty/libpng/pngtrans.c \
+- ../src/thirdparty/libpng/pngwio.c \
+- ../src/thirdparty/libpng/pngwrite.c \
+- ../src/thirdparty/libpng/pngwtran.c \
+- ../src/thirdparty/libpng/pngwutil.c \
+ ../src/lib_ccx/ccx_common_common.h \
+ ../src/lib_ccx/ccx_common_option.h \
+ ../src/lib_ccx/utility.h \
+@@ -230,38 +126,6 @@ ccextractor_SOURCES = \
+ ../src/lib_ccx/ts_tables_epg.c \
+ ../src/lib_ccx/wtv_constants.h \
+ ../src/lib_ccx/wtv_functions.c \
+- ../src/thirdparty/zlib/adler32.c \
+- ../src/thirdparty/zlib/compress.c \
+- ../src/thirdparty/zlib/crc32.c \
+- ../src/thirdparty/zlib/crc32.h \
+- ../src/thirdparty/zlib/deflate.c \
+- ../src/thirdparty/zlib/deflate.h \
+- ../src/thirdparty/zlib/gzclose.c \
+- ../src/thirdparty/zlib/gzguts.h \
+- ../src/thirdparty/zlib/gzlib.c \
+- ../src/thirdparty/zlib/gzread.c \
+- ../src/thirdparty/zlib/gzwrite.c \
+- ../src/thirdparty/zlib/infback.c \
+- ../src/thirdparty/zlib/inffast.c \
+- ../src/thirdparty/zlib/inffast.h \
+- ../src/thirdparty/zlib/inffixed.h \
+- ../src/thirdparty/zlib/inflate.c \
+- ../src/thirdparty/zlib/inflate.h \
+- ../src/thirdparty/zlib/inftrees.c \
+- ../src/thirdparty/zlib/inftrees.h \
+- ../src/thirdparty/zlib/trees.c \
+- ../src/thirdparty/zlib/trees.h \
+- ../src/thirdparty/zlib/uncompr.c \
+- ../src/thirdparty/zlib/zconf.h \
+- ../src/thirdparty/zlib/zlib.h \
+- ../src/thirdparty/zlib/zutil.c \
+- ../src/thirdparty/zlib/zutil.h \
+- ../src/thirdparty/utf8proc/utf8proc.c \
+- ../src/thirdparty/utf8proc/utf8proc.h \
+- ../src/thirdparty/lib_hash/sha2.c \
+- ../src/thirdparty/lib_hash/sha2.h \
+- ../src/thirdparty/protobuf-c/protobuf-c.c \
+- ../src/thirdparty/protobuf-c/protobuf-c.h \
+ ../src/lib_ccx/zvbi/bcd.h \
+ ../src/lib_ccx/zvbi/bit_slicer.c \
+ ../src/lib_ccx/zvbi/bit_slicer.h \
+@@ -274,61 +138,13 @@ ccextractor_SOURCES = \
+ ../src/lib_ccx/zvbi/sampling_par.h \
+ ../src/lib_ccx/zvbi/sliced.h \
+ ../src/lib_ccx/zvbi/zvbi_decoder.h \
+- ../src/freetype/* \
+- ../src/thirdparty/freetype/autofit/autofit.c \
+- ../src/thirdparty/freetype/base/ftbase.c \
+- ../src/thirdparty/freetype/base/ftbbox.c \
+- ../src/thirdparty/freetype/base/ftbdf.c \
+- ../src/thirdparty/freetype/base/ftbitmap.c \
+- ../src/thirdparty/freetype/base/ftcid.c \
+- ../src/thirdparty/freetype/base/ftfntfmt.c \
+- ../src/thirdparty/freetype/base/ftfstype.c \
+- ../src/thirdparty/freetype/base/ftgasp.c \
+- ../src/thirdparty/freetype/base/ftglyph.c \
+- ../src/thirdparty/freetype/base/ftgxval.c \
+- ../src/thirdparty/freetype/base/ftinit.c \
+- ../src/thirdparty/freetype/base/ftlcdfil.c \
+- ../src/thirdparty/freetype/base/ftmm.c \
+- ../src/thirdparty/freetype/base/ftotval.c \
+- ../src/thirdparty/freetype/base/ftpatent.c \
+- ../src/thirdparty/freetype/base/ftpfr.c \
+- ../src/thirdparty/freetype/base/ftstroke.c \
+- ../src/thirdparty/freetype/base/ftsynth.c \
+- ../src/thirdparty/freetype/base/ftsystem.c \
+- ../src/thirdparty/freetype/base/fttype1.c \
+- ../src/thirdparty/freetype/base/ftwinfnt.c \
+- ../src/thirdparty/freetype/bdf/bdf.c \
+- ../src/thirdparty/freetype/bzip2/ftbzip2.c \
+- ../src/thirdparty/freetype/cache/ftcache.c \
+- ../src/thirdparty/freetype/cff/cff.c \
+- ../src/thirdparty/freetype/cid/type1cid.c \
+- ../src/thirdparty/freetype/gzip/ftgzip.c \
+- ../src/thirdparty/freetype/include/ft2build.h \
+- ../src/thirdparty/freetype/lzw/ftlzw.c \
+- ../src/thirdparty/freetype/pcf/pcf.c \
+- ../src/thirdparty/freetype/pfr/pfr.c \
+- ../src/thirdparty/freetype/psaux/psaux.c \
+- ../src/thirdparty/freetype/pshinter/pshinter.c \
+- ../src/thirdparty/freetype/psnames/psnames.c \
+- ../src/thirdparty/freetype/raster/raster.c \
+- ../src/thirdparty/freetype/sfnt/sfnt.c \
+- ../src/thirdparty/freetype/smooth/smooth.c \
+- ../src/thirdparty/freetype/truetype/truetype.c \
+- ../src/thirdparty/freetype/type1/type1.c \
+- ../src/thirdparty/freetype/type42/type42.c \
+- ../src/thirdparty/freetype/winfonts/winfnt.c
++ ../src/freetype/*
+
+-if SYS_IS_APPLE_SILICON
+-ccextractor_SOURCES += ../src/thirdparty/libpng/arm/arm_init.c \
+- ../src/thirdparty/libpng/arm/filter_neon_intrinsics.c \
+- ../src/thirdparty/libpng/arm/palette_neon_intrinsics.c
+-endif
++ccextractor_CFLAGS = -std=gnu99 -Wno-write-strings -Wno-pointer-sign -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_REMOTERY -DNO_GZIP
+
+-ccextractor_CFLAGS = -std=gnu99 -Wno-write-strings -Wno-pointer-sign -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DFT2_BUILD_LIBRARY -DGPAC_DISABLE_VTT -DGPAC_DISABLE_OD_DUMP -DGPAC_DISABLE_REMOTERY -DNO_GZIP -DGPAC_HAVE_CONFIG_H
++ccextractor_CPPFLAGS =-I../src/lib_ccx/ -I../src/lib_ccx/zvbi/ -I../src/
+
+-ccextractor_CPPFLAGS =-I../src/lib_ccx/ -I../src/thirdparty/gpacmp4/ -I../src/thirdparty/libpng/ -I../src/thirdparty/zlib/ -I../src/lib_ccx/zvbi/ -I../src/thirdparty/lib_hash/ -I../src/thirdparty/protobuf-c/ -I../src/thirdparty -I../src/ -I../src/thirdparty/freetype/include/
+
+-
+ ccextractor_LDADD=-lm -lpthread -ldl
+
+ if WITH_RUST
+@@ -434,20 +250,10 @@ ccextractorGUI_LDADD = ${glfw3_LIBS}
+ ccextractorGUI_LDADD = ${glfw3_LIBS}
+
+
+-if SYS_IS_LINUX
+ ccextractorGUI_CFLAGS += -s -O3 -DUNIX
+ ccextractorGUI_CFLAGS += ${glew_CFLAGS}
+ ccextractorGUI_LDADD += ${glew_LIBS}
+ ccextractorGUI_LDADD += -lX11 -lXinerama -lXcursor -lXi -lXrandr -lXxf86vm -lm -ldl -lpthread
+-endif
+-
+-if SYS_IS_MAC
+-ccextractorGUI_CFLAGS += -O3 -DUNIX
+-ccextractorGUI_CFLAGS += ${glew_CFLAGS}
+-ccextractorGUI_LDADD += ${glew_LIBS}
+-ccextractorGUI_LDFLAGS = -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
+-ccextractorGUI_LDADD += -lglfw -lm -L/usr/local/lib -lpthread
+-endif
+
+ if HARDSUBX_IS_ENABLED
+ if OCR_IS_ENABLED
diff --git a/multimedia/ccextractor/files/patch-linux_configure.ac b/multimedia/ccextractor/files/patch-linux_configure.ac
new file mode 100644
index 000000000000..0fcb05792805
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-linux_configure.ac
@@ -0,0 +1,20 @@
+--- linux/configure.ac.orig 2021-12-15 17:05:37 UTC
++++ linux/configure.ac
+@@ -25,7 +25,7 @@ AC_CHECK_LIB([m], [sin], [], [AC_MSG_ERROR(Math librar
+
+ # Checks for libraries.
+ AC_CHECK_LIB([m], [sin], [], [AC_MSG_ERROR(Math library not installed. Install it before proceeding.)])
+-AC_CHECK_LIB([lept], [getLeptonicaVersion], [HAS_LEPT=1 && PKG_CHECK_MODULES([lept], [lept])], [HAS_LEPT=0])
++AC_CHECK_LIB([leptonica], [getLeptonicaVersion], [HAS_LEPT=1 && PKG_CHECK_MODULES([lept], [lept])], [HAS_LEPT=0])
+ AC_CHECK_LIB([tesseract], [TessVersion], [HAS_TESSERACT=1 && PKG_CHECK_MODULES([tesseract], [tesseract])], [HAS_TESSERACT=0])
+ AC_CHECK_LIB([avcodec], [avcodec_version], [HAS_AVCODEC=1 && PKG_CHECK_MODULES([libavcodec], [libavcodec])], [HAS_AVCODEC=0])
+ AC_CHECK_LIB([avformat], [avformat_version], [HAS_AVFORMAT=1 && PKG_CHECK_MODULES([libavformat], [libavformat])], [HAS_AVFORMAT=0])
+@@ -154,7 +154,7 @@ AM_CONDITIONAL(FFMPEG_IS_ENABLED, [ test x$ffmpeg = xt
+ AM_CONDITIONAL(HARDSUBX_IS_ENABLED, [ test x$hardsubx = xtrue ])
+ AM_CONDITIONAL(OCR_IS_ENABLED, [ test x$ocr = xtrue || test x$hardsubx = xtrue ])
+ AM_CONDITIONAL(FFMPEG_IS_ENABLED, [ test x$ffmpeg = xtrue ])
+-AM_CONDITIONAL(TESSERACT_PRESENT, [ test ! -z `pkg-config --libs-only-l --silence-errors tesseract` ])
++AM_CONDITIONAL(TESSERACT_PRESENT, [ test ! -z "`pkg-config --libs-only-l --silence-errors tesseract`" ])
+ AM_CONDITIONAL(TESSERACT_PRESENT_RPI, [ test -d "/usr/include/tesseract" && test `ls -A /usr/include/tesseract | wc -l` -gt 0 ])
+ AM_CONDITIONAL(SYS_IS_LINUX, [ test `uname -s` = "Linux"])
+ AM_CONDITIONAL(SYS_IS_MAC, [ test `uname -s` = "Darwin"])
diff --git a/multimedia/ccextractor/files/patch-src_GUI_file__browser.c b/multimedia/ccextractor/files/patch-src_GUI_file__browser.c
new file mode 100644
index 000000000000..e05caf87e0fa
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-src_GUI_file__browser.c
@@ -0,0 +1,26 @@
+--- src/GUI/file_browser.c.orig 2021-12-15 17:05:37 UTC
++++ src/GUI/file_browser.c
+@@ -13,6 +13,7 @@
+ #endif
+ #if UNIX
+ #include <unistd.h>
++#include <pwd.h>
+ #endif
+ #include <GL/glew.h>
+ #include <string.h>
+@@ -325,8 +326,13 @@ void file_browser_init(struct file_browser *browser, s
+ if (!home)
+ home = getenv("USERPROFILE");
+ #else
+- if (!home)
+- home = getpwuid(getuid());
++ if (!home) {
++ struct passwd *pwd;
++
++ pwd = getpwuid(getuid());
++ if (pwd != NULL)
++ home = pwd->pw_dir;
++ }
+ #endif
+ {
+ size_t l;
diff --git a/multimedia/ccextractor/files/patch-src_GUI_save__load__data.c b/multimedia/ccextractor/files/patch-src_GUI_save__load__data.c
new file mode 100644
index 000000000000..7dae94c96bcf
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-src_GUI_save__load__data.c
@@ -0,0 +1,8 @@
+--- src/GUI/save_load_data.c.orig 2025-10-28 12:56:02 UTC
++++ src/GUI/save_load_data.c
+@@ -1,3 +1,5 @@
++#include <string.h>
++
+ #include "save_load_data.h"
+ #include "ccextractorGUI.h"
+ #include "tabs.h"
diff --git a/multimedia/ccextractor/files/patch-src_lib__ccx_configuration.c b/multimedia/ccextractor/files/patch-src_lib__ccx_configuration.c
new file mode 100644
index 000000000000..6f6dbc4b094f
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-src_lib__ccx_configuration.c
@@ -0,0 +1,11 @@
+--- src/lib_ccx/configuration.c.orig 2025-10-28 13:57:45 UTC
++++ src/lib_ccx/configuration.c
+@@ -91,7 +91,7 @@ static void parse_file(FILE *f, struct ccx_s_options *
+ static void parse_file(FILE *f, struct ccx_s_options *opt)
+ {
+ char *str = (char *)malloc(128);
+- char c = '\0';
++ int c = '\0';
+ int comments = 0;
+ int i = 0;
+ int ret = 0;
diff --git a/multimedia/ccextractor/files/patch-src_lib__ccx_params.c b/multimedia/ccextractor/files/patch-src_lib__ccx_params.c
new file mode 100644
index 000000000000..6b07cdd4c837
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-src_lib__ccx_params.c
@@ -0,0 +1,27 @@
+--- src/lib_ccx/params.c.orig 2021-12-15 17:05:37 UTC
++++ src/lib_ccx/params.c
+@@ -1,7 +1,7 @@
+-#include "png.h"
+-#include "protobuf-c.h"
+-#include "zlib.h"
+-#include "gpac/version.h"
++#include <png.h>
++#include <protobuf-c.h>
++#include <zlib.h>
++#include <gpac/version.h>
+ #include "lib_ccx.h"
+ #include "ccx_common_option.h"
+ #include "utility.h"
+@@ -10,10 +10,10 @@
+ #include "ccx_common_common.h"
+ #include "ccx_decoders_708.h"
+ #include "compile_info.h"
+-#include "../lib_hash/sha2.h"
++#include <sha256.h>
+ #include <string.h>
+ #include <stdio.h>
+-#include <utf8proc/utf8proc.h>
++#include <utf8proc.h>
+
+ #ifdef ENABLE_OCR
+ #include <tesseract/capi.h>