From 7af8241016f316ad85a647d886b04f92e10a6c6b Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Mon, 30 Jan 2023 09:55:34 +0100 Subject: 20230130.1 global branch merge. Signed-off-by: Matteo Bernardini --- README | 16 + academic/ITK/ITK.SlackBuild | 23 +- academic/sage/sage.SlackBuild | 6 +- academic/sage/sage.info | 6 +- audio/mpd/boost-1.81.patch | 32 + audio/mpd/mpd.SlackBuild | 2 + audio/ocp/ocp.SlackBuild | 2 +- audio/ocp/ocp.info | 6 +- desktop/enlightenment/enlightenment.SlackBuild | 5 +- desktop/enlightenment/enlightenment.info | 6 +- development/Sphinx/README | 5 - development/Sphinx/Sphinx.SlackBuild | 84 - development/Sphinx/Sphinx.info | 10 - development/Sphinx/slack-desc | 19 - development/android-tools/android-tools.SlackBuild | 5 + ...-CMakeLists.txt-Disable-Werror-by-default.patch | 24 + .../patches/0021-tls-include-functional.patch | 22 + development/codelite/codelite.SlackBuild | 4 +- development/codelite/codelite.info | 6 +- .../device-tree-compiler.SlackBuild | 4 +- .../device-tree-compiler/device-tree-compiler.info | 6 +- development/gambas3/gambas3.SlackBuild | 1 + development/nodejs/README | 8 - development/nodejs/nodejs.SlackBuild | 118 - development/nodejs/nodejs.info | 10 - development/nodejs/npm.sh | 58 - development/nodejs/slack-desc | 19 - development/pahole/README | 2 - development/pahole/pahole.SlackBuild | 118 - development/pahole/pahole.info | 12 - development/pahole/slack-desc | 19 - development/protobuf3/gcc12.patch | 24 + development/protobuf3/protobuf3.SlackBuild | 1 + development/splint/splint.SlackBuild | 5 +- development/unittest-cpp/unittest-cpp.SlackBuild | 2 +- games/scummvm/scummvm.SlackBuild | 4 +- games/scummvm/scummvm.info | 6 +- games/supertux/gcc12.patch | 11 + .../supertux/missing-include-for-FLT_EPSILON.patch | 13 + games/supertux/supertux.SlackBuild | 3 + games/warzone2100/warzone2100.SlackBuild | 2 +- graphics/darktable/README | 3 + graphics/darktable/darktable.SlackBuild | 5 +- graphics/darktable/darktable.info | 6 +- graphics/djview4/djview4.SlackBuild | 10 +- graphics/djview4/djview4.info | 6 +- .../patches/0001-cross-build-pkg-config-info.patch | 86 + graphics/djview4/patches/0002-debian-changes.patch | 3606 ++++++++++++++++++++ graphics/gmic/gmic.SlackBuild | 27 +- graphics/gmic/gmic.info | 10 +- graphics/inkscape/inkscape.SlackBuild | 8 +- graphics/inkscape/inkscape.info | 6 +- graphics/inkscape/poppler-22.09.0.patch | 53 + graphics/kColorPicker/README | 5 - graphics/kColorPicker/kColorPicker.SlackBuild | 103 - graphics/kColorPicker/kColorPicker.info | 10 - graphics/kColorPicker/slack-desc | 19 - graphics/kImageAnnotator/README | 3 - .../kImageAnnotator/kImageAnnotator.SlackBuild | 103 - graphics/kImageAnnotator/kImageAnnotator.info | 10 - graphics/kImageAnnotator/slack-desc | 19 - graphics/luminance-hdr/luminance-hdr.SlackBuild | 5 +- graphics/luminance-hdr/luminance-hdr.info | 6 +- .../luminance-hdr-2.5.1-openmp-automagic.patch | 32 + .../patches/luminance-hdr-2.6.0-cmake.patch | 22 + .../patches/luminance-hdr-2.6.0-docs.patch | 15 + .../patches/luminance-hdr-2.6.0-no-git.patch | 15 + .../patches/luminance-hdr-2.6.1.1-fixheaders.patch | 15 + .../patches/luminance-hdr-2.6.1.1-openexr3.patch | 28 + graphics/openimageio/ffmpeg-5.1.patch | 27 + graphics/openimageio/openimageio.SlackBuild | 2 + graphics/rawtherapee/rawtherapee-glibc-2.34.patch | 352 ++ graphics/rawtherapee/rawtherapee.SlackBuild | 3 + libraries/aubio/aubio-0.4.9-ffmpeg-5.0.patch | 14 + libraries/aubio/aubio.SlackBuild | 2 + libraries/chromaprint/chromaprint.SlackBuild | 2 + libraries/chromaprint/ffmpeg5.patch | 76 + libraries/efl/efl.SlackBuild | 2 +- libraries/efl/efl.info | 6 +- libraries/fmt/README | 2 - libraries/fmt/fmt.SlackBuild | 105 - libraries/fmt/fmt.info | 10 - libraries/fmt/slack-desc | 19 - libraries/iniparser/README | 6 - libraries/iniparser/iniparser.SlackBuild | 115 - libraries/iniparser/iniparser.info | 10 - libraries/iniparser/slack-desc | 19 - libraries/libopenshot/libopenshot.SlackBuild | 4 +- ...-some-AVCodecIDs-necessary-for-new-ffmpeg.patch | 94 + .../0003-FFmpegWriter-Macro-member-cleanup.patch | 344 ++ ...iter-Don-t-force-deprecated-stream-member.patch | 26 + ...pegWriter-Don-t-use-AVPicture-gone-in-5.0.patch | 57 + libraries/libosinfo/libosinfo.SlackBuild | 4 +- libraries/libosinfo/libosinfo.info | 6 +- .../libquicktime/libquicktime-1.2.4-ffmpeg2.patch | 98 - .../libquicktime/libquicktime-1.2.4-ffmpeg4.patch | 342 -- libraries/libquicktime/libquicktime-ffmpeg3.patch | 935 ----- libraries/libquicktime/libquicktime.SlackBuild | 6 +- libraries/libsoup3/README | 6 - libraries/libsoup3/libsoup3.SlackBuild | 110 - libraries/libsoup3/libsoup3.info | 10 - libraries/libsoup3/slack-desc | 19 - libraries/libvirt-python/libvirt-python.SlackBuild | 4 +- libraries/libvirt-python/libvirt-python.info | 6 +- libraries/libvirt/823a62ec.patch | 48 - libraries/libvirt/libvirt.SlackBuild | 9 +- libraries/libvirt/libvirt.info | 6 +- libraries/podofo/XRefStrParObj-deprecated.patch | 61 - libraries/podofo/gcc12.patch | 39 + libraries/podofo/podofo.SlackBuild | 14 +- libraries/podofo/podofo.info | 6 +- libraries/wxsvg/wxsvg.SlackBuild | 4 +- libraries/wxsvg/wxsvg.info | 6 +- misc/xcb-imdkit/README | 8 - misc/xcb-imdkit/slack-desc | 19 - misc/xcb-imdkit/xcb-imdkit.SlackBuild | 103 - misc/xcb-imdkit/xcb-imdkit.info | 10 - multimedia/dvdstyler/dvdstyler.SlackBuild | 4 +- multimedia/dvdstyler/dvdstyler.info | 6 +- multimedia/gpac/gpac.SlackBuild | 2 +- multimedia/gpac/gpac.info | 6 +- .../gst-plugins-bad-nonfree.SlackBuild | 2 +- .../gst-plugins-bad-nonfree.info | 6 +- .../gst-plugins-ugly/gst-plugins-ugly.SlackBuild | 5 +- multimedia/gst-plugins-ugly/gst-plugins-ugly.info | 6 +- multimedia/mkvtoolnix/mkvtoolnix.SlackBuild | 2 + multimedia/mkvtoolnix/ruby-3.2.patch | 382 +++ .../transcode/transcode-1.1.7-ffmpeg-0.10.patch | 15 - .../transcode/transcode-1.1.7-ffmpeg-0.11.patch | 303 -- multimedia/transcode/transcode-1.1.7-ffmpeg.patch | 51 - multimedia/transcode/transcode-1.1.7-ffmpeg2.patch | 557 --- .../transcode/transcode-1.1.7-ffmpeg24.patch | 18 - .../transcode/transcode-1.1.7-ffmpeg29.patch | 352 -- multimedia/transcode/transcode-1.1.7-ffmpeg4.patch | 508 --- .../transcode/transcode-1.1.7-libav-10.patch | 36 - multimedia/transcode/transcode-1.1.7-libav-9.patch | 31 - .../transcode/transcode-1.1.7-preset-force.patch | 28 - .../transcode/transcode-1.1.7-preset-free.patch | 34 - multimedia/transcode/transcode.SlackBuild | 15 +- multimedia/xjadeo/ffmpeg-5.1.patch | 105 + multimedia/xjadeo/ffmpeg-5.patch | 25 + multimedia/xjadeo/xjadeo.SlackBuild | 5 +- multimedia/xjadeo/xjadeo.info | 6 +- network/MEGAsync/MEGAsync.SlackBuild | 7 +- network/MEGAsync/MEGAsync.info | 10 +- network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch | 24 - network/MEGAsync/megasync-4.7.1.0_ffmpeg5.patch | 19 + network/spice-gtk/spice-gtk.SlackBuild | 4 +- network/spice-gtk/spice-gtk.info | 6 +- network/x2goclient/glibc236.patch | 11 + network/x2goclient/x2goclient.SlackBuild | 2 + network/x2goserver/x2goserver.SlackBuild | 2 +- network/x2goserver/x2goserver.info | 6 +- ...Remove-incorrect-args-for-i18n.merge_file.patch | 51 + office/evince/evince.SlackBuild | 2 + office/pstoedit/pstoedit-3.78-mga-uniqueptr.patch | 12 + office/pstoedit/pstoedit.SlackBuild | 3 + office/scribus/harfbuzz-3.0.0.patch | 68 - office/scribus/scribus.SlackBuild | 6 +- office/scribus/scribus.info | 6 +- python/alabaster/alabaster.SlackBuild | 4 - python/cppy/cppy.SlackBuild | 2 +- python/cppy/cppy.info | 6 +- python/imagesize/imagesize.SlackBuild | 4 - python/pikepdf/pikepdf.SlackBuild | 2 +- python/pikepdf/pikepdf.info | 6 +- python/python-importlib_metadata/README | 4 - .../python-importlib_metadata.SlackBuild | 100 - .../python-importlib_metadata.info | 10 - python/python-importlib_metadata/slack-desc | 19 - python/python-pcapy/python-pcapy.SlackBuild | 4 +- python/python-pcapy/python-pcapy.info | 6 +- python/python-zipp/README | 2 - python/python-zipp/python-zipp.SlackBuild | 101 - python/python-zipp/python-zipp.info | 10 - python/python-zipp/setup.py | 5 - python/python-zipp/slack-desc | 19 - python/python3-babel/README | 10 - python/python3-babel/python3-babel.SlackBuild | 106 - python/python3-babel/python3-babel.info | 12 - python/python3-babel/slack-desc | 19 - python/python3-kiwisolver/README | 3 - .../python3-kiwisolver.SlackBuild | 5 +- python/python3-kiwisolver/python3-kiwisolver.info | 8 +- python/pytz/pytz.SlackBuild | 1 - python/snowballstemmer/snowballstemmer.SlackBuild | 3 - system/audit/audit.SlackBuild | 5 + system/conky/conky.SlackBuild | 2 +- system/osinfo-db-tools/osinfo-db-tools.SlackBuild | 4 +- system/osinfo-db-tools/osinfo-db-tools.info | 6 +- system/osinfo-db/osinfo-db.SlackBuild | 4 +- system/osinfo-db/osinfo-db.info | 6 +- system/vice/vice.SlackBuild | 1 + .../virt-manager/Add-Slackware-to-OS-choices.patch | 11 - system/virt-manager/virt-manager.SlackBuild | 2 +- system/virt-manager/virt-manager.info | 6 +- .../virtualbox-extension-pack.SlackBuild | 4 +- .../virtualbox-extension-pack.info | 6 +- .../virtualbox-kernel/virtualbox-kernel.SlackBuild | 4 +- system/virtualbox-kernel/virtualbox-kernel.info | 6 +- system/virtualbox/vboxdrv.sh-setup.diff | 108 +- system/virtualbox/virtualbox-VBoxR0.diff | 18 - system/virtualbox/virtualbox.SlackBuild | 11 +- system/virtualbox/virtualbox.info | 18 +- system/xf86-video-qxl/buildfix.diff | 101 + system/xf86-video-qxl/xf86-video-qxl.SlackBuild | 3 +- 206 files changed, 6117 insertions(+), 5570 deletions(-) create mode 100644 audio/mpd/boost-1.81.patch delete mode 100644 development/Sphinx/README delete mode 100644 development/Sphinx/Sphinx.SlackBuild delete mode 100644 development/Sphinx/Sphinx.info delete mode 100644 development/Sphinx/slack-desc create mode 100644 development/android-tools/patches/0012-CMakeLists.txt-Disable-Werror-by-default.patch create mode 100644 development/android-tools/patches/0021-tls-include-functional.patch delete mode 100644 development/nodejs/README delete mode 100644 development/nodejs/nodejs.SlackBuild delete mode 100644 development/nodejs/nodejs.info delete mode 100644 development/nodejs/npm.sh delete mode 100644 development/nodejs/slack-desc delete mode 100644 development/pahole/README delete mode 100644 development/pahole/pahole.SlackBuild delete mode 100644 development/pahole/pahole.info delete mode 100644 development/pahole/slack-desc create mode 100644 development/protobuf3/gcc12.patch create mode 100644 games/supertux/gcc12.patch create mode 100644 games/supertux/missing-include-for-FLT_EPSILON.patch create mode 100644 graphics/djview4/patches/0001-cross-build-pkg-config-info.patch create mode 100644 graphics/djview4/patches/0002-debian-changes.patch create mode 100644 graphics/inkscape/poppler-22.09.0.patch delete mode 100644 graphics/kColorPicker/README delete mode 100644 graphics/kColorPicker/kColorPicker.SlackBuild delete mode 100644 graphics/kColorPicker/kColorPicker.info delete mode 100644 graphics/kColorPicker/slack-desc delete mode 100644 graphics/kImageAnnotator/README delete mode 100644 graphics/kImageAnnotator/kImageAnnotator.SlackBuild delete mode 100644 graphics/kImageAnnotator/kImageAnnotator.info delete mode 100644 graphics/kImageAnnotator/slack-desc create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.5.1-openmp-automagic.patch create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.6.0-cmake.patch create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.6.0-docs.patch create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.6.0-no-git.patch create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-fixheaders.patch create mode 100644 graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-openexr3.patch create mode 100644 graphics/openimageio/ffmpeg-5.1.patch create mode 100644 graphics/rawtherapee/rawtherapee-glibc-2.34.patch create mode 100644 libraries/aubio/aubio-0.4.9-ffmpeg-5.0.patch create mode 100644 libraries/chromaprint/ffmpeg5.patch delete mode 100644 libraries/fmt/README delete mode 100644 libraries/fmt/fmt.SlackBuild delete mode 100644 libraries/fmt/fmt.info delete mode 100644 libraries/fmt/slack-desc delete mode 100644 libraries/iniparser/README delete mode 100644 libraries/iniparser/iniparser.SlackBuild delete mode 100644 libraries/iniparser/iniparser.info delete mode 100644 libraries/iniparser/slack-desc create mode 100644 libraries/libopenshot/patches/0002-constify-some-AVCodecIDs-necessary-for-new-ffmpeg.patch create mode 100644 libraries/libopenshot/patches/0003-FFmpegWriter-Macro-member-cleanup.patch create mode 100644 libraries/libopenshot/patches/0004-FFmpegWriter-Don-t-force-deprecated-stream-member.patch create mode 100644 libraries/libopenshot/patches/0005-FFmpegWriter-Don-t-use-AVPicture-gone-in-5.0.patch delete mode 100644 libraries/libquicktime/libquicktime-1.2.4-ffmpeg2.patch delete mode 100644 libraries/libquicktime/libquicktime-1.2.4-ffmpeg4.patch delete mode 100644 libraries/libquicktime/libquicktime-ffmpeg3.patch delete mode 100644 libraries/libsoup3/README delete mode 100644 libraries/libsoup3/libsoup3.SlackBuild delete mode 100644 libraries/libsoup3/libsoup3.info delete mode 100644 libraries/libsoup3/slack-desc delete mode 100644 libraries/libvirt/823a62ec.patch delete mode 100644 libraries/podofo/XRefStrParObj-deprecated.patch create mode 100644 libraries/podofo/gcc12.patch delete mode 100644 misc/xcb-imdkit/README delete mode 100644 misc/xcb-imdkit/slack-desc delete mode 100644 misc/xcb-imdkit/xcb-imdkit.SlackBuild delete mode 100644 misc/xcb-imdkit/xcb-imdkit.info create mode 100644 multimedia/mkvtoolnix/ruby-3.2.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg-0.10.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg-0.11.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg2.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg24.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg29.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-ffmpeg4.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-libav-10.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-libav-9.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-preset-force.patch delete mode 100644 multimedia/transcode/transcode-1.1.7-preset-free.patch create mode 100644 multimedia/xjadeo/ffmpeg-5.1.patch create mode 100644 multimedia/xjadeo/ffmpeg-5.patch delete mode 100644 network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch create mode 100644 network/MEGAsync/megasync-4.7.1.0_ffmpeg5.patch create mode 100644 network/x2goclient/glibc236.patch create mode 100644 office/evince/Remove-incorrect-args-for-i18n.merge_file.patch create mode 100644 office/pstoedit/pstoedit-3.78-mga-uniqueptr.patch delete mode 100644 office/scribus/harfbuzz-3.0.0.patch delete mode 100644 python/python-importlib_metadata/README delete mode 100644 python/python-importlib_metadata/python-importlib_metadata.SlackBuild delete mode 100644 python/python-importlib_metadata/python-importlib_metadata.info delete mode 100644 python/python-importlib_metadata/slack-desc delete mode 100644 python/python-zipp/README delete mode 100644 python/python-zipp/python-zipp.SlackBuild delete mode 100644 python/python-zipp/python-zipp.info delete mode 100644 python/python-zipp/setup.py delete mode 100644 python/python-zipp/slack-desc delete mode 100644 python/python3-babel/README delete mode 100644 python/python3-babel/python3-babel.SlackBuild delete mode 100644 python/python3-babel/python3-babel.info delete mode 100644 python/python3-babel/slack-desc delete mode 100644 system/virtualbox/virtualbox-VBoxR0.diff create mode 100644 system/xf86-video-qxl/buildfix.diff diff --git a/README b/README index 2708bcc7d7..b1cf535a55 100644 --- a/README +++ b/README @@ -1,3 +1,19 @@ +SBo-git - slackbuilds repository for slackware-current +- - - + +this is an unofficial fork of master branch from slackbuilds.org's +git repository (http://slackbuilds.org/cgit/slackbuilds/). + +here I put my unofficial mods to their slackbuilds to run on +slackware-current with sbopkg (http://www.sbopkg.org). + +Check https://github.com/Ponce/slackbuilds/wiki for additional informations. + +See https://github.com/Ponce/slackbuilds/wiki/configuring-the-current-repository-with-sbopkg +for instructions on how to use this repository with sbopkg. + +original README from slackbuilds.org follows: +--------------------------------------------- See https://slackbuilds.org/howto/ for instructions on how to use the contents of this directory. diff --git a/academic/ITK/ITK.SlackBuild b/academic/ITK/ITK.SlackBuild index bc13af67ce..e29c81ef7f 100644 --- a/academic/ITK/ITK.SlackBuild +++ b/academic/ITK/ITK.SlackBuild @@ -83,13 +83,12 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; patch -p1 <<'endpatch' ---- InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h.cp -+++ InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h -@@ -96,6 +96,39 @@ - # define VCL_GCC_81 +--- InsightToolkit-4.13.2.orig/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h 2019-02-28 17:45:49.000000000 +0100 ++++ InsightToolkit-4.13.2/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h 2022-08-23 13:35:27.488603000 +0200 +@@ -97,6 +97,50 @@ # else # define VCL_GCC_80 -+# endif + # endif +# elif (__GNUC__==9) +# define VCL_GCC_9 +# if (__GNUC_MINOR__ > 2 ) @@ -122,9 +121,21 @@ patch -p1 <<'endpatch' +# define VCL_GCC_111 +# else +# define VCL_GCC_110 - # endif ++# endif ++# elif (__GNUC__==12) ++# define VCL_GCC_12 ++# if (__GNUC_MINOR__ > 2 ) ++# define VCL_GCC_123 ++# elif (__GNUC_MINOR__ > 1 ) ++# define VCL_GCC_122 ++# elif (__GNUC_MINOR__ > 0 ) ++# define VCL_GCC_121 ++# else ++# define VCL_GCC_120 ++# endif # else # error "Dunno about this gcc" + # endif endpatch sed -i "s/lib\b/lib${LIBDIRSUFFIX}/" CMakeLists.txt diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild index 55235ef6e0..6cd01923f0 100644 --- a/academic/sage/sage.SlackBuild +++ b/academic/sage/sage.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sage -VERSION=${VERSION:-9.4} +VERSION=${VERSION:-9.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -132,12 +132,12 @@ if [ "${INSTALLSCRIPTS:-no}" = "yes" ]; then fi sed "s%SAGEROOT%${SAGEROOT}%" $CWD/$PRGNAM-notebook.desktop > $PKG/usr/share/applications/$PRGNAM-notebook.desktop -cp src/doc/common/themes/sage/static/sageicon.png $PKG/usr/share/pixmaps/ +cp src/doc/common/static/sageicon.png $PKG/usr/share/pixmaps/ # Put a line here which *actually* adds sage to the path # install sagetex to a location that is accessible to the system TeX installation -cp -a local/share/texmf $PKG/usr/share +#cp -a local/share/texmf $PKG/usr/share cp -a COPYING.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/academic/sage/sage.info b/academic/sage/sage.info index 364237c41a..b9565bd216 100644 --- a/academic/sage/sage.info +++ b/academic/sage/sage.info @@ -1,8 +1,8 @@ PRGNAM="sage" -VERSION="9.4" +VERSION="9.7" HOMEPAGE="http://www.sagemath.org" -DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-9.4.tar.gz" -MD5SUM="66d4e2cc18095df56f99f5420d70a33b" +DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-9.7.tar.gz" +MD5SUM="6400336a9d796204c31c0aef8eb2ee53" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/audio/mpd/boost-1.81.patch b/audio/mpd/boost-1.81.patch new file mode 100644 index 0000000000..697cc7a13e --- /dev/null +++ b/audio/mpd/boost-1.81.patch @@ -0,0 +1,32 @@ +From e4b055eb6d08c5c8f8d85828ce4005d410e462cb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= + +Date: Thu, 1 Dec 2022 08:29:23 +0700 +Subject: [PATCH] v0.23.x: RemoteTagCache: add missing include + +Fix build with Boost 1.81.0. `` was included by one of those boost headers, +however, it's no longer included as of Boost 1.81.0. + +`master` doesn't use `std::array` in this file. + +While we're at it, add all necessary inclusion files. +--- + src/RemoteTagCache.hxx | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/RemoteTagCache.hxx b/src/RemoteTagCache.hxx +index ed87f9706f..e8b198a219 100644 +--- a/src/RemoteTagCache.hxx ++++ b/src/RemoteTagCache.hxx +@@ -28,7 +28,11 @@ + #include + #include + ++#include ++#include ++#include + #include ++#include + + class RemoteTagCacheHandler; + diff --git a/audio/mpd/mpd.SlackBuild b/audio/mpd/mpd.SlackBuild index bcf29ccf9c..059c0093a9 100644 --- a/audio/mpd/mpd.SlackBuild +++ b/audio/mpd/mpd.SlackBuild @@ -97,6 +97,8 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +patch -p1 < $CWD/boost-1.81.patch + cd build CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/audio/ocp/ocp.SlackBuild b/audio/ocp/ocp.SlackBuild index 65ac6350f0..0b07cf3dd0 100644 --- a/audio/ocp/ocp.SlackBuild +++ b/audio/ocp/ocp.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ocp -VERSION=${VERSION:-0.2.100} +VERSION=${VERSION:-0.2.101} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/audio/ocp/ocp.info b/audio/ocp/ocp.info index 4880e2b2ce..b8e8702100 100644 --- a/audio/ocp/ocp.info +++ b/audio/ocp/ocp.info @@ -1,8 +1,8 @@ PRGNAM="ocp" -VERSION="0.2.100" +VERSION="0.2.101" HOMEPAGE="http://cubic.org/player" -DOWNLOAD="https://stian.cubic.org/ocp/ocp-0.2.100.tar.xz" -MD5SUM="820e58656f1c46ea1acd6564b3c48589" +DOWNLOAD="https://stian.cubic.org/ocp/ocp-0.2.101.tar.xz" +MD5SUM="e924b454ddc5df1c606edf35054662b5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gnu-unifont xa cJSON" diff --git a/desktop/enlightenment/enlightenment.SlackBuild b/desktop/enlightenment/enlightenment.SlackBuild index b0e64c9110..f129586735 100644 --- a/desktop/enlightenment/enlightenment.SlackBuild +++ b/desktop/enlightenment/enlightenment.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=enlightenment -VERSION=${VERSION:-0.25.1} +VERSION=${VERSION:-0.25.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -89,8 +89,7 @@ meson . build \ --prefix=/usr/ \ --libdir=/usr/lib${LIBDIRSUFFIX} \ -Dsystemd=false \ - -Dpam=false \ - -Dbuild-id=$ARCH-slackware-linux + -Dpam=true CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/desktop/enlightenment/enlightenment.info b/desktop/enlightenment/enlightenment.info index 2696c3e4e5..db3563fbdc 100644 --- a/desktop/enlightenment/enlightenment.info +++ b/desktop/enlightenment/enlightenment.info @@ -1,8 +1,8 @@ PRGNAM="enlightenment" -VERSION="0.25.1" +VERSION="0.25.3" HOMEPAGE="https://www.enlightenment.org/" -DOWNLOAD="https://download.enlightenment.org/rel/apps/enlightenment/enlightenment-0.25.1.tar.xz" -MD5SUM="68d37c845c6a9e24e9b2b9709e5994be" +DOWNLOAD="https://download.enlightenment.org/rel/apps/enlightenment/enlightenment-0.25.3.tar.xz" +MD5SUM="5f8033a2b0c236583b4f83d2f7c578d8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="efl" diff --git a/development/Sphinx/README b/development/Sphinx/README deleted file mode 100644 index e3f923a7f7..0000000000 --- a/development/Sphinx/README +++ /dev/null @@ -1,5 +0,0 @@ -Sphinx is a tool that translates a set of reStructuredText -source files into various output formats, including HTML, ePub, -LaTeX and plain text. Sphinx was originally created for the Python -documentation, but it has excellent facilities for the documentation -of software projects in a range of languages. diff --git a/development/Sphinx/Sphinx.SlackBuild b/development/Sphinx/Sphinx.SlackBuild deleted file mode 100644 index 87caf8736b..0000000000 --- a/development/Sphinx/Sphinx.SlackBuild +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash - -# Slackware build script for Sphinx - -# Copyright 2013 Mikko Värri, Finland -# Copyright 2017-2021 Benjamin Trigona-Harany -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=Sphinx -VERSION=${VERSION:-4.2.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -python3 setup.py install --root=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS CHANGES EXAMPLES LICENSE README.rst \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/Sphinx/Sphinx.info b/development/Sphinx/Sphinx.info deleted file mode 100644 index f2c4274ca9..0000000000 --- a/development/Sphinx/Sphinx.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="Sphinx" -VERSION="4.2.0" -HOMEPAGE="http://www.sphinx-doc.org" -DOWNLOAD="https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-4.2.0.tar.gz" -MD5SUM="6af34550e36dd6d58a496e47ec67280f" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="alabaster imagesize python3-babel snowballstemmer sphinxcontrib-applehelp sphinxcontrib-devhelp sphinxcontrib-htmlhelp sphinxcontrib-jsmath sphinxcontrib-qthelp sphinxcontrib-serializinghtml" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" diff --git a/development/Sphinx/slack-desc b/development/Sphinx/slack-desc deleted file mode 100644 index 403648f0ae..0000000000 --- a/development/Sphinx/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -Sphinx: Sphinx (Documentation generator) -Sphinx: -Sphinx: Sphinx is a tool that translates a set of reStructuredText source -Sphinx: files into various output formats, including HTML, ePub, LaTeX and -Sphinx: plain text. Sphinx was originally created for the Python -Sphinx: documentation, but it has excellent facilities for the documentation -Sphinx: of software projects in a range of languages. -Sphinx: -Sphinx: -Sphinx: -Sphinx: diff --git a/development/android-tools/android-tools.SlackBuild b/development/android-tools/android-tools.SlackBuild index c858d18140..7096067f4c 100644 --- a/development/android-tools/android-tools.SlackBuild +++ b/development/android-tools/android-tools.SlackBuild @@ -81,6 +81,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +( cd vendor/adb + patch -p1 < $CWD/patches/0021-tls-include-functional.patch ) +( cd vendor/boringssl + patch -p1 < $CWD/patches/0012-CMakeLists.txt-Disable-Werror-by-default.patch ) + export GOCACHE=$(pwd)/build/go-cache export GO111MODULE=off diff --git a/development/android-tools/patches/0012-CMakeLists.txt-Disable-Werror-by-default.patch b/development/android-tools/patches/0012-CMakeLists.txt-Disable-Werror-by-default.patch new file mode 100644 index 0000000000..c9ac7ff3b3 --- /dev/null +++ b/development/android-tools/patches/0012-CMakeLists.txt-Disable-Werror-by-default.patch @@ -0,0 +1,24 @@ +From 9ecab80323875e95b08b5e6f327e4d5bd5d70478 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B6ren=20Tempel?= +Date: Sat, 21 May 2022 11:47:32 +0200 +Subject: [PATCH] CMakeLists.txt: Disable -Werror by default + +Boringssl regularly fails to compile with newer GCC versions due +to new warnings introduced by GCC upstream. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f58e853cd..b1fec9616 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -117,7 +117,7 @@ endif() + if(CMAKE_COMPILER_IS_GNUCXX OR CLANG) + # Note clang-cl is odd and sets both CLANG and MSVC. We base our configuration + # primarily on our normal Clang one. +- set(C_CXX_FLAGS "-Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wvla") ++ set(C_CXX_FLAGS "-Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -Wvla") + if(MSVC) + # clang-cl sets different default warnings than clang. It also treats -Wall + # as -Weverything, to match MSVC. Instead -W3 is the alias for -Wall. diff --git a/development/android-tools/patches/0021-tls-include-functional.patch b/development/android-tools/patches/0021-tls-include-functional.patch new file mode 100644 index 0000000000..8b4a517021 --- /dev/null +++ b/development/android-tools/patches/0021-tls-include-functional.patch @@ -0,0 +1,22 @@ +From 9d0394f52324e7ccc62c67ce34cfe6ef9e85f043 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B6ren=20Tempel?= +Date: Wed, 18 May 2022 01:02:57 +0200 +Subject: [PATCH] tls: include + +Fixes compilation with GCC 12.1. +--- + tls/include/adb/tls/tls_connection.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tls/include/adb/tls/tls_connection.h b/tls/include/adb/tls/tls_connection.h +index bc5b98ab..a112756c 100644 +--- a/tls/include/adb/tls/tls_connection.h ++++ b/tls/include/adb/tls/tls_connection.h +@@ -19,6 +19,7 @@ + #include + #include + ++#include + #include + #include + diff --git a/development/codelite/codelite.SlackBuild b/development/codelite/codelite.SlackBuild index a73a0361d7..8c14bbd4fd 100644 --- a/development/codelite/codelite.SlackBuild +++ b/development/codelite/codelite.SlackBuild @@ -7,8 +7,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=codelite -VERSION=${VERSION:-15.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-16.0.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/development/codelite/codelite.info b/development/codelite/codelite.info index c01b8a1ba5..04c9ae1ec9 100644 --- a/development/codelite/codelite.info +++ b/development/codelite/codelite.info @@ -1,8 +1,8 @@ PRGNAM="codelite" -VERSION="15.0" +VERSION="16.0.0" HOMEPAGE="http://www.codelite.org/" -DOWNLOAD="https://github.com/eranif/codelite/archive/15.0/codelite-15.0.tar.gz" -MD5SUM="1c54744ab0c9b5732087687ab17ab49d" +DOWNLOAD="https://github.com/eranif/codelite/archive/16.0.0/codelite-16.0.0.tar.gz" +MD5SUM="0141a38d2f686520d54fd19a6df0fac3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="wxGTK3" diff --git a/development/device-tree-compiler/device-tree-compiler.SlackBuild b/development/device-tree-compiler/device-tree-compiler.SlackBuild index 28a9bf3c40..7ec001ee23 100644 --- a/development/device-tree-compiler/device-tree-compiler.SlackBuild +++ b/development/device-tree-compiler/device-tree-compiler.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=device-tree-compiler -VERSION=${VERSION:-1.6.1} +VERSION=${VERSION:-20220420_ed31080} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,7 +74,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z cd $SRCNAM-$VERSION chown -R root:root . find -L . \ diff --git a/development/device-tree-compiler/device-tree-compiler.info b/development/device-tree-compiler/device-tree-compiler.info index a25d77bae3..326e24228c 100644 --- a/development/device-tree-compiler/device-tree-compiler.info +++ b/development/device-tree-compiler/device-tree-compiler.info @@ -1,8 +1,8 @@ PRGNAM="device-tree-compiler" -VERSION="1.6.1" +VERSION="20220420_ed31080" HOMEPAGE="https://git.kernel.org/cgit/utils/dtc/dtc.git" -DOWNLOAD="https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/dtc-1.6.1.tar.gz" -MD5SUM="19eef37196e99b659c402a29aac5ba59" +DOWNLOAD="https://ponce.cc/slackware/sources/repo/dtc-20220420_ed31080.tar.xz" +MD5SUM="e9645746d8e3e21cda57b474dbc82acf" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/development/gambas3/gambas3.SlackBuild b/development/gambas3/gambas3.SlackBuild index 02d4041465..bdabf06143 100644 --- a/development/gambas3/gambas3.SlackBuild +++ b/development/gambas3/gambas3.SlackBuild @@ -91,6 +91,7 @@ LLVM_CONFIG=llvm-config \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --build=$ARCH-slackware-linux \ + --disable-pdf \ $qt5 make diff --git a/development/nodejs/README b/development/nodejs/README deleted file mode 100644 index 19aa105720..0000000000 --- a/development/nodejs/README +++ /dev/null @@ -1,8 +0,0 @@ -Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. - -Node.js uses an event-driven, non-blocking I/O model that makes it -lightweight and efficient. Node.js' package ecosystem, npm, is the -largest ecosystem of open source libraries in the world. - -NOTE: This version uses an internal OpenSSL version instead of -the one provided in Slackware package. diff --git a/development/nodejs/nodejs.SlackBuild b/development/nodejs/nodejs.SlackBuild deleted file mode 100644 index 7ed5554c9f..0000000000 --- a/development/nodejs/nodejs.SlackBuild +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/bash - -# Slackware build script for nodejs -# Thanks to Audrius Kažukauskas - -# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org -# Willy Sudiarto Raharjo - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version, with the following exception: -# the text of the GPL license may be omitted. - -# This program is distributed in the hope that it will be useful, but -# without any warranty; without even the implied warranty of -# merchantability or fitness for a particular purpose. Compiling, -# interpreting, executing or merely reading the text of the program -# may result in lapses of consciousness and/or very being, up to and -# including the end of all existence and the Universe as we know it. -# See the GNU General Public License for more details. - -# You may have received a copy of the GNU General Public License -# along with this program (most likely, a file named COPYING). If -# not, see . - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=nodejs -SRCNAM=node -VERSION=${VERSION:-19.5.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -eu - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-v$VERSION -tar xvf $CWD/$SRCNAM-v$VERSION.tar.xz -cd $SRCNAM-v$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -## Fix man page path. -sed -i 's|share/||' tools/install.py - -## Fix libdir for 64-bit. -sed -i "s|lib/|lib${LIBDIRSUFFIX}/|g" tools/install.py -sed -i "s/'lib'/'lib${LIBDIRSUFFIX}'/" \ - lib/module.js \ - lib/internal/modules/cjs/loader.js \ - deps/npm/lib/npm.js - -sed -i "s|math.h|cmath|" src/node_crypto.cc -./configure \ - --prefix=/usr \ - --shared-zlib \ - --ninja - -make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" -make install DESTDIR=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -## Add bash completion file for npm. -install -D -m 644 $CWD/npm.sh $PKG/usr/share/bash-completion/completions/npm - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/nodejs/nodejs.info b/development/nodejs/nodejs.info deleted file mode 100644 index b169e4f735..0000000000 --- a/development/nodejs/nodejs.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="nodejs" -VERSION="19.5.0" -HOMEPAGE="https://nodejs.org/" -DOWNLOAD="https://nodejs.org/dist/v19.5.0/node-v19.5.0.tar.xz" -MD5SUM="a37af3660441ef01b6f6ec205007c36d" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Willy Sudiarto Raharjo" -EMAIL="willysr@slackbuilds.org" diff --git a/development/nodejs/npm.sh b/development/nodejs/npm.sh deleted file mode 100644 index 25bef2c17b..0000000000 --- a/development/nodejs/npm.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash -###-begin-npm-completion-### -# -# npm command completion script -# -# Installation: npm completion >> ~/.bashrc (or ~/.zshrc) -# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm -# - -if type complete &>/dev/null; then - _npm_completion () { - local words cword - if type _get_comp_words_by_ref &>/dev/null; then - _get_comp_words_by_ref -n = -n @ -w words -i cword - else - cword="$COMP_CWORD" - words=("${COMP_WORDS[@]}") - fi - - local si="$IFS" - IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \ - COMP_LINE="$COMP_LINE" \ - COMP_POINT="$COMP_POINT" \ - npm completion -- "${words[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - complete -o default -F _npm_completion npm -elif type compdef &>/dev/null; then - _npm_completion() { - local si=$IFS - compadd -- $(COMP_CWORD=$((CURRENT-1)) \ - COMP_LINE=$BUFFER \ - COMP_POINT=0 \ - npm completion -- "${words[@]}" \ - 2>/dev/null) - IFS=$si - } - compdef _npm_completion npm -elif type compctl &>/dev/null; then - _npm_completion () { - local cword line point words si - read -Ac words - read -cn cword - let cword-=1 - read -l line - read -ln point - si="$IFS" - IFS=$'\n' reply=($(COMP_CWORD="$cword" \ - COMP_LINE="$line" \ - COMP_POINT="$point" \ - npm completion -- "${words[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - compctl -K _npm_completion npm -fi -###-end-npm-completion-### diff --git a/development/nodejs/slack-desc b/development/nodejs/slack-desc deleted file mode 100644 index bb10691042..0000000000 --- a/development/nodejs/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -nodejs: nodejs (JavaScript runtime) -nodejs: -nodejs: Node.js is a JavaScript runtime built on Chrome's V8 JavaScript -nodejs: engine. -nodejs: -nodejs: https://nodejs.org/ -nodejs: -nodejs: -nodejs: -nodejs: -nodejs: diff --git a/development/pahole/README b/development/pahole/README deleted file mode 100644 index 364ff6ed67..0000000000 --- a/development/pahole/README +++ /dev/null @@ -1,2 +0,0 @@ -pahole shows data structure layouts encoded in debugging information -formats, DWARF and CTF being supported. diff --git a/development/pahole/pahole.SlackBuild b/development/pahole/pahole.SlackBuild deleted file mode 100644 index 1313776ccf..0000000000 --- a/development/pahole/pahole.SlackBuild +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/bash - -# Slackware build script for pahole - -# Copyright 2019-2022 xaizek -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=pahole -VERSION=${VERSION:-1.24} -LIBBPF_VER="${LIBBPF_VER:-645500dd7d2d6b5bb76e4c0375d597d4f0c4814e}" -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -rm -rf libbpf-$LIBBPF_VER -tar xvf $CWD/$PRGNAM-$VERSION.tar.?z -tar xvf $CWD/libbpf-$LIBBPF_VER.tar.?z -rmdir $PRGNAM-$VERSION/lib/bpf -mv libbpf-$LIBBPF_VER $PRGNAM-$VERSION/lib/bpf -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# -DDW_LANG_Haskell is a workaround for macro rename in /usr/include/dwarf.h -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -DDW_LANG_Haskell=DW_LANG_Haskel" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -D__LIB="lib${LIBDIRSUFFIX}" \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd .. - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mv $PKG/usr/share/man $PKG/usr/man - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -# README.ctracer seems to be the only useful README -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - COPYING NEWS README.ctracer \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/pahole/pahole.info b/development/pahole/pahole.info deleted file mode 100644 index c881652c19..0000000000 --- a/development/pahole/pahole.info +++ /dev/null @@ -1,12 +0,0 @@ -PRGNAM="pahole" -VERSION="1.24" -HOMEPAGE="https://git.kernel.org/pub/scm/devel/pahole/pahole.git/" -DOWNLOAD="https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-1.24.tar.gz \ - https://github.com/libbpf/libbpf/archive/645500dd7d2d6b5bb76e4c0375d597d4f0c4814e/libbpf-645500dd7d2d6b5bb76e4c0375d597d4f0c4814e.tar.gz" -MD5SUM="62936bf33a027260e49dd29fb5628788 \ - 4f58901c11794c1e8d64747d39805a74" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="xaizek" -EMAIL="xaizek@posteo.net" diff --git a/development/pahole/slack-desc b/development/pahole/slack-desc deleted file mode 100644 index 26f5300a20..0000000000 --- a/development/pahole/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -pahole: pahole (shows and manipulates program's data structure layout) -pahole: -pahole: pahole shows data structure layouts encoded in debugging information -pahole: formats, DWARF and CTF being supported. -pahole: -pahole: This is useful for, among other things: optimizing important data -pahole: structures by reducing their size, figuring out what is the field -pahole: sitting at an offset from the start of a data structure, investigating -pahole: ABI changes and more generally understanding a new codebase you have -pahole: to work with. -pahole: diff --git a/development/protobuf3/gcc12.patch b/development/protobuf3/gcc12.patch new file mode 100644 index 0000000000..866977ecdb --- /dev/null +++ b/development/protobuf3/gcc12.patch @@ -0,0 +1,24 @@ +From b180b2809f7e77fdf7dd075d26a7421085bac58f Mon Sep 17 00:00:00 2001 +From: Adam Cozzette +Date: Mon, 9 May 2022 13:15:44 -0700 +Subject: [PATCH] Use __constinit only in GCC 12.2 and up (#9936) + +Fixes #9916. GCC appears to have a bug preventing our use of __constinit +from working correctly, but this bug will be fixed in GCC 12.2. +--- + src/google/protobuf/port_def.inc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc +index dcb0ff758f..289a42674c 100644 +--- a/src/google/protobuf/port_def.inc ++++ b/src/google/protobuf/port_def.inc +@@ -650,7 +650,7 @@ + (!defined(__APPLE__) && __clang_major__ >= 12)) + #define PROTOBUF_CONSTINIT [[clang::require_constant_initialization]] + #define PROTOBUF_CONSTEXPR constexpr +-#elif PROTOBUF_GNUC_MIN(12, 0) ++#elif PROTOBUF_GNUC_MIN(12, 2) + #define PROTOBUF_CONSTINIT __constinit + #define PROTOBUF_CONSTEXPR constexpr + #else diff --git a/development/protobuf3/protobuf3.SlackBuild b/development/protobuf3/protobuf3.SlackBuild index 0cef90a454..13395478c8 100644 --- a/development/protobuf3/protobuf3.SlackBuild +++ b/development/protobuf3/protobuf3.SlackBuild @@ -85,6 +85,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; patch -p1 < $CWD/protobuf3.patch +patch -p1 < $CWD/gcc12.patch ./autogen.sh CFLAGS="$SLKCFLAGS" \ diff --git a/development/splint/splint.SlackBuild b/development/splint/splint.SlackBuild index e7cf5025a8..1f0b956521 100644 --- a/development/splint/splint.SlackBuild +++ b/development/splint/splint.SlackBuild @@ -67,10 +67,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -automake --add-missing || true -autoreconf || true -automake --add-missing -autoreconf +autoreconf -vif CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/development/unittest-cpp/unittest-cpp.SlackBuild b/development/unittest-cpp/unittest-cpp.SlackBuild index 061e9fea38..223216bb2e 100644 --- a/development/unittest-cpp/unittest-cpp.SlackBuild +++ b/development/unittest-cpp/unittest-cpp.SlackBuild @@ -84,7 +84,7 @@ mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=uninitialized" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_BUILD_TYPE=Release .. diff --git a/games/scummvm/scummvm.SlackBuild b/games/scummvm/scummvm.SlackBuild index c17aa05fcd..f6587ca8d2 100644 --- a/games/scummvm/scummvm.SlackBuild +++ b/games/scummvm/scummvm.SlackBuild @@ -30,8 +30,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scummvm -VERSION=${VERSION:-2.5.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.6.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/games/scummvm/scummvm.info b/games/scummvm/scummvm.info index 5f4b94a939..f1d755c032 100644 --- a/games/scummvm/scummvm.info +++ b/games/scummvm/scummvm.info @@ -1,8 +1,8 @@ PRGNAM="scummvm" -VERSION="2.5.1" +VERSION="2.6.0" HOMEPAGE="https://www.scummvm.org/" -DOWNLOAD="https://downloads.scummvm.org/frs/scummvm/2.5.1/scummvm-2.5.1.tar.xz" -MD5SUM="79f7541e404f575a37bfa6be448c4046" +DOWNLOAD="https://downloads.scummvm.org/frs/scummvm/2.6.0/scummvm-2.6.0.tar.xz" +MD5SUM="0268450eb91bf4a735c8892bb0e3e50f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/games/supertux/gcc12.patch b/games/supertux/gcc12.patch new file mode 100644 index 0000000000..f5e7392c3c --- /dev/null +++ b/games/supertux/gcc12.patch @@ -0,0 +1,11 @@ +diff -upr SuperTux-v0.6.3-Source.orig/external/partio_zip/zip_manager.cpp SuperTux-v0.6.3-Source/external/partio_zip/zip_manager.cpp +--- SuperTux-v0.6.3-Source.orig/external/partio_zip/zip_manager.cpp 2021-12-23 01:01:58.000000000 +0200 ++++ SuperTux-v0.6.3-Source/external/partio_zip/zip_manager.cpp 2022-06-13 15:20:45.305976668 +0300 +@@ -47,6 +47,7 @@ extern "C"{ + #include + #include + #include ++#include + + #include "zip_manager.hpp" + diff --git a/games/supertux/missing-include-for-FLT_EPSILON.patch b/games/supertux/missing-include-for-FLT_EPSILON.patch new file mode 100644 index 0000000000..44bc370a74 --- /dev/null +++ b/games/supertux/missing-include-for-FLT_EPSILON.patch @@ -0,0 +1,13 @@ +diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp +index 41de52e..a8ebfc9 100644 +--- a/src/supertux/game_session.cpp ++++ b/src/supertux/game_session.cpp +@@ -14,6 +14,8 @@ + // You should have received a copy of the GNU General Public License + // along with this program. If not, see . + ++#include ++ + #include "supertux/game_session.hpp" + + #include "audio/sound_manager.hpp" diff --git a/games/supertux/supertux.SlackBuild b/games/supertux/supertux.SlackBuild index a492e216aa..26795a4bbd 100644 --- a/games/supertux/supertux.SlackBuild +++ b/games/supertux/supertux.SlackBuild @@ -84,6 +84,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/gcc12.patch +patch -p1 < $CWD/missing-include-for-FLT_EPSILON.patch + mkdir -p build cd build cmake \ diff --git a/games/warzone2100/warzone2100.SlackBuild b/games/warzone2100/warzone2100.SlackBuild index b204cfe184..ad018e98bf 100644 --- a/games/warzone2100/warzone2100.SlackBuild +++ b/games/warzone2100/warzone2100.SlackBuild @@ -92,7 +92,7 @@ mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=alloc-zero -Wno-error=array-bounds" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_MANDIR=/usr/man \ diff --git a/graphics/darktable/README b/graphics/darktable/README index 3b3bf0c2bb..41bdebb54d 100644 --- a/graphics/darktable/README +++ b/graphics/darktable/README @@ -13,6 +13,7 @@ darktable on x86_64 if possible. The i686 build will not give you a satisfactory user experience. As an absolute minimum, your processor must support SSE2 instructions (i.e. Pentium 4 or higher, or Athlon 64 or higher). +UPDATE: i*86 looks no more supported, sorry Optional dependencies @@ -23,6 +24,8 @@ colord - for colour profile management colord-gtk - for colour profile management osm-gps-map - for map georeferencing jsonschema - for checking noise profiles +libavif - for native AV1 image support +libheif - for AV1 and HEIF image support If you have nVidia or AMD/ATI graphics with more than 1Gb of memory, nvidia-driver (or nvidia-legacy340/304-driver) or amd-app-sdk is an diff --git a/graphics/darktable/darktable.SlackBuild b/graphics/darktable/darktable.SlackBuild index c7f3676018..fa3e585cc3 100644 --- a/graphics/darktable/darktable.SlackBuild +++ b/graphics/darktable/darktable.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=darktable -VERSION=${VERSION:-3.4.0} +VERSION=${VERSION:-4.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -89,7 +89,6 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_MANDIR=/usr/man \ - -DDONT_USE_INTERNAL_LUA=Off \ -DUSE_LIBSECRET=On \ -DBINARY_PACKAGE_BUILD=1 \ -DDONT_USE_INTERNAL_LUA=0 \ @@ -107,8 +106,6 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r # Fix the doc location mv $PKG/usr/share/doc $PKG/usr mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION -# Add a few missed docs -cp -a doc/ChangeLog doc/NEWS doc/TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild ( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM ) diff --git a/graphics/darktable/darktable.info b/graphics/darktable/darktable.info index 8825b51e24..f00997f906 100644 --- a/graphics/darktable/darktable.info +++ b/graphics/darktable/darktable.info @@ -1,10 +1,10 @@ PRGNAM="darktable" -VERSION="3.4.0" +VERSION="4.0.1" HOMEPAGE="https://www.darktable.org/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-3.4.0/darktable-3.4.0.tar.xz" -MD5SUM_x86_64="e360fbf37eb256ce8c31c2181e5197c2" +DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-4.0.1/darktable-4.0.1.tar.xz" +MD5SUM_x86_64="b63acce06ef91425f13387464cdec8ca" REQUIRES="gmic pugixml" MAINTAINER="David Spencer" EMAIL="baildon.research@googlemail.com" diff --git a/graphics/djview4/djview4.SlackBuild b/graphics/djview4/djview4.SlackBuild index ef2c76e027..1e17d62e23 100644 --- a/graphics/djview4/djview4.SlackBuild +++ b/graphics/djview4/djview4.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=djview4 -VERSION=${VERSION:-4.10.6} +VERSION=${VERSION:-4.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -75,7 +75,6 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/djview-$VERSION.tar.gz -mv djview-$VERSION djview4-$VERSION cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -84,10 +83,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -if [ "$QTDIR" == "/opt/kde3/lib/qt3" ]; then - QTDIR=$QT4DIR -fi +for i in $CWD/patches/* ; do patch -p1 < $i ; done + +autoreconf -fi +QMAKE=/usr/bin/qmake-qt5 \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/graphics/djview4/djview4.info b/graphics/djview4/djview4.info index 0352ccd371..57c567b276 100644 --- a/graphics/djview4/djview4.info +++ b/graphics/djview4/djview4.info @@ -1,8 +1,8 @@ PRGNAM="djview4" -VERSION="4.10.6" +VERSION="4.12" HOMEPAGE="http://djvu.sourceforge.net/djview4.html" -DOWNLOAD="https://sourceforge.net/projects/djvu/files/DjView/4.10/djview-4.10.6.tar.gz" -MD5SUM="f23205e9d04e4ee4c2324e1d0bae1d1f" +DOWNLOAD="https://downloads.sourceforge.net/djvu/djview-4.12.tar.gz" +MD5SUM="a91328d0fc949a97931511dcd983236b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/graphics/djview4/patches/0001-cross-build-pkg-config-info.patch b/graphics/djview4/patches/0001-cross-build-pkg-config-info.patch new file mode 100644 index 0000000000..2f2f46ea2c --- /dev/null +++ b/graphics/djview4/patches/0001-cross-build-pkg-config-info.patch @@ -0,0 +1,86 @@ +From: Helmut Grohne +Date: Thu, 4 Jan 2018 08:48:09 +0100 +Subject: cross build pkg-config info + +Issue: djview4 FTCBFS: uses custom, broken macro AC_PROG_PKG_CONFIG +See: https://bugs.debian.org/886304 + +djview4 fails to cross build from source, because it uses the build +architecture pkg-config rather than the host architecture one. This is +due to its use of AC_PROG_PKG_CONFIG, which fails to consider +$ac_tool_prefix. After replacing the macro with the upstream macro +PKG_PROG_PKG_CONFIG (from pkg.m4 in pkg-config), the build continues a +bit further and uses the wrong qmake. I need to discuss the qmake issue +with the qt people. Can you apply the attached patch anyway and close +this bug report when doing so? That'd make the qmake failure immediately +visible and thus easier to discuss. +--- + config/acinclude.m4 | 26 ++------------------------ + configure.ac | 3 ++- + 2 files changed, 4 insertions(+), 25 deletions(-) + +diff --git a/config/acinclude.m4 b/config/acinclude.m4 +index 3c78d41..2912000 100644 +--- a/config/acinclude.m4 ++++ b/config/acinclude.m4 +@@ -168,28 +168,6 @@ TIFFOpen(0,0); + + + +- +-dnl ------------------------------------------------------------------ +-dnl @synopsis AC_PROG_PKG_CONFIG([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) +-dnl Sets output variables PKG_CONFIG +-dnl ------------------------------------------------------------------ +- +- +-AC_DEFUN([AC_PROG_PKG_CONFIG], +-[ +- AC_ARG_VAR(PKG_CONFIG,[Location of the pkg-config program.]) +- AC_ARG_VAR(PKG_CONFIG_PATH, [Path for pkg-config descriptors.]) +- AC_PATH_PROG(PKG_CONFIG, pkg-config) +- if test -z "$PKG_CONFIG" ; then +- ifelse([$2],,:,[$2]) +- else +- ifelse([$1],,:,[$1]) +- fi +-]) +- +- +- +- + dnl ------------------------------------------------------------------ + dnl @synopsis AC_PATH_DDJVUUAPI([action-if-found],[action-if-notfound]) + dnl Search for ddjvuapi. Defines HAVE_DDJVUAPI. +@@ -198,7 +176,7 @@ dnl ------------------------------------------------------------------ + + AC_DEFUN([AC_PATH_DDJVUAPI], + [ +- AC_REQUIRE([AC_PROG_PKG_CONFIG]) ++ AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + AC_ARG_VAR(DDJVUAPI_LIBS, [Libraries for ddjvuapi]) + AC_ARG_VAR(DDJVUAPI_CFLAGS, [Compilation flags for ddjvuapi]) + AC_MSG_CHECKING([for ddjvuapi]) +@@ -236,7 +214,7 @@ dnl ------------------------------------------------------------------ + + AC_DEFUN([AC_PATH_GLIB], + [ +- AC_REQUIRE([AC_PROG_PKG_CONFIG]) ++ AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + AC_ARG_VAR(GLIB_LIBS, [Libraries for glib-2.0]) + AC_ARG_VAR(GLIB_CFLAGS, [Compilation flags for glib-2.0]) + AC_MSG_CHECKING([for glib]) +diff --git a/configure.ac b/configure.ac +index 473a456..e93aee8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -172,7 +172,8 @@ AC_CHECK_FUNCS(sigaction strerror waitpid wait3) + # Packages + # ---------------------------------------- + +-AC_PROG_PKG_CONFIG([],[ ++PKG_PROG_PKG_CONFIG ++AS_IF([test -z "$PKG_CONFIG"],[ + AC_MSG_ERROR([Cannot find required program pkg-config.]) + ]) + diff --git a/graphics/djview4/patches/0002-debian-changes.patch b/graphics/djview4/patches/0002-debian-changes.patch new file mode 100644 index 0000000000..059ede331b --- /dev/null +++ b/graphics/djview4/patches/0002-debian-changes.patch @@ -0,0 +1,3606 @@ +This is an autogenerated patch header for a single-debian-patch file. The +delta against upstream is either kept as a single patch, or maintained +in some VCS, and exported as a single patch instead of more manageable +atomic patches. + +--- djview4-4.12.orig/README_translations ++++ djview4-4.12/README_translations +@@ -49,11 +49,12 @@ CONTRIBUTORS + + Translations for djview were contributed by: + +-djview_cs.ts Petr Pisar +-djview_de.ts Marc Feld +-djview_es.ts Mike Molina +-djview_fr.ts Leon Bottou +-djview_ru.ts Alexander Potashev +-djview_uk.ts Yuri Chornoivan +-djview_zh_CN/TW.ts Lee Chenhwa ++djview_cs.ts Petr Pisar ++djview_de.ts Marc Feld ++djview_es.ts Mike Molina ++djview_fr.ts Leon Bottou ++djview_ru.ts Alexander Potashev ++djview_uk.ts Yuri Chornoivan ++djview_pl.ts Janusz S. Bień, Tomasz Świerczek ++djview_zh_CN/TW.ts Lee Chenhwa + +--- djview4-4.12.orig/config/acinclude.m4 ++++ djview4-4.12/config/acinclude.m4 +@@ -272,7 +272,7 @@ Unsetting them is better than setting th + path=$QTDIR/bin:$PATH + fi + if test -z "$QMAKE" ; then +- AC_PATH_PROGS([QMAKE], [qmake], [], [$path]) ++ AC_PATH_TOOL([QMAKE], [qmake], [], [$path]) + fi + if test -z "$QMAKE" ; then + AC_MSG_ERROR([Cannot find the Qt program qmake. +@@ -327,7 +327,7 @@ If you define QMAKESPEC, make sure it is + altrcc="rcc-${qtversion}" + altlupdate="lupdate-${qtversion}" + altlrelease="lrelease-${qtversion}" +- else ++ elif test `basename "$QMAKE"` = qmake ; then + AC_MSG_CHECKING([for real qmake path]) + test -x "$QT_INSTALL_BINS/qmake" && QMAKE="$QT_INSTALL_BINS/qmake" + AC_MSG_RESULT([$QMAKE]) +--- djview4-4.12.orig/mac/make_djview_bundle.sh ++++ djview4-4.12/mac/make_djview_bundle.sh +@@ -79,55 +79,51 @@ run rmdir $bundle/bin || exit + run ln -s ./MacOS $bundle/bin || exit + run ln -s ./MacOS $bundle/plugins || exit + +-# copy needed homebrew libraries +-for lib in $(otool -L $bundle/MacOS/ddjvu | awk '/^\t/{print $1}') ; do +- case "$lib" in +- $BREWDIR/*) +- libname=$(basename "$lib") +- test -r "./$bundle/lib/$libname" || \ +- run cp "$lib" "./$bundle/lib/$libname" || exit ;; +- esac +-done + + # copy needed qt plugins + ( cd "$QTDIR" ; \ + ls -1 plugins/{platforms,imageformats,styles,printsupport}/*.dylib | \ +- grep -v libqwebgl.dylib | \ +- grep -v _debug.dylib ) | \ ++ grep -v libqwebgl.dylib | \ ++ grep -v libqpdf.dylib | \ ++ grep -v libqsvg.dylib | \ ++ grep -v _debug.dylib ) | \ + while read plugin ; do + run mkdir -p $bundle/$(dirname "$plugin") || exit + run cp "$QTDIR/$plugin" $bundle/"$plugin" || exit + done + +- +- +-# copy needed libraries +-for loader in \ +- $bundle/MacOS/djview \ +- $bundle/MacOS/*/*.dylib +-do +- for lib in $(otool -L $loader | awk '/^\t/{print $1}') ++# copy needed libraries ++function getlibs() { ++ for loader in $* + do +- if [ $(basename "$lib") != $(basename "$loader") ] +- then +- case "$lib" in +- $BREWDIR/*) +- libname=$(basename "$lib") +- test -r "./$bundle/lib/$libname" || \ +- run cp "$lib" "./$bundle/lib/$libname" || exit ;; +- @rpath/*) +- libname=$(basename "$lib") +- lib="$QTDIR/lib${lib/#@rpath//}" +- test -r "./$bundle/lib/$libname" || \ +- run cp "$lib" "./$bundle/lib/$libname" || exit ;; +- $QTDIR/*) +- libname=$(basename "$lib") +- test -r "./$bundle/lib/$libname" || \ +- run cp "$lib" "./$bundle/lib/$libname" || exit ;; +- esac +- fi ++ for lib in $(otool -L $loader | awk '/^\t/{print $1}') ++ do ++ if [ $(basename "$lib") != $(basename "$loader") ] ++ then ++ case "$lib" in ++ $BREWDIR/*) ++ libname=$(basename "$lib") ++ test -r "./$bundle/lib/$libname" || \ ++ run cp "$lib" "./$bundle/lib/$libname" || exit ;; ++ @rpath/*) ++ libname=$(basename "$lib") ++ lib="$QTDIR/lib${lib/#@rpath//}" ++ test -r "./$bundle/lib/$libname" || \ ++ run cp "$lib" "./$bundle/lib/$libname" || exit ;; ++ $QTDIR/*) ++ libname=$(basename "$lib") ++ test -r "./$bundle/lib/$libname" || \ ++ run cp "$lib" "./$bundle/lib/$libname" || exit ;; ++ esac ++ fi ++ done + done +-done ++} ++getlibs $bundle/MacOS/ddjvu ++getlibs $bundle/MacOS/djview ++getlibs $bundle/MacOS/*/*.dylib ++getlibs $bundle/lib/Qt* ++getlibs $bundle/lib/*.dylib + + # copy translations + languages=$(ls -1 ../src/*.qm | sed -e 's/^[^_]*_//' -e 's/\.qm$//') +--- djview4-4.12.orig/mac/make_djview_dmg.sh ++++ djview4-4.12/mac/make_djview_dmg.sh +@@ -1,6 +1,6 @@ + #!/bin/bash + +-dmgname="DjVuLibre-3.5.27+DjView-4.10.6-intel64" ++dmgname="DjVuLibre-3.5.28+DjView-4.12-intel64-3" + + cd $(dirname $0) + if ! test -d DjView.app ; then +--- djview4-4.12.orig/src/djview.am ++++ djview4-4.12/src/djview.am +@@ -57,3 +57,5 @@ qmake_ts += djview_zh_cn.ts + qmake_qm += djview_zh_cn.qm + qmake_ts += djview_zh_tw.ts + qmake_qm += djview_zh_tw.qm ++qmake_ts += djview_pl.ts ++qmake_qm += djview_pl.qm +--- djview4-4.12.orig/src/djview.pro ++++ djview4-4.12/src/djview.pro +@@ -141,3 +141,4 @@ TRANSLATIONS += djview_ru.ts + TRANSLATIONS += djview_es.ts + TRANSLATIONS += djview_zh_cn.ts + TRANSLATIONS += djview_zh_tw.ts ++TRANSLATIONS += djview_pl.ts +--- /dev/null ++++ djview4-4.12/src/djview_pl.ts +@@ -0,0 +1,3389 @@ ++ ++ ++ ++ ++ Generic ++ ++ ++ thisLanguage ++ Name of THIS language ++ Polski ++ ++ ++ ++ QApplication ++ ++ ++ Option '-fix' is deprecated. ++ Opcja '-fix' jest przestarzała. ++ ++ ++ ++ QDjView ++ ++ ++ cannot open '%1'. ++ nie można otworzyć '%1'. ++ ++ ++ ++ FitWidth ++ zoomCombo ++ Dostosuj szerokość strony ++ ++ ++ ++ FitPage ++ zoomCombo ++ Dostosuj wielkość strony ++ ++ ++ ++ Stretch ++ zoomCombo ++ Rozciągnij ++ ++ ++ ++ 1:1 ++ zoomCombo ++ Wiernie (1:1) ++ ++ ++ ++ 300% ++ zoomCombo ++ 300% ++ ++ ++ ++ 200% ++ zoomCombo ++ 200% ++ ++ ++ ++ 150% ++ zoomCombo ++ 150% ++ ++ ++ ++ 100% ++ zoomCombo ++ 100% ++ ++ ++ ++ 75% ++ zoomCombo ++ 75% ++ ++ ++ ++ 50% ++ zoomCombo ++ 50% ++ ++ ++ ++ Color ++ modeCombo ++ Kolor ++ ++ ++ ++ Stencil ++ modeCombo ++ Translation not obvious, may be controversial ++ Maska ++ ++ ++ ++ Foreground ++ modeCombo ++ Loose controversial translation (~print layer) ++ Front ++ ++ ++ ++ Background ++ modeCombo ++ Tło ++ ++ ++ ++ Hidden Text ++ modeCombo ++ Tekst ukryty ++ ++ ++ ++ &New ++ File| ++ &Nowy ++ ++ ++ ++ Ctrl+N ++ File|New ++ Ctrl+N ++ ++ ++ ++ Create a new DjView window. ++ Otwórz nowe okno DjView. ++ ++ ++ ++ &Open ++ File| ++ &Otwórz ++ ++ ++ ++ Ctrl+O ++ File|Open ++ Ctrl-O ++ ++ ++ ++ Open a DjVu document. ++ Otwórz dokument DjVu. ++ ++ ++ ++ Open &Location... ++ File| ++ Otwórz &adres... ++ ++ ++ ++ Open a remote DjVu document. ++ Otwórz zdalny dokument DjVu. ++ ++ ++ ++ &Close ++ File| ++ &Zamknij ++ ++ ++ ++ Ctrl+W ++ File|Close ++ Ctrl+W ++ ++ ++ ++ Close this window. ++ Zamknij to okno. ++ ++ ++ ++ &Quit ++ File| ++ Za&kończ ++ ++ ++ ++ Ctrl+Q ++ File|Quit ++ Ctrl+Q ++ ++ ++ ++ Close all windows and quit the application. ++ Zamknij wszystkie okna i zakończ aplikację. ++ ++ ++ ++ Save &as... ++ File| ++ Zapisz &jako... ++ ++ ++ ++ Ctrl+S ++ File|SaveAs ++ Ctrl+S ++ ++ ++ ++ Save the DjVu document. ++ Zapisz dokument DjVu. ++ ++ ++ ++ &Export as... ++ File| ++ &Eksportuj jako... ++ ++ ++ ++ Ctrl+E ++ File|ExportAs ++ Ctrl+E ++ ++ ++ ++ Export DjVu page or document to other formats. ++ Eksportuj stronę lub cały dokument DjVu do innych formatów. ++ ++ ++ ++ &Print... ++ File| ++ &Drukuj... ++ ++ ++ ++ Ctrl+P ++ File|Print ++ Ctrl+P ++ ++ ++ ++ Print the DjVu document. ++ Drukuj dokument DjVu. ++ ++ ++ ++ &Find... ++ Edit| ++ &Znajdź... ++ ++ ++ ++ Ctrl+F ++ Edit|Find ++ Ctrl+F ++ ++ ++ ++ Find text in the document. ++ Znajdź tekst w dokumencie. ++ ++ ++ ++ Find &Next ++ Edit| ++ Znajdź &następny ++ ++ ++ ++ F3 ++ Edit|Find Next ++ F3 ++ ++ ++ ++ Find next occurrence of search text in the document. ++ Znajdź następne wystąpienie szukanego tekstu w dokumencie. ++ ++ ++ ++ Find &Previous ++ Edit| ++ Znajdź &poprzedni ++ ++ ++ ++ Shift+F3 ++ Edit|Find Previous ++ Shift+F3 ++ ++ ++ ++ Find previous occurrence of search text in the document. ++ Znajdź poprzednie wystąpienie szukanego tekstu w dokumencie. ++ ++ ++ ++ &Select ++ Edit| ++ &Wybierz ++ ++ ++ ++ F2 ++ Edit|Select ++ F2 ++ ++ ++ ++ Select a rectangle in the document. ++ Zaznacz prostokąt w dokumencie. ++ ++ ++ ++ Zoom &In ++ Zoom| ++ &Powiększ ++ ++ ++ ++ Increase the magnification. ++ Zwiększ powiększenie. ++ ++ ++ ++ Zoom &Out ++ Zoom| ++ &Zmniejsz ++ ++ ++ ++ Decrease the magnification. ++ Zmniejsz powiększenie. ++ ++ ++ ++ Fit &Width ++ Zoom| ++ Dostosuj &szerokość strony ++ ++ ++ ++ Set magnification to fit page width. ++ Dostosuj powiększenie do szerokości strony. ++ ++ ++ ++ Fit &Page ++ Zoom| ++ Dostosuj wielość &trony ++ ++ ++ ++ Set magnification to fit page. ++ Dostosuj powiększenie do wielkości strony. ++ ++ ++ ++ One &to one ++ Zoom| ++ Jeden &do jednego ++ ++ ++ ++ Set full resolution magnification. ++ Ustaw powiększenie zgodne z pełną rozdzielczością. ++ ++ ++ ++ &300% ++ Zoom| ++ &300% ++ ++ ++ ++ Magnify 300% ++ Powiększ 300% ++ ++ ++ ++ &200% ++ Zoom| ++ &200% ++ ++ ++ ++ Magnify 20% ++ Powiększ 20% ++ ++ ++ ++ &150% ++ Zoom| ++ &150% ++ ++ ++ ++ Magnify 150% ++ Powiększ 150% ++ ++ ++ ++ &100% ++ Zoom| ++ &100% ++ ++ ++ ++ Magnify 100% ++ Powiększ 100% ++ ++ ++ ++ &75% ++ Zoom| ++ &75% ++ ++ ++ ++ Magnify 75% ++ Powiększ 75% ++ ++ ++ ++ &50% ++ Zoom| ++ &50% ++ ++ ++ ++ Magnify 50% ++ Powiększ 50% ++ ++ ++ ++ &First Page ++ Go| ++ &Pierwsza strona ++ ++ ++ ++ Jump to first document page. ++ Przejdź do pierwszej strony dokumentu. ++ ++ ++ ++ &Next Page ++ Go| ++ &Następna strona ++ ++ ++ ++ Jump to next document page. ++ Przejdź do następnej strony dokumentu. ++ ++ ++ ++ &Previous Page ++ Go| ++ P&oprzednia strona ++ ++ ++ ++ Jump to previous document page. ++ Przejdź do poprzedniej strony dokumentu. ++ ++ ++ ++ &Last Page ++ Go| ++ &Ostatnia strona ++ ++ ++ ++ Jump to last document page. ++ Przejdź do ostatniej strony dokumentu. ++ ++ ++ ++ &Backward ++ Go| ++ &Wstecz ++ ++ ++ ++ Backward in history. ++ Cofnij się w historii. ++ ++ ++ ++ &Forward ++ Go| ++ &Naprzód ++ ++ ++ ++ Forward in history. ++ Przejdź do przodu w historii. ++ ++ ++ ++ Rotate &Left ++ Rotate| ++ Obróć w &lewo ++ ++ ++ ++ Rotate page image counter-clockwise. ++ Obróć obraz strony w kierunku przeciwnym do ruchu wskazówek zegara. ++ ++ ++ ++ Rotate &Right ++ Rotate| ++ Obróć w &prawo ++ ++ ++ ++ Rotate page image clockwise. ++ Obróć obraz strony w kierunku ruchu wskazówek zegara. ++ ++ ++ ++ Set natural page orientation. ++ Ustaw naturalna orientację strony. ++ ++ ++ ++ Turn page on its left side. ++ Obróć stronę na lewy bok. ++ ++ ++ ++ Turn page upside-down. ++ Obróć stronę do góry nogami. ++ ++ ++ ++ Turn page on its right side. ++ Obróć stronę na prawy bok. ++ ++ ++ ++ &Information... ++ Edit| ++ &Informacje... ++ ++ ++ ++ Ctrl+I ++ Edit|Information ++ Ctrl+I ++ ++ ++ ++ Show information about the document encoding and structure. ++ Pokaż informacje o kodowaniu dokumentu i jego strukturze. ++ ++ ++ ++ &Metadata... ++ Edit| ++ &Metadane... ++ ++ ++ ++ Ctrl+M ++ Edit|Metadata ++ Ctrl+M ++ ++ ++ ++ Show the document and page meta data. ++ Pokaż metadane dokumentu i strony. ++ ++ ++ ++ &About DjView... ++ &O DjView... ++ ++ ++ ++ Show information about this program. ++ Pokaż informacje o tym programie. ++ ++ ++ ++ &Color ++ Display| ++ &Kolor ++ ++ ++ ++ Display everything. ++ Wyświetl wszystkie warstwy. ++ ++ ++ ++ &Stencil ++ Display| ++ &Maska ++ ++ ++ ++ Only display the document bitonal stencil. ++ Wyświetl tylko bitonalną maskę. ++ ++ ++ ++ &Foreground ++ Display| ++ &Front ++ ++ ++ ++ Only display the foreground layer. ++ Wyświetl tylko warstwę frontową. ++ ++ ++ ++ &Background ++ Display| ++ &Tło ++ ++ ++ ++ Only display the background layer. ++ Wyświetl tylko warstwę tła. ++ ++ ++ ++ &Hidden Text ++ Display| ++ &Tekst ukryty ++ ++ ++ ++ Overlay a representation of the hidden text layer. ++ Nałóż na obraz reprezentację tekstu ukrytego. ++ ++ ++ ++ I&nvert Luminance ++ View| ++ &Odwróć luminancję ++ ++ ++ ++ Invert image luminance while preserving hue. ++ Odwróć luminancję obrazu zachowując nasycenie. ++ ++ ++ ++ Prefere&nces... ++ Settings| ++ &Ustawienia... ++ ++ ++ ++ Show the preferences dialog. ++ Pokaż dialog ustawień. ++ ++ ++ ++ Show &Sidebar ++ Settings| ++ Pokaż panel &boczny ++ ++ ++ ++ F9 ++ Settings|Show sidebar ++ F9 ++ ++ ++ ++ Alt+Ctrl+S ++ Settings|Show sidebar ++ Alt+Ctrl+S ++ ++ ++ ++ Show/hide the side bar. ++ Pokaż/ukryj panel boczny. ++ ++ ++ ++ Show &Toolbar ++ Settings| ++ Pokaż pasek &narzędzi ++ ++ ++ ++ F10 ++ Settings|Show toolbar ++ F10 ++ ++ ++ ++ Alt+Ctrl+T ++ Settings|Show toolbar ++ Alt+Ctrl+T ++ ++ ++ ++ Show/hide the standard tool bar. ++ Pokaż/ukryj standardowy pasek narzędzi. ++ ++ ++ ++ Show Stat&usbar ++ Settings| ++ Pokaż pasek &stanu ++ ++ ++ ++ Show/hide the status bar. ++ Pokaż/ukryj pasek stanu. ++ ++ ++ ++ Alt+Ctrl+/ ++ Settings|Show toolbar ++ Alt+Ctrl+/ ++ ++ ++ ++ &Full Screen ++ View| ++ &Pełny ekran ++ ++ ++ ++ F11 ++ View|FullScreen ++ F11 ++ ++ ++ ++ Meta+Ctrl+F ++ View|FullScreen ++ Meta+Ctrl+F ++ ++ ++ ++ Toggle full screen mode. ++ Włącz lub wyłącz tryb pełnoekranowy. ++ ++ ++ ++ &Slide Show ++ View| ++ &Pokaz slajdów ++ ++ ++ ++ Shift+F11 ++ View|Slideshow ++ Shift+F11 ++ ++ ++ ++ Shift+Ctrl+F ++ Settings|Show toolbar ++ Shift+Ctrl+F ++ ++ ++ ++ Toggle slide show mode. ++ Włącz lub wyłącz tryb pokazu slajdów. ++ ++ ++ ++ &Continuous ++ Layout| ++ Wyświetlanie &ciągłe ++ ++ ++ ++ F4 ++ Layout|Continuous ++ F4 ++ ++ ++ ++ Toggle continuous layout mode. ++ Włącz lub wyłącz tryb wyświetlania ciągłego. ++ ++ ++ ++ Side &by Side ++ Layout| ++ &Dwie strony obok siebie ++ ++ ++ ++ F5 ++ Layout|SideBySide ++ F5 ++ ++ ++ ++ Toggle side-by-side layout mode. ++ Włącz lub wyłącz wyświetlanie dwóch stron obok siebie. ++ ++ ++ ++ Co&ver Page ++ Layout| ++ Strona &tytułowa ++ ++ ++ ++ F6 ++ Layout|CoverPage ++ F6 ++ ++ ++ ++ Show the cover page alone in side-by-side mode. ++ Pokaż osobno stronę tytułową w trybie wyświetlania stron obok siebie. ++ ++ ++ ++ &Right to Left ++ Layout| ++ Z &prawej do lewej ++ ++ ++ ++ Shift+F6 ++ Layout|RightToLeft ++ Shift+F6 ++ ++ ++ ++ Show pages right-to-left in side-by-side mode. ++ Pokazuj strony od prawej do lewej w trybie obok siebie. ++ ++ ++ ++ Copy &URL ++ Edit| ++ Kopiuj &URL ++ ++ ++ ++ Save an URL for the current page into the clipboard. ++ Skopiuj do schowka URL bieżącej strony. ++ ++ ++ ++ Ctrl+C ++ Edit|CopyURL ++ Ctrl+C ++ ++ ++ ++ Copy &Outline ++ Edit| ++ Kopiuj &zakładki ++ ++ ++ ++ Save the djvused code for the outline into the clipboard. ++ Skopiuj do schowka zakładki w formacie djvused. ++ ++ ++ ++ Copy &Annotations ++ Edit| ++ Kopiuj &adnotacje ++ ++ ++ ++ Save the djvused code for the page annotations into the clipboard. ++ Skopiuj do schowka adnotacje w formacie djvused. ++ ++ ++ ++ &File ++ File| ++ &Plik ++ ++ ++ ++ Open &Recent ++ Otwórz &poprzednie ++ ++ ++ ++ &Edit ++ Edit| ++ &Edytuj ++ ++ ++ ++ &View ++ View| ++ &Widok ++ ++ ++ ++ ++ &Zoom ++ View|Zoom ++ &Skaluj ++ ++ ++ ++ ++ &Rotate ++ View|Rotate ++ &Obróć ++ ++ ++ ++ ++ &Display ++ View|Display ++ &Pokaż ++ ++ ++ ++ ++ &Go ++ Go| ++ &Przejdź ++ ++ ++ ++ &Settings ++ Settings| ++ &Ustawienia ++ ++ ++ ++ &Help ++ Help| ++ &Pomoc ++ ++ ++ ++ Control Left Mouse Button ++ Control i lewy klawisz myszy ++ ++ ++ ++ Right Mouse Button ++ Prawy klawisz myszy ++ ++ ++ ++ <html><b>Selecting a rectangle.</b><br/> Once a rectangular area is selected, a popup menu lets you copy the corresponding text or image. Instead of using this tool, you can also hold %1 and use the Left Mouse Button.</html> ++ <html><b>Zaznaczenie prostokąta.</b><br/>Po zaznaczeniu prostokąta pojawi się menu podręczne pozwalające skopiować odpowiedni tekst lub obraz. Zamiast używać tego sposobu, można również przytrzymać %1 i użyć lewego klawisza myszy.</html> ++ ++ ++ ++ <html><b>Zooming.</b><br/> Choose a zoom level for viewing the document. Zoom level 100% displays the document for a 100 dpi screen. Zoom levels <tt>Fit Page</tt> and <tt>Fit Width</tt> ensure that the full page or the page width fit in the window. </html> ++ <html><b>Skalowanie.</b><br/> Wybierz stopień powiększenia lub zmniejszenia wyświetlanego dokumentu.Wartość 100% jest odpowiednia dla ekranu o rozdzielczości 100dpi. Wartości <tt>Dostosuj do strony</tt> i <tt>Dostosuj do szerokości</tt>gwarantują, że odpowiednio cała strona lub cała szerokość strony zmieszczą się w oknie. </html> ++ ++ ++ ++ <html><b>Rotating the pages.</b><br/> Choose to display pages in portrait or landscape mode. You can also turn them upside down.</html> ++ <html><b>Obracanie strony.</b><br/> Wybór wyświetlania strony w trybie portretowym lub krajobrazowym. Można również obrócić stronę do góry nogami.</html> ++ ++ ++ ++ <html><b>Display mode.</b><br/> DjVu images compose a background layer and a foreground layer using a stencil. The display mode specifies with layers should be displayed.</html> ++ <html><b>Tryb wyświetlania.</b><br/> Obrazy DjVu są tworzone z warstw frontu i tła za pomocą maski. Tryb wyświetlania określa, które warstwy będą wyświetlane.</html> ++ ++ ++ ++ <html><b>Navigating the document.</b><br/> The page selector lets you jump to any page by name and can be activated at any time by pressing Ctrl+G. The navigation buttons jump to the first page, the previous page, the next page, or the last page. </html> ++ <html><b>Nawigacja w dokumencie.</b><br/> Selektor strony pozwala przejść do dowolnej strony i może być aktywowany w dowolnym momencie przez naciśnięcie CTRL+G. Przyciski nawigacyjne powodują przejście do pierwszej, poprzedniej, następnej lub ostatniej strony. </html> ++ ++ ++ ++ <html><b>Document and page information.</b><br> Display a dialog window for viewing encoding information pertaining to the document or to a specific page.</html> ++ <html><b>Informacje o stronie i dokumentacje.</b><br> Pokaż okno dialogowe w celu wyświetlenia informacji o kodowaniu dotyczącej dokumentu lub konkretnej strony.</html> ++ ++ ++ ++ <html><b>Document and page metadata.</b><br> Display a dialog window for viewing metadata pertaining to the document or to a specific page.</html> ++ <html><b>Metadane dokumentu i strony.</b><br> Pokaż okno dialogowe w celu wyświetlenia metadanych dotyczących dokumentu lub konkretnej strony.</html> ++ ++ ++ ++ <html><b>Continuous layout.</b><br/> Display all the document pages arranged vertically inside the scrollable document viewing area.</html> ++ <html><b>Wyświetlanie ciągłe.</b><br/> Wyświetl wszystkie strony dokumentu ustawione pionowe wewnątrz przewijalnego obszaru wyświetlania.</html> ++ ++ ++ ++ <html><b>Side by side layout.</b><br/> Display pairs of pages side by side inside the scrollable document viewing area.</html> ++ <html><b>Wyświetlanie stron obok siebie.</b><br/> Wyświetlaj dwie strony obok siebie wewnątrz przewijalnego obszaru wyświetlania.</html> ++ ++ ++ ++ <html><b>Page information.</b><br/> Display information about the page located under the cursor: the sequential page number, the page size in pixels, and the page resolution in dots per inch. </html> ++ <html><b>Informacja o stronie.</b><br/> Wyświetl informacje o stronie znajdującej się pod kursorem: numer kolejny, rozmiar strony w pikselach i rozdzielczość strony w punktach na cal. </html> ++ ++ ++ ++ <html><b>Cursor information.</b><br/> Display the position of the mouse cursor expressed in page coordinates. </html> ++ <html><b>Informacja o kursorze.</b><br/> Wyświetl pozycję kursora wyrażoną we współrzędnych strony. </html> ++ ++ ++ ++ <html><b>Document viewing area.</b><br/> This is the main display area for the DjVu document. <ul><li>Arrows and page keys to navigate the document.</li><li>Space and BackSpace to read the document.</li><li>Keys <tt>+</tt> <tt>-</tt> <tt>[</tt> <tt>]</tt> to zoom or rotate the document.</li><li>Left Mouse Button for panning and selecting links.</li><li>%3 for displaying the contextual menu.</li><li>%1 Left Mouse Button for selecting text or images.</li><li>%2 for popping the magnification lens.</li></ul></html> ++ <html><b>Obszar wyświetlania dokumentu.</b><br/> To jest główny obszar wyświetlania dokumentu DjVu. <ul><li>Klawisze strzałek i strony nawigują w dokumencie.</li><li>Space i BackSpace przewijają dokument.</li><li>Klawisze <tt>+</tt> <tt>-</tt> <tt>[</tt> <tt>]</tt> skalują lub obracają dokument.</li><li>Lewy klawisz myszy pozycjonuje i wybiera.hiperłącza</li><li>%3 wyświetla menu kontekstowe.</li><li>%1 lewy klawisz myszy wybiera tekst lub obraz.</li><li>%2 uaktywnia lupę.</li></ul></html> ++ ++ ++ ++ <html><b>Document viewing area.</b><br/> This is the main display area for the DjVu document. But you must first open a DjVu document to see anything.</html> ++ <html><b>Obszar wyświetlania dokumentu.</b><br/> To jest główny obszar wyświetlania dokumentu DjVu. Aby cokolwiek zobaczyć trzeba najpierw otworzyć jakiś dokument DjVu.</html> ++ ++ ++ ++ Option '%1' requires boolean argument. ++ Opcja '%1' wymaga argumentu boolowskiego. ++ ++ ++ ++ Illegal value '%2' for option '%1'. ++ Niepoprawna wartość '%2' dla opcji '%1'. ++ ++ ++ ++ Toolbar option '%1' is not implemented. ++ Opcja paska narzędziowego '%1' nie jest zaimplementowana. ++ ++ ++ ++ Toolbar option '%1' is not recognized. ++ Opcja paska narzędzi '%1' nie jest rozpoznana. ++ ++ ++ ++ ++ Option '%1' requires a standalone viewer. ++ Opcja '%1' wymaga samodzielnej przeglądarki. ++ ++ ++ ++ Deprecated option '%1' ++ Przestarzała opcja '%1' ++ ++ ++ ++ Option '%1' is not implemented. ++ Opcja '%1' nie jest zaimplementowana. ++ ++ ++ ++ Option '%1' is not recognized. ++ Opcja '%1' nie jest rozpoznana. ++ ++ ++ ++ ++ DjView ++ DjView ++ ++ ++ ++ Thumbnails ++ Miniaturki ++ ++ ++ ++ Outline ++ Zakładki ++ ++ ++ ++ Find ++ Znajdź ++ ++ ++ ++ Cannot open file '%1'. ++ Nie można otworzyć pliku '%1'. ++ ++ ++ ++ Opening DjVu file ++ Otwieranie pliku DjVu ++ ++ ++ ++ Cannot open URL '%1'. ++ Nie można otworzyć URL '%1'. ++ ++ ++ ++ Opening DjVu document ++ Otwieranie dokumentu DjVu ++ ++ ++ ++ Certificate validation error - DjView ++ dialog caption ++ Błąd weryfikacji certyfikatu - DjView ++ ++ ++ ++ <html> %1 Do you want to continue anyway? </html> ++ <html> %1 Czy chcesz mimo to kontynuować? </html> ++ ++ ++ ++ Cannot find page numbered: %1 ++ Nie można znaleźć strony o numerze: %1 ++ ++ ++ ++ ++ Cannot find page named: %1 ++ Nie można znaleźć strony nazwanej %1 ++ ++ ++ ++ Unrecognized sidebar options '%1'. ++ Nierozpoznana opcja panelu bocznego '%1'. ++ ++ ++ ++ ++ Print - DjView ++ dialog caption ++ Drukuj - DjView ++ ++ ++ ++ <html> This file was served with printing restrictions. Do you want to print it anyway?</html> ++ <html> Ten plik został udostępniony z ograniczeniami drukowania. Czy drukować mimo tego?</html> ++ ++ ++ ++ ++ Save - DjView ++ dialog caption ++ Zapisz - DjView ++ ++ ++ ++ <html> This file was served with saving restrictions. Do you want to save it anyway?</html> ++ <html> Ten plik został udostępniony z ograniczeniami zapisywania. Czy zapisać mimo tego?</html> ++ ++ ++ ++ Export - DjView ++ dialog caption ++ Eksport - DjView ++ ++ ++ ++ Text files ++ save filter ++ Pliki tekstowe ++ ++ ++ ++ ++ All files ++ save filter ++ Wszystkie pliki ++ ++ ++ ++ Save Text - DjView ++ dialog caption ++ Zapisz tekst - DjView ++ ++ ++ ++ ++ ++ Error - DjView ++ dialog caption ++ Błąd - DjView ++ ++ ++ ++ ++ Cannot write file '%1'. ++%2. ++ Nie można zapisać pliku '%1'. ++%2. ++ ++ ++ ++ %1 files (*.%2);; ++ save image filter ++ Translation depends on the numer: 1 plik, 2 pliki, 5 plików,..,101 plik etc. ++ %1 plików (*.%2);; ++ ++ ++ ++ Save Image - DjView ++ dialog caption ++ Zapisz obraz - DjView ++ ++ ++ ++ Cannot determine file format. ++Filename '%1' has no suffix. ++ Nie można rozpoznać formatu pliku. ++Nazwa pliku '%1' nie ma rozszerzenia. ++ ++ ++ ++ Image format %1 not supported. ++ Format obrazu %1 nie jest obsługiwany. ++ ++ ++ ++ Cannot decode page %1. ++ Nie można zdekodować strony %1. ++ ++ ++ ++ Cannot decode document. ++ Nie można zdekodować dokumentu. ++ ++ ++ ++ Decoding DjVu document ++ Dekodowanie dokumentu DjVu ++ ++ ++ ++ P%1/%2 %3x%4 %5dpi ++ P%1/%2 %3x%4 %5dpi ++ ++ ++ ++ x=%1 y=%2 ++ x=%1 y=%2 ++ ++ ++ ++ %3x%4+%1+%2 ++ %3x%4+%1+%2 ++ ++ ++ ++ Go: 1 page forward. ++ Przejdź: 1 strona naprzód. ++ ++ ++ ++ Go: %n pages forward. ++ ++ Przejdź: %n strona naprzód. ++ Przejdź: %n strony naprzód. ++ Przejdź: %n stron naprzód. ++ ++ ++ ++ ++ Go: 1 page backward. ++ Przejdź: 1 strona wstecz. ++ ++ ++ ++ Go: %n pages backward. ++ ++ Przejdź: %n strona wstecz. ++ Przejdź: %n strony wstecz. ++ Przejdź: %n stron wstecz. ++ ++ ++ ++ ++ ++ Go: page %1. ++ Przejdź: strona %1. ++ ++ ++ ++ Go: %1 ++ Przejdź: %1 ++ ++ ++ ++ (in other window.) ++ (w osobnym oknie.) ++ ++ ++ ++ Cannot resolve link '%1' ++ Nie działa hiperłącze '%1' ++ ++ ++ ++ %n characters ++ ++ %n znak ++ %n znaki ++ %n znaków ++ ++ ++ ++ ++ Copy text (%1) ++ Kopiuj tekst (%1) ++ ++ ++ ++ Save text as... ++ Zapisz tekst jako... ++ ++ ++ ++ Copy text into the clipboard. ++ Skopiuj tekst do schowka. ++ ++ ++ ++ Save text into a file. ++ Zapisz tekst w pliku. ++ ++ ++ ++ Copy image (%1x%2 pixels) ++ Kopiuj obraz (%1x%2 piksele) ++ ++ ++ ++ Save image as... ++ Zapisz obraz jako... ++ ++ ++ ++ Copy image into the clipboard. ++ Skopiuj obraz do schowka. ++ ++ ++ ++ Save image into a file. ++ Zapisz obraz w pliku. ++ ++ ++ ++ Zoom to rectangle ++ Powiększ zaznaczenie ++ ++ ++ ++ Zoom the selection to fit the window. ++ Powiększ zaznaczenia na całe okno. ++ ++ ++ ++ Copy URL ++ Kopiuj URL ++ ++ ++ ++ Save into the clipboard an URL that highlights the selection. ++ Zapisz w schowku adres URL który podświetla zaznaczenie. ++ ++ ++ ++ Copy Maparea ++ Kopiuj obszar adnotacji ++ ++ ++ ++ Save into the clipboard a maparea annotation expression for program djvused. ++ Kopiuj do schowka obszar adnotacji w formacie djvused. ++ ++ ++ ++ About DjView ++ O DjView ++ ++ ++ ++ DjVu files ++ Pliki DjVu ++ ++ ++ ++ All files ++ Wszystkie pliki ++ ++ ++ ++ Open - DjView ++ dialog caption ++ Otwórz - DjView ++ ++ ++ ++ Open Location - DjView ++ dialog caption ++ Otwórz adres - DjView ++ ++ ++ ++ Enter the URL of a DjVu document: ++ Wpisz URL dokumentu DjVu: ++ ++ ++ ++ Information - DjView ++ dialog caption ++ Informacje - DjView ++ ++ ++ ++ Metadata - DjView ++ dialog caption ++ Metadane - DjView ++ ++ ++ ++ &Clear History ++ &Wyczyść historię ++ ++ ++ ++ QDjView::NetOpen ++ ++ ++ Cannot open URL '%1'. ++ Nie można otworzyć URL '%1'. ++ ++ ++ ++ Opening DjVu document ++ Otwieranie dokumentu DjVu ++ ++ ++ ++ Cannot spawn a browser for url '%1' ++ Nie można uruchomić przeglądarki dla URL '%1' ++ ++ ++ ++ QDjViewApplication ++ ++ ++ cannot open '%1'. ++ nie można otworzyć '%1'. ++ ++ ++ ++ Usage: djview [options] [filename-or-url] ++Common options include: ++-help~~~Prints this message. ++-verbose~~~Prints all warning messages. ++-display <xdpy>~~~Select the X11 display <xdpy>. ++-geometry <xgeom>~~~Select the initial window geometry. ++-font <xlfd>~~~Select the X11 name of the main font. ++-style <qtstyle>~~~Select the QT user interface style. ++-fullscreen, -fs~~~Start djview in full screen mode. ++-page=<page>~~~Jump to page <page>. ++-zoom=<zoom>~~~Set zoom factor. ++-continuous=<yn>~~~Set continuous layout. ++-sidebyside=<yn>~~~Set side-by-side layout. ++ ++ Are the options really common? ++ Użycie: djview [opcje] [plik-lub-URL] ++Ważniejsze opcje: ++-help~~~Drukuj ten komunikat. ++-verbose~~~Drukuj wszystkie ostrzeżenia. ++-display <xdpy>~~~Wybierz obszar X11 <xdpy>. ++-geometry <xgeom>~~~Wybierz początkową geometrię okna. ++-font <xlfd>~~~Wybierz nazwę X11 głównego fontu. ++-style <qtstyle>~~~Wybierz styl interfejsu QT. ++-fullscreen, -fs~~~Uruchom djview w trybie pełnoekranowym. ++-page=<page>~~~Przejdź do strony <page>. ++-zoom=<zoom>~~~Ustaw wartość skalowania. ++-continuous=<yn>~~~Ustaw wyświetlanie ciągłe. ++-sidebyside=<yn>~~~Ustaw wyświetlanie stron obok siebie. ++ ++ ++ ++ ++ QDjViewAuthDialog ++ ++ ++ Password: ++ Hasło: ++ ++ ++ ++ User: ++ Użytkownik: ++ ++ ++ ++ Authentication required - DjView ++ Wymagane uwierzytelnienie - DjView ++ ++ ++ ++ QDjViewDjVuExporter ++ ++ ++ DjVu Bundled Document ++ Dokument scalony DjVu ++ ++ ++ ++ ++ DjVu Files (*.djvu *.djv) ++ Pliki DjVu (*.djvu *.djv) ++ ++ ++ ++ DjVu Indirect Document ++ Dokument rozłożony DjVu ++ ++ ++ ++ Question - DjView ++ dialog caption ++ Pytanie - DjView ++ ++ ++ ++ <html> This file belongs to a non empty directory. Saving an indirect document creates many files in this directory. Do you want to continue and risk overwriting files in this directory?</html> ++ <html> Ten plik należy do niepustego katalogu.Zapisanie dokumentu rozłożonego stworzy wiele plików w tym katalogu. Czy kontynuować ryzykując zastąpienie plików w tym katalogu?</html> ++ ++ ++ ++ Con&tinue ++ &Kontynuuj ++ ++ ++ ++ &Cancel ++ &Anuluj ++ ++ ++ ++ Unknown error. ++ Nieznany błąd. ++ ++ ++ ++ System error: %1. ++ Błąd systemowy: %1. ++ ++ ++ ++ Save job creation failed! ++ Nie powiodło się utworzenie zadania zapisywania! ++ ++ ++ ++ QDjViewErrorDialog ++ ++ ++ ++ DjView Error ++ Błąd DjView ++ ++ ++ ++ &Ok ++ &OK ++ ++ ++ ++ Error - DjView ++ dialog caption ++ Błąd - DjView ++ ++ ++ ++ QDjViewExportDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ ++ Export ++ Eksport ++ ++ ++ ++ &Document ++ &Dokument ++ ++ ++ ++ C&urrent page ++ &Bieżąca strona ++ ++ ++ ++ &Pages ++ &Strony ++ ++ ++ ++ to ++ do ++ ++ ++ ++ Destination ++ Plik wynikowy ++ ++ ++ ++ Format: ++ Format: ++ ++ ++ ++ &Defaults ++ D&omyślne ++ ++ ++ ++ &Ok ++ &OK ++ ++ ++ ++ ++ &Cancel ++ &Anuluj ++ ++ ++ ++ Stop ++ Stop ++ ++ ++ ++ <html><b>Saving.</b><br/> You can save the whole document or a page range under a variety of formats. Selecting certain formats creates additional dialog pages for specifying format options.</html> ++ <html><b>Zapisywanie.</b><br/> Można zapisać cały dokument lub zakres stron w jednym z kilku formatów. Wybór niektórych formatów otworzy dodatkowe strony dialogowe z parametrami specyficznymi dla danego formatu.</html> ++ ++ ++ ++ Error - DjView ++ dialog caption ++ Błąd - DjView ++ ++ ++ ++ Overwriting the current file is not allowed! ++ Nie można zastąpić bieżącego pliku! ++ ++ ++ ++ Question - DjView ++ dialog caption ++ Pytanie - DjView ++ ++ ++ ++ A file with this name already exists. ++Do you want to replace it? ++ Plik o tej nazwie już istnieje ++Czy go zastąpić? ++ ++ ++ ++ &Replace ++ &Zastąp ++ ++ ++ ++ This operation has failed. ++ Ta operacja nie powiodła się. ++ ++ ++ ++ This operation has been interrupted. ++ Ta operacja została przerwana. ++ ++ ++ ++ All files ++ save filter ++ Wszystkie pliki ++ ++ ++ ++ Export - DjView ++ dialog caption ++ Eksport - DjView ++ ++ ++ ++ QDjViewExportPS1 ++ ++ ++ Form ++ Not sure about the meaning ++ Formularz ++ ++ ++ ++ Color ++ Kolorystyka ++ ++ ++ ++ &Color ++ &Kolor ++ ++ ++ ++ &GrayScale ++ &Skala szarości ++ ++ ++ ++ Marks ++ Znaczniki ++ ++ ++ ++ Print image &frame ++ Drukuj z &ramką ++ ++ ++ ++ Print crop &marks ++ Zaznacz &cięcia ++ ++ ++ ++ PostScript ++ PostScript ++ ++ ++ ++ Language Level ++ Poziom języka ++ ++ ++ ++ QDjViewExportPS2 ++ ++ ++ Form ++ Formularz ++ ++ ++ ++ Scaling ++ Skalowanie ++ ++ ++ ++ Scale to &fit the page ++ Dopasuj do &strony ++ ++ ++ ++ &Zoom ++ &Skala ++ ++ ++ ++ % ++ % ++ ++ ++ ++ Orientation ++ Orientacja ++ ++ ++ ++ Automatic ++ Automatyczna ++ ++ ++ ++ &Portrait ++ &Portret ++ ++ ++ ++ &Landscape ++ &Krajobraz ++ ++ ++ ++ QDjViewExportPS3 ++ ++ ++ Form ++ Formularz ++ ++ ++ ++ Print sheets suitable for folding a booklet. ++ Drukuj strony do złożenia w broszurę. ++ ++ ++ ++ Advanced ++ Zaawansowane ++ ++ ++ ++ Sheets per booklet: ++ Liczba stron broszury: ++ ++ ++ ++ Unlimited ++ Nieograniczona ++ ++ ++ ++ at most ++ co najwyżej ++ ++ ++ ++ Print ++ Drukuj ++ ++ ++ ++ rectos and versos. ++ recto i verso. ++ ++ ++ ++ rectos only. ++ tylko recto. ++ ++ ++ ++ versos only. ++ tylko verso. ++ ++ ++ ++ Shift rectos and versos by ++ Zwiększ margines przy grzbiecie ++ ++ ++ ++ points. ++ Translation depends on the number ++ punktów. ++ ++ ++ ++ Center: ++ Wyśrodkuj: ++ ++ ++ ++ points ++ pkt ++ ++ ++ ++ plus ++ plus ++ ++ ++ ++ /100 ++ /100 ++ ++ ++ ++ per page. ++ na stronę. ++ ++ ++ ++ QDjViewExportPrn ++ ++ ++ Form ++ Formularz ++ ++ ++ ++ Color ++ Kolorystyka ++ ++ ++ ++ &Color ++ &Kolor ++ ++ ++ ++ &GrayScale ++ &Skala szarości ++ ++ ++ ++ Marks ++ Znaczniki ++ ++ ++ ++ Print image &frame ++ &Ramka ++ ++ ++ ++ Print crop &marks ++ &Cięcia ++ ++ ++ ++ Scaling ++ Skalowanie ++ ++ ++ ++ Scale to &fit the page ++ Dopasuj do &strony ++ ++ ++ ++ &Zoom ++ &Skaluj ++ ++ ++ ++ % ++ ++ ++ ++ ++ Orientation ++ Orientacja ++ ++ ++ ++ Automatic ++ Automatyczna ++ ++ ++ ++ &Portrait ++ &Portret ++ ++ ++ ++ &Landscape ++ &Krajobraz ++ ++ ++ ++ QDjViewExportTiff ++ ++ ++ Form ++ Formularz ++ ++ ++ ++ Resolution ++ Rozdzielczość ++ ++ ++ ++ Maximum image resolution ++ Maksymalna rozdzielczość ++ ++ ++ ++ dpi ++ dpi ++ ++ ++ ++ Compression ++ Kompresja ++ ++ ++ ++ Force &bitonal G4 compression. ++ Wymuś &bitonalną kompresję G4. ++ ++ ++ ++ Allow &lossy JPEG compression. ++ Zezwól na &stratną kompresję JPEG. ++ ++ ++ ++ JPEG &quality ++ &Jakość JPEG ++ ++ ++ ++ Allow &deflate compression. ++ Zezwól na kompresję &deflate. ++ ++ ++ ++ QDjViewFind ++ ++ ++ Case sensitive ++ Kaszta (wielkość) liter ma znaczenie ++ ++ ++ ++ Words only ++ Tylko całe słowa ++ ++ ++ ++ Regular expression ++ Wyrażenie regularne ++ ++ ++ ++ Find Previous (Shift+F3) ++ Znajdź poprzedni (Shift+F3) ++ ++ ++ ++ Find Next (F3) ++ Znajdź następny (F3) ++ ++ ++ ++ Reset search options to default values. ++ Przywróć domyślne wartości opcji wyszukiwania. ++ ++ ++ ++ Options ++ Opcje ++ ++ ++ ++ <html><b>Finding text.</b><br/> Search hits appear progressively as soon as you type a search string. Typing enter jumps to the next hit. To move to the previous or next hit, you can also use the arrow buttons or the shortcuts <tt>F3</tt> or <tt>Shift-F3</tt>. You can also double click a page name. Use the <tt>Options</tt> menu to search words only or to specify the case sensitivity.</html> ++ <html><b>Znajdowanie tekstu.</b><br/> Wyniki wyszukiwania pokazują się sukcesywnie w miarę wprowadzania szukanego napisu. Naciśnięcie Enter przechodzi do następnego wyniku. Można również używać strzałek, aby przejść do poprzedniego lub następnego wyniku, można także używać przycisków strzałek lub klawiszy funkcyjnych <tt>F3</tt> or <tt>Shift-F3</tt>. Można także dwukrotnie kliknąć na nazwę strony na liście wyników. Użyj menu <tt>Opcje</tt> aby szukać tylko całych słów lub uwzględnić kasztę (wielkość) liter.</html> ++ ++ ++ ++ Specify whether search hits must begin on a word boundary. ++ Określ, czy znalezione wyniki muszą zaczynać się na granicy słów. ++ ++ ++ ++ Specify whether searches are case sensitive. ++ Określ, czy wyszukiwanie ma uwzględniać kasztę (wielkość) liter. ++ ++ ++ ++ Regular expressions describe complex string matching patterns. ++ Loose translation ++ Wyrażenia regularne opisują złożone wzorce porównywania napisów. ++ ++ ++ ++ <html><b>Regular Expression Quick Guide</b><ul><li>The dot <tt>.</tt> matches any character.</li><li>Most characters match themselves.</li><li>Prepend a backslash <tt>\</tt> to match special characters <tt>()[]{}|*+.?!^$\</tt>.</li><li><tt>\b</tt> matches a word boundary.</li><li><tt>\w</tt> matches a word character.</li><li><tt>\d</tt> matches a digit character.</li><li><tt>\s</tt> matches a blank character.</li><li><tt>\n</tt> matches a newline character.</li><li><tt>[<i>a</i>-<i>b</i>]</tt> matches characters in range <tt><i>a</i></tt>-<tt><i>b</i></tt>.</li><li><tt>[^<i>a</i>-<i>b</i>]</tt> matches characters outside range <tt><i>a</i></tt>-<tt><i>b</i></tt>.</li><li><tt><i>a</i>|<i>b</i></tt> matches either regular expression <tt><i>a</i></tt> or regular expression <tt><i>b</i></tt>.</li><li><tt><i>a</i>{<i>n</i>,<i>m</i>}</tt> matches regular expression <tt><i>a</i></tt> repeated <tt><i>n</i></tt> to <tt><i>m</i></tt> times.</li><li><tt><i>a</i>?</tt>, <tt><i>a</i>*</tt>, and <tt><i>a</i>+</tt> are shorthands for <tt><i>a</i>{0,1}</tt>, <tt><i>a</i>{0,}</tt>, and <tt><i>a</i>{1,}</tt>.</li><li>Use parentheses <tt>()</tt> to group regular expressions before <tt>?+*{</tt>.</li></ul></html> ++ <html><b>Uproszczony opis wyrażeń regularnych</b><ul><li>Kropka <tt>.</tt> uzgadnia się z każdym znakiem.</li><li>Większość znaków uzgadnia się ze sobą.</li><li> Aby uzgodnić znaki specjalne <tt>()[]{}|*+.?!^$\</tt>.</li>poprzedź je ukośnikiem wstecznym <tt>\</tt><li><tt>\b</tt> uzgadnia się z granicą słów.</li><li><tt>\w</tt> uzgadnia się ze znakiem alfabetycznym.</li><li><tt>\d</tt> uzgadnia się ze znakiem cyfry.</li><li><tt>\s</tt> uzgadnia się ze spacją.</li><li><tt>\n</tt>uzgadnia się ze znakiem nowej linii.</li><li><tt>[<i>a</i>-<i>b</i>]</tt> uzgadnia się ze znakami z przedziału <tt><i>a</i></tt>-<tt><i>b</i></tt>.</li><li><tt>[^<i>a</i>-<i>b</i>]</tt> uzgadnia się ze znakami spoza przedziału <tt><i>a</i></tt>-<tt><i>b</i></tt>.</li><li><tt><i>a</i>|<i>b</i></tt> uzgadnia się z wyrażeniem regularnym <tt><i>a</i></tt> lub wyrażeniem regularnym <tt><i>b</i></tt>.</li><li><tt><i>a</i>{<i>n</i>,<i>m</i>}</tt> uzgadnia się z wyrażeniem regularnym <tt><i>a</i></tt>powtórzonym od <tt><i>n</i></tt> do <tt><i>m</i></tt> razy.</li><li><tt><i>a</i>?</tt>, <tt><i>a</i>*</tt>, and <tt><i>a</i>+</tt> są skrótem dla <tt><i>a</i>{0,1}</tt>, <tt><i>a</i>{0,}</tt>, i <tt><i>a</i>{1,}</tt>.</li><li>Nawiasy okrągłe <tt>()</tt> służą do grupowania wyrażeń przed <tt>?+*{</tt>.</li></ul></html> ++ ++ ++ ++ QDjViewFind::Model ++ ++ ++ 1 hit ++ 1 wynik ++ ++ ++ ++ %n hits ++ ++ %n wynik ++ %n wyniki ++ %n wyników ++ ++ ++ ++ ++ Page %1 (1 hit) ++ Strona %1 (1 wynik) ++ ++ ++ ++ Page %1 (%n hits) ++ ++ Strona %1 (%n wynik) ++ Strona %1 (%n wyniki) ++ Strona %1 (%n wyników) ++ ++ ++ ++ ++ Searching page %1 (waiting for data.) ++ Przeszukiwanie strony %1 (oczekiwanie na dane.) ++ ++ ++ ++ Searching page %1. ++ Przeszukiwanie strony %1. ++ ++ ++ ++ No hits! ++ Brak wyników! ++ ++ ++ ++ <html>Document is not searchable. No page contains information about its textual content.</html> ++ <html>Dokument nie nadaje się do przeszukiwania. Żadna strona nie zawiera treści tekstowej.</html> ++ ++ ++ ++ <html>Invalid regular expression.</html> ++ <html>Niepoprawne wyrażenie regularne.</html> ++ ++ ++ ++ QDjViewImgExporter ++ ++ ++ %1 Image ++ JPG Image ++ %1 obraz ++ ++ ++ ++ %1 Files (*.%2) ++ JPG Files ++ %1 plików (*.%2) ++ ++ ++ ++ Cannot render page. ++ Nie można zwizualizować strony. ++ ++ ++ ++ Image format %1 not supported. ++ Format obrazu %1 nie jest obsługiwany. ++ ++ ++ ++ QDjViewInfoDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ &Document ++ &Dokument ++ ++ ++ ++ &File ++ &Plik ++ ++ ++ ++ File: ++ Plik: ++ ++ ++ ++ &View Page ++ &Pokaż stronę ++ ++ ++ ++ &Close ++ &Zamknij ++ ++ ++ ++ File # ++ Plik nr ++ ++ ++ ++ File Name ++ Nazwa pliku ++ ++ ++ ++ File Size ++ Rozmiar pliku ++ ++ ++ ++ File Type ++ Typ pliku ++ ++ ++ ++ Page # ++ Strona nr ++ ++ ++ ++ Page Title ++ Tytuł strony ++ ++ ++ ++ <html><b>Document information</b><br>This panel shows information about the document and its component files. Select a component file to display detailed information in the <tt>File</tt> tab. Double click a component file to show the corresponding page in the main window. </html> ++ <html><b>Informacje o dokumencie</b><br>Ten panel zawiera informacje o dokumencie i jego plikach składowych. Wybierz plik składowy, aby wyświetlić szczegółowe informacje w zakładce <tt>Plik</tt> Kliknij dwukrotnie na plik składowy, aby wyświetlić odpowiednią stronę w głównym oknie. </html> ++ ++ ++ ++ <html><b>File and page information</b><br>This panel shows the structure of the DjVu data corresponding to the component file or the page selected in the <tt>Document</tt> tab. The arrow buttons jump to the previous or next component file.</html> ++ <html><b>Informacje o pliku i stronie</b><br>Ten panel pokazuje strukturę danych DjVu odpowiadających plikowi składowemu lub stronie wybranej w zakładce <tt>Dokument</tt> . Klawisze strzałek przenoszą do poprzedniego lub następnego pliku składowego.</html> ++ ++ ++ ++ Waiting for data... ++ Oczekiwanie na dane... ++ ++ ++ ++ Page #%1 ++ Strona nr %1 ++ ++ ++ ++ Thumbnails ++ Miniaturki ++ ++ ++ ++ Shared annotations ++ Adnotacje wspólne ++ ++ ++ ++ Shared data ++ Dane wspólne ++ ++ ++ ++ File #%1 - ++ Plik nr %1 - ++ ++ ++ ++ Single DjVu page ++ Pojedyncza strona DjVu ++ ++ ++ ++ Bundled DjVu document ++ Scalony dokument DjVu ++ ++ ++ ++ Indirect DjVu document ++ Rozłożony dokument DjVu ++ ++ ++ ++ Obsolete bundled DjVu document ++ Przestarzały scalony dokument DjVu ++ ++ ++ ++ Obsolete indexed DjVu document ++ Przestarzały rozłożony dokument DjVu ++ ++ ++ ++ 1 file ++ 1 plik ++ ++ ++ ++ %n files ++ ++ %n plik ++ %n pliki ++ %n plików ++ ++ ++ ++ ++ 1 page ++ 1 strona ++ ++ ++ ++ %n pages ++ ++ %n strona ++ %n strony ++ %n stron ++ ++ ++ ++ ++ ++ n/a ++ nie stosuje się ++ ++ ++ ++ Page ++ Strona ++ ++ ++ ++ Thumbnails ++ Miniaturki ++ ++ ++ ++ Shared ++ Wspólne ++ ++ ++ ++ QDjViewMetaDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ &Document Metadata ++ Metadane &dokumentu ++ ++ ++ ++ &Page Metadata ++ Metadane &strony ++ ++ ++ ++ Page: ++ Strona: ++ ++ ++ ++ &View Page ++ &Pokaż stronę ++ ++ ++ ++ &Close ++ &Zamknij ++ ++ ++ ++ Ctrl+C ++ copy ++ Ctrl+C ++ ++ ++ ++ Key ++ Klawisz ++ ++ ++ ++ Value ++ Wartość ++ ++ ++ ++ <html><b>Document metadata</b><br>This panel displays metadata pertaining to the document, such as author, title, references, etc. This information can be saved into the document with program <tt>djvused</tt>: use the commands <tt>create-shared-ant</tt> and <tt>set-meta</tt>.</html> ++ <html><b>Metadane dokumentu</b><br>Ten panel pokazuje metadane dokumentu, takie jak autor, tytuł, bibliografię itp. Informacje takie mogą być zapisane w dokumencie za pomocą programu <tt>djvused</tt> i komend <tt>create-shared-ant</tt> oraz <tt>set-meta</tt>.</html> ++ ++ ++ ++ <html><b>Page metadata</b><br>This panel displays metadata pertaining to a specific page. Page specific metadata override document metadata. This information can be saved into the document with program <tt>djvused</tt>: use command <tt>select</tt> to select the page and command <tt>set-meta</tt> to specify the metadata entries.</html> ++ <html><b>Metadane strony</b><br>Ten panel pokazuje metadane dotyczące konkretnej strony. Są one ważniejsze od metadanych dokumentu. Ta informacja może być zapisana w dokumencie za pomocą programu <tt>djvused</tt> i komend: <tt>select</tt> w celu wybrania strony i <tt>set-meta</tt> do wstawienia pól metadanych.</html> ++ ++ ++ ++ QDjViewOutline ++ ++ ++ <html><b>Document outline.</b><br/> This panel display the document outline, or the page names when the outline is not available, Double-click any entry to jump to the selected page.</html> ++ <html><b>Zakładki dokumentu.</b><br/> Ten panel pokazuje zakładki dokumentu, lub nazwy stron, jeśli zakładki nie są dostępny. Dwukrotne kliknięcie przenosi do wybranej strony.</html> ++ ++ ++ ++ Outline data is corrupted ++ Dane zakładek są uszkodzone ++ ++ ++ ++ Pages ++ Strony ++ ++ ++ ++ ++ Page %1 ++ Strona %1 ++ ++ ++ ++ ++ Go: page %1. ++ Przejdź do strony %1. ++ ++ ++ ++ Go: %1 ++ Przejdź: %1 ++ ++ ++ ++ QDjViewPSExporter ++ ++ ++ PostScript ++ PostScript ++ ++ ++ ++ ++ PostScript Files (*.ps *.eps) ++ Pliki w formacie PostScript (*.ps *.eps) ++ ++ ++ ++ Encapsulated PostScript ++ Encapsulated PostScript ++ ++ ++ ++ PostScript ++ tab caption ++ PostScript ++ ++ ++ ++ Position ++ tab caption ++ Pozycjonowanie ++ ++ ++ ++ Booklet ++ tab caption ++ Broszura ++ ++ ++ ++ <html><b>PostScript options.</b><br>Option <tt>Color</tt> enables color printing. Document pages can be decorated with frame and crop marks. PostScript language level 1 is only useful with very old printers. Level 2 works with most printers. Level 3 print color document faster on recent printers.</html> ++ <html><b>Opcje języka PostScript.</b><br>Opcje <tt>Kolor</tt> włącza drukowanie w kolorze. Strony dokumentu mogą być uzupełnione o ramki i znaczniki cięcia. Język PostScript poziom 1 jest przydatny tylko dla bardzo starych drukarek. Poziom 2 jest właściwy dla większości drukarek. Poziom 3 drukuje kolorowe dokumenty szybciej na nowszych drukarkach.</html> ++ ++ ++ ++ <html><b>Position and scaling.</b><br>Option <tt>Scale to fit</tt> accommodates whatever paper size your printer uses. Zoom factor <tt>100%</tt> reproduces the initial document size. Orientation <tt>Automatic</tt> chooses portrait or landscape on a page per page basis.</html> ++ <html><b>Pozycjonowanie i skalowanie.</b><br>Opcje <tt>Skaluj, aby dopasować</tt> dostosowuje się do dowolnego rozmiaru papieru. Współczynnik skalowania <tt>100%</tt> zachowuje oryginalny rozmiar dokumentu. Orientacja<tt>Automatyczne</tt> wybiera portret lub krajobraz osobno dla każdej strony.</html> ++ ++ ++ ++ <html><b>Producing booklets.</b><br>The booklet mode prints the selected pages as sheets suitable for folding one or several booklets. Several booklets might be produced when a maximum number of sheets per booklet is specified. You can either use a duplex printer or print rectos and versos separately.<p> Shifting rectos and versos is useful with poorly aligned duplex printers. The center margins determine how much space is left between the pages to fold the sheets. This space slowly increases from the inner sheet to the outer sheet.</html> ++ Loose translation ++ <html><b>Tworzenie broszury.</b><br>Tryb broszury drukuje wybrane strony jako arkusze nadające się do złożenia i utworzenia jednej lub więcej broszur. Kilka broszur można tworzyć kiedy jest określona maksymalna liczba arkuszy na broszurę. Można drukować dwustronnie lub osobno strony recto i strony verso.<p> Przesunięcie stron recto i verso jest przydatny dla drukarek dwustronnych, które nie wyrównują dobrze marginesów. Margines centralny decyduje o tym, ile miejsca jest między stronami na zgięcie arkusza. Ten margines zwiększa się powoli od arkuszy wewnętrznych do arkuszy zewnętrznych.</html> ++ ++ ++ ++ Save job creation failed! ++ Utworzenie zadania zapisania nie powiodło się! ++ ++ ++ ++ QDjViewPdfExporter ++ ++ ++ PDF Document ++ Dokument PDF ++ ++ ++ ++ PDF Files (*.pdf) ++ Pliki PDF (*.pdf) ++ ++ ++ ++ PDF Options ++ tab caption ++ Opcje PDF ++ ++ ++ ++ <html><b>PDF options.</b><br>These options control the characteristics of the images embedded in the exported PDF files. The resolution box limits their maximal resolution. Forcing bitonal G4 compression encodes all pages in black and white using the CCITT Group 4 compression. Allowing JPEG compression uses lossy JPEG for all non bitonal or subsampled images. Otherwise, allowing deflate compression produces more compact files. </html> ++ <html><b>Opcje PDF.</b><br>Te opcje określają własności obrazów zawartych w eksportowanych plikach PDF. Okienko rozdzielczości ogranicza ich maksymalną rozdzielczość. Wymuszenie bitonalnej kompresji oznacza zakodowanie wszystkich stron jako czarno-białych za pomocą kompresji CCITT Group 4. Dopuszczenie kompresji JPEG oznacza użycie stratnej kompresji JPEG dla wszystkich bitonalnych lub podpróbkowanych obrazów. W przeciwnym razie dopuszczenie kompresji deflate tworzy bardziej zwarte pliki. </html> ++ ++ ++ ++ Error while creating pdf file. ++ Błąd w trakcie tworzenia pliku PDF. ++ ++ ++ ++ Unable to create output file. ++ Nie można utworzyć pliku wyjściowego. ++ ++ ++ ++ ++ System error: %1. ++ Błąd systemowy: %1. ++ ++ ++ ++ Unable to reopen temporary file. ++ Nie można ponownie otworzyć pliku tymczasowego. ++ ++ ++ ++ PDF export was not compiled. ++ What it is supposed to mean? ++ Eksport do PDF nie został skompilowany. ++ ++ ++ ++ Unable to create temporary file. ++ Nie można utworzyć pliku tymczasowego. ++ ++ ++ ++ QDjViewPlugin::Document ++ ++ ++ Requesting %1. ++ Zażądano %1. ++ ++ ++ ++ QDjViewPrefsDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ &Screen ++ &Ekran ++ ++ ++ ++ Gamma ++ Współczynnik gamma ++ ++ ++ ++ <html>Screen color correction.<br>Adjust slider until gray shades look similar.</html> ++ <html>Korekta koloru ekranu.<br>Ustaw suwak tak, aby odcienie szarości były podobne.</html> ++ ++ ++ ++ Darker ++ Ciemniej ++ ++ ++ ++ Lighter ++ Jaśniej ++ ++ ++ ++ ++ Display ++ Wyświetlanie ++ ++ ++ ++ Force screen &resolution ++ Wymuś rozdzielczość &ekranową ++ ++ ++ ++ dpi ++ dpi ++ ++ ++ ++ Force inverted luminance ++ Wymuś odwrócenie luminancji ++ ++ ++ ++ &Interface ++ &Interfejs ++ ++ ++ ++ Options for ++ Obsolete? ++ Opcje dla ++ ++ ++ ++ &Remember initial state from last invocation ++ Loose translation ++ &Pamiętaj stan po ostatnim uruchomieniu ++ ++ ++ ++ Show ++ Wyświetlaj ++ ++ ++ ++ &Menu bar ++ Pasek &menu ++ ++ ++ ++ &Tool bar ++ Pasek &narzędzi ++ ++ ++ ++ Sc&rollbars ++ &Suwaki przewijania ++ ++ ++ ++ Stat&us bar ++ Pasek s&tanu ++ ++ ++ ++ &Side bar ++ Panel &boczny ++ ++ ++ ++ &Zoom: ++ Skalowanie too long ++ S&kala: ++ ++ ++ ++ Timer: ++ All reasonable translation too long ++ Timer: ++ ++ ++ ++ s ++ s ++ ++ ++ ++ Display page &frames ++ &Ramki stron ++ ++ ++ ++ Display &annotations ++ &Adnotacje ++ ++ ++ ++ Layout ++ Układ ++ ++ ++ ++ Continuous ++ Ciągły ++ ++ ++ ++ Side-by-side ++ Obok siebie ++ ++ ++ ++ Cover Page ++ Strona tytułowa ++ ++ ++ ++ Right-to-Left ++ Od prawej ++ ++ ++ ++ &Keys ++ &Klawisze ++ ++ ++ ++ Keys ++ Klawisze ++ ++ ++ ++ For displaying hyper&links: ++ Wyświetlanie &hiperłączy: ++ ++ ++ ++ For &selecting text or images: ++ &Zaznaczanie tekstu lub obrazów: ++ ++ ++ ++ For displaying the &lens: ++ Wyświetlanie &lupy: ++ ++ ++ ++ Mouse wheel ++ Rolka myszy ++ ++ ++ ++ Mouse wheel scrolls the page ++ Rolka myszy przewija stronę ++ ++ ++ ++ Mouse wheel changes the zoom factor ++ Rolka myszy zmienia wartość skalowania ++ ++ ++ ++ &Lens ++ &Lupa ++ ++ ++ ++ Enable magnifying &lens ++ Włącz szkło &powiększające ++ ++ ++ ++ Lens options ++ Opcje lupy ++ ++ ++ ++ Lens &size: ++ &Rozmiar okna lupy: ++ ++ ++ ++ Magnifying &power: ++ Stopień &powiększenia: ++ ++ ++ ++ x ++ x ++ ++ ++ ++ pixels ++ pikseli ++ ++ ++ ++ &Network ++ &Sieć ++ ++ ++ ++ Proxy settings ++ Ustawienia serwera pośredniczącego ++ ++ ++ ++ Use pro&xy to access the network ++ Stosuj &serwer pośredniczący ++ ++ ++ ++ &Host: ++ &Serwer: ++ ++ ++ ++ &Port: ++ &Port: ++ ++ ++ ++ &User: ++ &Użytkownik: ++ ++ ++ ++ Pass&word: ++ &Hasło: ++ ++ ++ ++ Cache ++ Pamięć podręczna ++ ++ ++ ++ &Clear ++ &Wyczyść ++ ++ ++ ++ ++ MB ++ MB ++ ++ ++ ++ &Decoded page cache: ++ Pamięć zdekodowanych &stron: ++ ++ ++ ++ &Pixel cache: ++ Pamięć &pikseli: ++ ++ ++ ++ &Advanced ++ &Zaawansowane ++ ++ ++ ++ Interface ++ Interfejs ++ ++ ++ ++ Force language (next time djview runs) ++ Wymuś język (wymaga ponownego uruchomienia) ++ ++ ++ ++ Enable page animations ++ Włącz animację stron ++ ++ ++ ++ Enable advanced features in menus ++ Włącz zaawansowane opcje w menu ++ ++ ++ ++ Show hidden text in status bar ++ Pokazuj na pasku stanu tekst ukryty ++ ++ ++ ++ Miscellaneous ++ Różne ++ ++ ++ ++ Render with openGL when available ++ Wizualizuj za pomocą openGL jeśli jest dostępne ++ ++ ++ ++ Override saving and printing restrictions ++ Ignoruj ograniczenia zapisywania i drukowania ++ ++ ++ ++ Manual printer color correction ++ Ręczna korekta kolorów drukowania ++ ++ ++ ++ gamma= ++ gamma= ++ ++ ++ ++ &Defaults ++ &Wartości domyślne ++ ++ ++ ++ &Apply ++ &Zastosuj ++ ++ ++ ++ &Ok ++ &OK ++ ++ ++ ++ Cancel ++ Anuluj ++ ++ ++ ++ Preferences[*] - DjView ++ Ustawienia - DjView ++ ++ ++ ++ <html><b>Screen gamma correction.</b><br>The best color rendition is achieved by adjusting the gamma correction slider and choosing the position that makes the gray square as uniform as possible.<p><b>Screen resolution.</b><br>This option forces a particular resolution instead of using the unreliable resolution advertised by the operating system. Forcing the resolution to 100 dpi matches the behavior of the djvulibre command line tools.</html> ++ <html><b>Korekcja współczynnika gamma.</b><br> Najlepszą wizualizację kolorów osiąga się przez wybór takiej pozycji suwaka, w której szare kwadraty są najbardziej podobne.<p><b>Rozdzielczość ekranu.</b><br>Ta opcja wymusza konkretną rozdzielczość zamiast rozdzielczości proponowanej przez system operacyjny. Wymuszanie rozdzielczości 100 dpi jest zgodne z zachowaniem programów narzędziowych DjVuLibre.</html> ++ ++ ++ ++ <html><b>Initial interface setup.</b><br>DjView can run as a standalone viewer, as a full screen viewer, as a full page browser plugin, or as a plugin embedded inside a html page. For each case, check the <tt>Remember</tt> box to automatically save and restore the interface setup. Otherwise, specify an initial configuration.</html> ++ <html><b>Początkowe ustawienie interfejsu.</b><br>DjView może pracować jako samodzielna przeglądarka, jako przeglądarka pełnoekranowa, jako pełnoekranowa wtyczka do przeglądarki WWW, i jako wtyczka osadzona na stronie HTML. W każdym przypadku należy zaznaczyć pole wyboru <tt>Pamiętaj</tt> aby automatycznie zapisać i odtworzyć ustawienia interfejsu. W przeciwnym wypadku należy określić konfigurację początkową.</html> ++ ++ ++ ++ <html><b>Modifiers keys.</b><br>Define which combination of modifier keys will show the manifying lens, temporarily enable the selection mode, or highlight the hyperlinks.</html> ++ <html><b>Klawisze modyfikujące.</b><br>Określ, które kombinacje klawiszy wyświetlają lupę, tymczasowo włączają tryb zaznaczania lub uwydatniają hiperłącza.</html> ++ ++ ++ ++ <html><b>Magnifying lens.</b><br>The magnifying lens appears when you depress the modifier keys specified in tab <tt>Keys</tt>. This panel lets you choose the power and the size of the magnifying lens.</html> ++ <html><b>Szkło powiekszające.</b><br>Szkło powiększające ukazuje się po naciśnięciu klawisza modyfikującego określonego w zakładce <tt>Klawisze</tt>. Ten panel pozwala wybrać stopień powiększenia i rozmiar lupy.</html> ++ ++ ++ ++ <html><b>Advanced.</b><br>You can override the default interface language, disable the page animations, or enable additional menu entries that are useful for authoring DjVu files.You can also disable the printing or saving restrictions dictated by certain web sites. The manual color correction can be useful with old printers.</html> ++ <html><b>Zaawansowane.</b><br>Można zmienić domyślny język interfejsu, wyłączyć animację stron, włączyć dodatkowe pozycje menu.Można również wyłączyć ograniczenia drukowania lub zapisywania narzucane przez niektóre witryny internetowe. Ręczna korekta koloru drukowania może być przydatna dla starych drukarek.</html> ++ ++ ++ ++ <html><b>Network proxy settings.</b><br>These proxy settings are used when the standalone djview viewer accesses a djvu document through a http url. The djview plugin always uses the proxy settings of the web browser.<p><b>Cache settings.</b><br>The <i>pixel cache</i> stores image data located outside the visible area. This cache makes panning smoother. The <i>decoded page cache</i> contains partially decoded pages. It provides faster response times when navigating a multipage document or when returning to a previously viewed page. Clearing this cache might be useful to reflect a change in the page data without restarting the DjVu viewer.</html> ++ <html><b>Ustawienia serwera pośredniczącego.</b><br>Te ustawienia są wykorzystywane, gdy samodzielna przeglądarka pobiera dokument za pomocą protokołu HTTP. Wtyczka DjView zawsze używa ustawień przeglądarki internetowej.<p><b>Ustawienia pamięci podręcznej.</b><br><i>Pamięć pikseli</i> przechowuje informacje o fragmentach obrazu, które nie są aktualnie wyświetlane. Powoduje to bardziej płynne pozycjonowanie. <i>Pamięć zdekodowanych stron</i> zawiera częściowo zdekodowane strony. Zapewnia szybszy czas reakcji podczas nawigacji w wielostronicowym dokumencie oraz przy powrocie do poprzednio wyświetlanej strony. Wyczyszczenie pamięci może być pożyteczne dla uwzględnienia zmienionych dany strony bez ponownego uruchamiania programu.</html> ++ ++ ++ ++ Standalone Viewer ++ Samodzielna przeglądarka ++ ++ ++ ++ Standalone Viewer (Full Screen mode) ++ Samodzielna przeglądarka (tryb pełnoekranowy) ++ ++ ++ ++ Standalone Viewer (Slideshow mode) ++ Samodzielna przeglądarka (pokaz slajdów) ++ ++ ++ ++ Full Page Plugin ++ Wtyczka całostronicowa ++ ++ ++ ++ Embedded Plugin ++ Wtyczka osadzona ++ ++ ++ ++ QDjViewPrintDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ ++ Print ++ Drukuj ++ ++ ++ ++ &Document ++ &Dokument ++ ++ ++ ++ C&urrent page ++ &Bieżąca strona ++ ++ ++ ++ &Pages ++ &Strony ++ ++ ++ ++ to ++ do ++ ++ ++ ++ Destination ++ Urządzenie docelowe ++ ++ ++ ++ Print to file ++ Drukuj do pliku ++ ++ ++ ++ Printer name: ++ Nazwa drukarki: ++ ++ ++ ++ Choose ++ Wybierz ++ ++ ++ ++ &Defaults ++ &Wartości domyślne ++ ++ ++ ++ &Ok ++ &OK ++ ++ ++ ++ ++ &Cancel ++ &Anuluj ++ ++ ++ ++ Stop ++ Stop ++ ++ ++ ++ <html><b>Printing.</b><br/> You can print the whole document or a page range. Use the <tt>Choose</tt> button to select a print destination and specify printer options. Additional dialog tabs might appear to specify conversion options.</html> ++ <html><b>Drukowanie.</b><br/> Można drukować cały dokument lub pewien przedział stron. Użyj przycisku <tt>Wybierz</tt> aby wybrać urządzenie i określić opcje drukowania. Mogą pojawić się dodatkowe zakładki z opcjami konwersji.</html> ++ ++ ++ ++ (invalid printer) ++ (drukarka niedostępna) ++ ++ ++ ++ All files ++ save filter ++ Wszystkie pliki ++ ++ ++ ++ Print To File - DjView ++ dialog caption ++ Drukuj do pliku - Djview ++ ++ ++ ++ Question - DjView ++ dialog caption ++ Pytanie - DjView ++ ++ ++ ++ A file with this name already exists. ++Do you want to replace it? ++ Plik o tej nazwie już istnieje ++Czy go zastąpić? ++ ++ ++ ++ &Replace ++ &Zastąp ++ ++ ++ ++ This operation has failed. ++ Ta operacja nie powiodła się. ++ ++ ++ ++ This operation has been interrupted. ++ Ta operacja została przerwana. ++ ++ ++ ++ QDjViewPrnExporter ++ ++ ++ Printer data ++ Dane drukarki ++ ++ ++ ++ PRN Files (*.prn) ++ Pliki PRN (*.prn) ++ ++ ++ ++ Printing Options ++ tab caption ++ Opcje drukowania ++ ++ ++ ++ <html><b>Printing options.</b><br>Option <tt>Color</tt> enables color printing. Document pages can be decorated with a frame. Option <tt>Scale to fit</tt> accommodates whatever paper size your printer uses. Zoom factor <tt>100%</tt> reproduces the initial document size. Orientation <tt>Automatic</tt> chooses portrait or landscape on a page per page basis.</html> ++ <html><b>Opcje drukowania.</b><br>Opcja <tt>Kolor</tt> włącza drukowanie w kolorze. Strony dokumentu mogą być ujęte w ramki. Opcja <tt>Dopasuj do strony</tt> dostosowuje wydruk do dowolnego rozmiaru papieru w drukarce. Współczynnik skalowania równy <tt>100%</tt> zachowuje oryginalny rozmiar dokumentu. Orientacja<tt>Automatycznie/tt> wybiera orientację portret lub krajobraz osobno dla każdej strony.</html> ++ ++ ++ ++ Cannot render page %1. ++ Nie można zwizualizować strony %1. ++ ++ ++ ++ QDjViewSaveDialog ++ ++ ++ Dialog ++ Dialog ++ ++ ++ ++ Save ++ Zapisz ++ ++ ++ ++ &Document ++ &Dokument ++ ++ ++ ++ C&urrent page ++ &Bieżąca strona ++ ++ ++ ++ &Pages ++ &Strony ++ ++ ++ ++ to ++ do ++ ++ ++ ++ Destination ++ Plik wynikowy ++ ++ ++ ++ Format: ++ Format: ++ ++ ++ ++ Bundled DjVu Document ++ Scalony dokument DjVu ++ ++ ++ ++ Indirect DjVu Document ++ Rozłożony dokument DjVu ++ ++ ++ ++ &Ok ++ &OK ++ ++ ++ ++ ++ &Cancel ++ &Anuluj ++ ++ ++ ++ Stop ++ Stop ++ ++ ++ ++ <html><b>Saving.</b><br/> You can save the whole document or a page range. The bundled format creates a single file. The indirect format creates multiple files suitable for web serving.</html> ++ <html><b>Zapisywanie.</b><br/> Można zapisać cały dokument lub zakres stron. Format scalony tworzy jeden plik. Format rozłożony tworzy wiele plików wygodnych do udostępniania przez serwery internetowe.</html> ++ ++ ++ ++ Error - DjView ++ dialog caption ++ Błąd - DjView ++ ++ ++ ++ Overwriting the current file is not allowed! ++ Nie można zastąpić bieżącego pliku! ++ ++ ++ ++ Question - DjView ++ dialog caption ++ Pytanie - DjView ++ ++ ++ ++ A file with this name already exists. ++Do you want to replace it? ++ Plik o tej nazwie już istnieje ++Czy go zastąpić? ++ ++ ++ ++ &Replace ++ &Zastąp ++ ++ ++ ++ This operation has failed. ++ Ta operacja nie powiodła się. ++ ++ ++ ++ This operation has been interrupted. ++ Ta operacja została przerwana. ++ ++ ++ ++ All files ++ save filter ++ Wszystkie pliki ++ ++ ++ ++ Save - DjView ++ dialog caption ++ Zapisz - DjView ++ ++ ++ ++ QDjViewThumbnails ++ ++ ++ Tiny ++ thumbnail menu ++ Malutkie ++ ++ ++ ++ Small ++ thumbnail menu ++ Małe ++ ++ ++ ++ Medium ++ thumbnail menu ++ Średnie ++ ++ ++ ++ Large ++ thumbnail menu ++ Duże ++ ++ ++ ++ Smart ++ thumbnail menu ++ Sprytne ++ ++ ++ ++ Control Left Mouse Button ++ Control i lewy klawisz myszy ++ ++ ++ ++ Right Mouse Button ++ Prawy klawisz myszy ++ ++ ++ ++ <html><b>Document thumbnails.</b><br/> This panel display thumbnails for the document pages. Double click a thumbnail to jump to the selected page. %1 to change the thumbnail size or the refresh mode. The smart refresh mode only computes thumbnails when the page data is present (displayed or cached.)</html> ++ <html><b>Miniaturki.</b><br/> Ten panel wyświetla miniaturki stron dokumentu. Podwójne kliknięcie na miniaturkę przenosi do odpowiedniej strony. %1 aby zmienić rozmiar miniaturek lub je odświeżyć. Tryb sprytny wyświetla miniaturkę tylko wtedy, gdy strona jest wyświetlana lub znajduje się w pamięci podręcznej.</html> ++ ++ ++ ++ QDjViewTiffExporter ++ ++ ++ TIFF Document ++ Dokument TIFF ++ ++ ++ ++ TIFF Files (*.tiff *.tif) ++ Pliki TIFF (*.tiff *.tif) ++ ++ ++ ++ TIFF Options ++ tab caption ++ Opcje TIFF ++ ++ ++ ++ <html><b>TIFF options.</b><br>The resolution box specifies an upper limit for the resolution of the TIFF images. Forcing bitonal G4 compression encodes all pages in black and white using the CCITT Group 4 compression. Allowing JPEG compression uses lossy JPEG for all non bitonal or subsampled images. Otherwise, allowing deflate compression produces more compact (but less portable) files than the default packbits compression.</html> ++ <html><b>Opcje TIFF </b><br>Pole wyboru rozdzielczości określa maksymalną rozdzielczość obrazów TIFF. Wymuszenie bitonalnej kompresji oznacza zakodowanie wszystkich stron jako czarno-białych za pomocą kompresji CCITT Group 4. Dopuszczenie kompresji JPEG oznacza użycie stratnej kompresji JPEG dla wszystkich bitonalnych lub podpróbkowanych obrazów. W przeciwnym razie dopuszczenie kompresji deflate tworzy bardziej zwarte pliki niż domyślna kompresja packbits.</html> ++ ++ ++ ++ Cannot open output file. ++ Nie można otworzyć pliku wyjściowego. ++ ++ ++ ++ Out of memory. ++ Zabrakło pamięci. ++ ++ ++ ++ Internal error. ++ Błąd wewnętrzny. ++ ++ ++ ++ TIFF export has not been compiled. ++ Eksport do TIFF nie został skompilowany. ++ ++ ++ ++ QDjVuNetDocument ++ ++ ++ Requesting '%1' ++ Zażądano %1 ++ ++ ++ ++ QDjVuNetDocument::Private ++ ++ ++ Received http status %1 while retrieving %2. ++ %1 is an http status code ++ Otrzymano kod statusu %1 podczas pobierania %2. ++ ++ ++ ++ Received <%1> data while retrieving %2. ++ %1 is a mime type ++ Otrzymano typ danych <%1> w czasie pobierania %2. ++ ++ ++ ++ %1 while retrieving '%2'. ++ %1 w czasie pobierania %2. ++ ++ ++ ++ Cannot validate the certificate for server %1. ++ Nie można potwierdzić certyfikatu serwera %1. ++ ++ ++ ++ Authentication required for %1 (%2). ++ Autoryzacja wymagana dla %1 (%2). ++ ++ ++ ++ Authentication required for proxy %1. ++ Autoryzacja wymagana dla serwera pośredniczącego %1. ++ ++ ++ +--- djview4-4.12.orig/src/qdjviewexporters.cpp ++++ djview4-4.12/src/qdjviewexporters.cpp +@@ -405,9 +405,9 @@ QDjViewDjVuExporter::save(QString fname) + fromPage = qBound(0, fromPage, pagenum-1); + QByteArray pagespec; + if (fromPage == toPage && pagenum > 1) +- pagespec.append(QString("--pages=%1").arg(fromPage+1)); ++ pagespec.append(QString("--pages=%1").arg(fromPage+1).toLocal8Bit()); + else if (fromPage != 0 || toPage != pagenum - 1) +- pagespec.append(QString("--pages=%1-%2").arg(fromPage+1).arg(toPage+1)); ++ pagespec.append(QString("--pages=%1-%2").arg(fromPage+1).arg(toPage+1).toLocal8Bit()); + QByteArray namespec; + if (indirect) + namespec = "--indirect=" + fname.toUtf8(); +--- djview4-4.12.orig/src/qdjviewprefs.cpp ++++ djview4-4.12/src/qdjviewprefs.cpp +@@ -1021,7 +1021,7 @@ QDjViewPrefsDialog::loadLanguageComboBox + { + // supported languages + static const char *languages[] = { +- "cs","de","en","es","fr","it","ja","ru","uk", ++ "cs","de","en","es","fr","it","ja","pl","ru","uk", + "zh_CN","zh_TW",0 } ; + // get application + QComboBox *cb = d->ui.languageComboBox; +--- djview4-4.12.orig/src/qdjvuwidget.cpp ++++ djview4-4.12/src/qdjvuwidget.cpp +@@ -3669,7 +3669,7 @@ MapArea::paintPermanent(QPaintDevice *w, + QRect r = rect.adjusted(bw, bw, -bw, -bw); + QString s = miniexp_to_qstring(comment); + paint.setPen(foregroundColor); +- int flags = Qt::AlignCenter|Qt::AlignVCenter|Qt::TextWordWrap; ++ int flags = Qt::AlignVCenter|Qt::TextWordWrap; + QFont font = paint.font(); + // estimate font size + int size = (int)(z * 0.12); +@@ -3678,11 +3678,11 @@ MapArea::paintPermanent(QPaintDevice *w, + QRect br; + font.setPixelSize(size); + paint.setFont(font); +- paint.drawText(r,flags|Qt::TextDontPrint,s,&br); ++ paint.drawText(r,flags|Qt::AlignHCenter|Qt::TextDontPrint,s,&br); + if (r.contains(br)) + { + // found good font size +- paint.drawText(r,flags,s,0); ++ paint.drawText(r,flags|Qt::AlignLeft,s,0); + break; + } + size -= 1; diff --git a/graphics/gmic/gmic.SlackBuild b/graphics/gmic/gmic.SlackBuild index f2b15bf316..08c59a16cd 100644 --- a/graphics/gmic/gmic.SlackBuild +++ b/graphics/gmic/gmic.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gmic -VERSION=${VERSION:-2.9.4} -COMMUNITYVERSION=${COMMUNITYVERSION:-6e9a20ef40e1db99c9b761853ad493ee7439e1b7} +VERSION=${VERSION:-3.1.6} +COMMUNITYSRC=GMIC BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,11 +70,10 @@ mkdir -p $TMP $PKG cd $TMP rm -rf $PRGNAM rm -rf $PRGNAM-community -rm -rf $PRGNAM-qt tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz --warning=no-unknown-keyword mv $PRGNAM-$VERSION $PRGNAM -unzip $CWD/$PRGNAM-community-$COMMUNITYVERSION.zip || unzip $CWD/$COMMUNITYVERSION -mv $PRGNAM-community-$COMMUNITYVERSION $PRGNAM-community +tar xvf $CWD/$COMMUNITYSRC-$VERSION.tar.gz +mv $PRGNAM-community-$COMMUNITYSRC-$VERSION $PRGNAM-community cd $PRGNAM chown -R root:root . find -L . \ @@ -92,23 +91,23 @@ sed -i -e "s|LIB = lib|LIB = lib$LIBDIRSUFFIX|g" \ sed -i -e "s|-Ofast|-O2 -fno-fast-math --std=c++11|g" \ gmic-qt/gmic_qt.pro || exit 1 -make -C src cli lib libc WGET=/bin/true LIBS=${LDFLAGS} OPT_CFLAGS="$SLKCFLAGS " +make -j1 -C src cli lib libc WGET=/bin/true LIBS=${LDFLAGS} OPT_CFLAGS="$SLKCFLAGS " cd gmic-qt qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=none -make +make -j1 qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=gimp -make +make -j1 qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=on HOST=krita -make +make -j1 -cd ../zart -qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=off QMAKE_CXXFLAGS+=" -DOPENCV2_HEADERS" -make +#cd ../zart +#qmake-qt5 GMIC_PATH=../src GMIC_DYNAMIC_LINKING=off QMAKE_CXXFLAGS+=" -DOPENCV2_HEADERS" +#make cd .. -make -C src install LIB=lib$LIBDIRSUFFIX DESTDIR="$PKG" USR="/usr" +make -j1 -C src install LIB=lib$LIBDIRSUFFIX DESTDIR="$PKG" USR="/usr" -rmdir $PKG/usr/share || true +#rmdir $PKG/usr/share || true find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/graphics/gmic/gmic.info b/graphics/gmic/gmic.info index 5f7b119ad6..34498e99e9 100644 --- a/graphics/gmic/gmic.info +++ b/graphics/gmic/gmic.info @@ -1,10 +1,10 @@ PRGNAM="gmic" -VERSION="2.9.4" +VERSION="3.1.6" HOMEPAGE="https://gmic.eu" -DOWNLOAD="https://gmic.eu/files/source/gmic_2.9.4.tar.gz \ - https://github.com/dtschump/gmic-community/archive/6e9a20ef40e1db99c9b761853ad493ee7439e1b7.zip" -MD5SUM="e0d396ab6406c9baeb4929c1dd6a0d6a \ - 75f88fa1423f253714e84905a05f37da" +DOWNLOAD="https://gmic.eu/files/source/gmic_3.1.6.tar.gz \ + https://github.com/GreycLab/gmic-community/archive/GMIC-3.1.6/GMIC-3.1.6.tar.gz" +MD5SUM="62101676ee2b83438c3fc57180be92c6 \ + 0a42c6b71ad667638f7199a01feca1d1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/graphics/inkscape/inkscape.SlackBuild b/graphics/inkscape/inkscape.SlackBuild index 1a4740bb02..1bec2a5da3 100644 --- a/graphics/inkscape/inkscape.SlackBuild +++ b/graphics/inkscape/inkscape.SlackBuild @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=inkscape -VERSION=${VERSION:-1.2} -EXTRAVER=${EXTRAVER:-2022-05-15_dc2aedaf03} +VERSION=${VERSION:-1.2.1} +EXTRAVER=${EXTRAVER:-2022-07-14_9c6d41e410} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -94,8 +94,8 @@ dos2unix -k -q share/extensions/*.py # Fix man page location: sed -i CMakeScripts/Pod2man.cmake -e "s/SHARE_INSTALL/CMAKE_INSTALL_PREFIX/g" -# patch from archlinux -#patch -p1 < $CWD/poppler-21.11.0.patch +# patch from upstream +patch -p1 < $CWD/poppler-22.09.0.patch mkdir -p build cd build diff --git a/graphics/inkscape/inkscape.info b/graphics/inkscape/inkscape.info index 8e49dc51d8..c0d049d8a9 100644 --- a/graphics/inkscape/inkscape.info +++ b/graphics/inkscape/inkscape.info @@ -1,8 +1,8 @@ PRGNAM="inkscape" -VERSION="1.2" +VERSION="1.2.1" HOMEPAGE="http://www.inkscape.org/" -DOWNLOAD="https://media.inkscape.org/dl/resources/file/inkscape-1.2.tar.xz" -MD5SUM="fb40ac4635b9ea5608e1706584cd0665" +DOWNLOAD="https://media.inkscape.org/dl/resources/file/inkscape-1.2.1.tar.xz" +MD5SUM="9e0acbb3dfe8c62953c788134d208dc2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="GraphicsMagick gdl dos2unix double-conversion libcdr lxml python2-numpy potrace pstoedit scour" diff --git a/graphics/inkscape/poppler-22.09.0.patch b/graphics/inkscape/poppler-22.09.0.patch new file mode 100644 index 0000000000..36d4192c86 --- /dev/null +++ b/graphics/inkscape/poppler-22.09.0.patch @@ -0,0 +1,53 @@ +From 2f3101417a04721c42b6b101dde07fa961a56f1b Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Tue, 6 Sep 2022 10:10:25 +0000 +Subject: [PATCH] Fix build with Poppler 22.09.0 + +Adapt to changes in Poppler's getLineDash/setLineDash interface to allow building with Poppler 22.09.0. +--- + src/extension/internal/pdfinput/pdf-parser.cpp | 4 ++++ + src/extension/internal/pdfinput/svg-builder.cpp | 9 ++++++++- + 2 files changed, 12 insertions(+), 1 deletion(-) + +diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp +index cca1e84096..80d64c9b86 100644 +--- a/src/extension/internal/pdfinput/pdf-parser.cpp ++++ b/src/extension/internal/pdfinput/pdf-parser.cpp +@@ -697,7 +697,11 @@ void PdfParser::opSetDash(Object args[], int /*numArgs*/) + _POPPLER_FREE(obj); + } + } ++#if POPPLER_CHECK_VERSION(22, 9, 0) ++ state->setLineDash(std::vector (dash, dash + length), args[1].getNum()); ++#else + state->setLineDash(dash, length, args[1].getNum()); ++#endif + builder->updateStyle(state); + } + +diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp +index 12f71dd921..9fc56fe63c 100644 +--- a/src/extension/internal/pdfinput/svg-builder.cpp ++++ b/src/extension/internal/pdfinput/svg-builder.cpp +@@ -389,10 +389,17 @@ void SvgBuilder::_setStrokeStyle(SPCSSAttr *css, GfxState *state) { + sp_repr_css_set_property(css, "stroke-miterlimit", os_ml.str().c_str()); + + // Line dash +- double *dash_pattern; + int dash_length; + double dash_start; ++#if POPPLER_CHECK_VERSION(22, 9, 0) ++ const double *dash_pattern; ++ const std::vector &dash = state->getLineDash(&dash_start); ++ dash_pattern = dash.data(); ++ dash_length = dash.size(); ++#else ++ double *dash_pattern; + state->getLineDash(&dash_pattern, &dash_length, &dash_start); ++#endif + if ( dash_length > 0 ) { + Inkscape::CSSOStringStream os_array; + for ( int i = 0 ; i < dash_length ; i++ ) { +-- +GitLab + diff --git a/graphics/kColorPicker/README b/graphics/kColorPicker/README deleted file mode 100644 index a0dc172eb6..0000000000 --- a/graphics/kColorPicker/README +++ /dev/null @@ -1,5 +0,0 @@ -kColorPicker (Qt based Color Picker with popup menu) - -QToolButton with color popup menu which lets you select a color. -The popup features a color dialog button which can be used to -add custom colors to the popup menu. diff --git a/graphics/kColorPicker/kColorPicker.SlackBuild b/graphics/kColorPicker/kColorPicker.SlackBuild deleted file mode 100644 index c82f67cd2d..0000000000 --- a/graphics/kColorPicker/kColorPicker.SlackBuild +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash -# -# Slackware build script for kColorPicker -# -# Copyright 2022 Alexander Schultz -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=kColorPicker -VERSION=${VERSION:-0.1.6} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -eu - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION - -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -mkdir -p build -cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DKCOV_INSTALL_MANDIR=/usr/man \ - -DKCOV_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \ - -DBUILD_SHARED_LIBS=ON .. - make - make install/strip DESTDIR=$PKG -cd .. - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/graphics/kColorPicker/kColorPicker.info b/graphics/kColorPicker/kColorPicker.info deleted file mode 100644 index 2e6859a082..0000000000 --- a/graphics/kColorPicker/kColorPicker.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="kColorPicker" -VERSION="0.1.6" -HOMEPAGE="https://github.com/ksnip/kColorPicker" -DOWNLOAD="https://github.com/ksnip/kColorPicker/archive/refs/tags/v0.1.6/kColorPicker-0.1.6.tar.gz" -MD5SUM="2a4e536cf7d947689d9a5e3cdef58837" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Alexander Schultz" -EMAIL="alexander_schultz@posteo.se" diff --git a/graphics/kColorPicker/slack-desc b/graphics/kColorPicker/slack-desc deleted file mode 100644 index c375029bab..0000000000 --- a/graphics/kColorPicker/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -kColorPicker: kColorPicker (Qt based Color Picker with popup menu) -kColorPicker: -kColorPicker: QToolButton with color popup menu which lets you select a color. -kColorPicker: The popup features a color dialog button which can be used -kColorPicker: to add custom colors to the popup menu. -kColorPicker: -kColorPicker: Homepage: https://github.com/ksnip/kColorPicker -kColorPicker: -kColorPicker: -kColorPicker: -kColorPicker: diff --git a/graphics/kImageAnnotator/README b/graphics/kImageAnnotator/README deleted file mode 100644 index 535210789e..0000000000 --- a/graphics/kImageAnnotator/README +++ /dev/null @@ -1,3 +0,0 @@ -kImageAnnotator (Tool for annotating images) - -Tool for annotating images. diff --git a/graphics/kImageAnnotator/kImageAnnotator.SlackBuild b/graphics/kImageAnnotator/kImageAnnotator.SlackBuild deleted file mode 100644 index bdfa9d4ad2..0000000000 --- a/graphics/kImageAnnotator/kImageAnnotator.SlackBuild +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash -# -# Slackware build script for kImageAnnotator -# -# Copyright 2022 Alexander Schultz -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=kImageAnnotator -VERSION=${VERSION:-0.5.3} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -eu - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION - -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -mkdir -p build -cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DKCOV_INSTALL_MANDIR=/usr/man \ - -DKCOV_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \ - -DBUILD_SHARED_LIBS=ON .. - make - make install/strip DESTDIR=$PKG -cd .. - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/graphics/kImageAnnotator/kImageAnnotator.info b/graphics/kImageAnnotator/kImageAnnotator.info deleted file mode 100644 index caba0227ff..0000000000 --- a/graphics/kImageAnnotator/kImageAnnotator.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="kImageAnnotator" -VERSION="0.5.3" -HOMEPAGE="https://github.com/ksnip/kImageAnnotator" -DOWNLOAD="https://github.com/ksnip/kImageAnnotator/archive/refs/tags/v0.5.3/kImageAnnotator-0.5.3.tar.gz" -MD5SUM="992390460ab4e10b967bed11f8558250" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="kColorPicker" -MAINTAINER="Alexander Schultz" -EMAIL="alexander_schultz@posteo.se" diff --git a/graphics/kImageAnnotator/slack-desc b/graphics/kImageAnnotator/slack-desc deleted file mode 100644 index 30f29d40bb..0000000000 --- a/graphics/kImageAnnotator/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -kImageAnnotator: kImageAnnotator (Tool for annotating images) -kImageAnnotator: -kImageAnnotator: Tool for annotating images -kImageAnnotator: -kImageAnnotator: Homepage: https://github.com/ksnip/kImageAnnotator -kImageAnnotator: -kImageAnnotator: -kImageAnnotator: -kImageAnnotator: -kImageAnnotator: -kImageAnnotator: diff --git a/graphics/luminance-hdr/luminance-hdr.SlackBuild b/graphics/luminance-hdr/luminance-hdr.SlackBuild index 027d2b07ea..a9bc215aa3 100644 --- a/graphics/luminance-hdr/luminance-hdr.SlackBuild +++ b/graphics/luminance-hdr/luminance-hdr.SlackBuild @@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=luminance-hdr -VERSION=${VERSION:-2.6.0} +VERSION=${VERSION:-2.6.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -80,6 +80,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +# Apply patches from gentoo +for i in $CWD/patches/* ; do patch -p1 < $i ; done + # Workround build failure with gcc-g++-4.9.3 and beyond (mangling bug?) # (fails to link libmvec: "undefined reference to `_ZGVbN4vv_powf'" etc) export CXX=clang++ diff --git a/graphics/luminance-hdr/luminance-hdr.info b/graphics/luminance-hdr/luminance-hdr.info index cc84ef4b63..6151b43135 100644 --- a/graphics/luminance-hdr/luminance-hdr.info +++ b/graphics/luminance-hdr/luminance-hdr.info @@ -1,8 +1,8 @@ PRGNAM="luminance-hdr" -VERSION="2.6.0" +VERSION="2.6.1.1" HOMEPAGE="http://qtpfsgui.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/qtpfsgui/2.6.0/luminance-hdr-2.6.0.tar.bz2" -MD5SUM="9ac2be847d304f0ddc7089b251825c4d" +DOWNLOAD="http://downloads.sf.net/qtpfsgui/luminance-hdr-2.6.1.1.tar.bz2" +MD5SUM="c57baf1d3c5d7952f952496f20f86c8f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.5.1-openmp-automagic.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.5.1-openmp-automagic.patch new file mode 100644 index 0000000000..f0399d271a --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.5.1-openmp-automagic.patch @@ -0,0 +1,32 @@ +diff --git a/build_files/Modules/CompilerSettings.cmake b/build_files/Modules/CompilerSettings.cmake +index f55c130..81e1916 100644 +--- a/build_files/Modules/CompilerSettings.cmake ++++ b/build_files/Modules/CompilerSettings.cmake +@@ -45,16 +45,19 @@ else() + message(WARNING "Your C++ compiler does not support C++11.") + endif() + #OpenMP Support under Linux, Windows with MSVC & MacOS X with GCC >= 4.3 +-IF(MSVC) +- FIND_PACKAGE(OpenMP REQUIRED) +- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") +- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") +-ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX) +- EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) +- IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3) +- MESSAGE(STATUS "GCC >= 4.3") ++OPTION(USE_OPENMP "Use openmp threading support." ON) ++IF(USE_OPENMP) ++ IF(MSVC) + FIND_PACKAGE(OpenMP REQUIRED) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") ++ ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX) ++ EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) ++ IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3) ++ MESSAGE(STATUS "GCC >= 4.3") ++ FIND_PACKAGE(OpenMP REQUIRED) ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") ++ ENDIF() + ENDIF() + ENDIF() diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-cmake.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-cmake.patch new file mode 100644 index 0000000000..5564ebadc9 --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-cmake.patch @@ -0,0 +1,22 @@ +--- a/CMakeLists.txt 2019-06-09 21:18:38.000000000 +0200 ++++ b/CMakeLists.txt 2019-09-15 23:53:19.496802424 +0200 +@@ -5,19 +5,6 @@ + CMAKE_POLICY(SET CMP0053 NEW) + PROJECT("Luminance HDR") + +-string(TOLOWER ${CMAKE_BUILD_TYPE} LOWERCASE_CMAKE_BUILD_TYPE) +-if(LOWERCASE_CMAKE_BUILD_TYPE MATCHES "^(debug|release|relwithdebinfo|minsizerel)$") +- message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") +-else() +- message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}\n" +- "CMAKE_BUILD_TYPE should be one of:\nDebug, Release, RelWithDebInfo, MinSizeRel") +-endif() +- +-if(LOWERCASE_CMAKE_BUILD_TYPE MATCHES "^(release|minsizerel)$") +- message(STATUS "Adding definitions: -DQT_NO_DEBUG_OUTPUT") +- add_definitions("-DQT_NO_DEBUG_OUTPUT") +-endif() +- + # assume built-in pthreads on MacOS + IF(APPLE) + enable_language(CXX) diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-docs.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-docs.patch new file mode 100644 index 0000000000..982c7ebfac --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-docs.patch @@ -0,0 +1,15 @@ +--- a/CMakeLists.txt 2019-06-09 21:18:38.000000000 +0200 ++++ b/CMakeLists.txt 2019-09-15 23:43:41.005292354 +0200 +@@ -413,12 +413,6 @@ + INSTALL(FILES ${CMAKE_SOURCE_DIR}/program-icons/luminance-hdr.png DESTINATION share/icons/hicolor/48x48/apps) # icon + INSTALL(FILES ${CMAKE_SOURCE_DIR}/net.sourceforge.qtpfsgui.LuminanceHDR.desktop DESTINATION share/applications) #desktop entry + INSTALL(FILES ${CMAKE_SOURCE_DIR}/net.sourceforge.qtpfsgui.LuminanceHDR.appdata.xml DESTINATION share/appdata) #appstream +- INSTALL(FILES +- ${CMAKE_SOURCE_DIR}/AUTHORS +- ${CMAKE_SOURCE_DIR}/README.md +- ${CMAKE_SOURCE_DIR}/LICENSE +- ${CMAKE_SOURCE_DIR}/Changelog +- DESTINATION share/luminance-hdr/doc) #info files + INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/help DESTINATION share/luminance-hdr) # help directory + INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/hdrhtml DESTINATION share/luminance-hdr) # hdrhtml directory + # Microsoft Windows diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-no-git.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-no-git.patch new file mode 100644 index 0000000000..1d95930404 --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.6.0-no-git.patch @@ -0,0 +1,15 @@ +--- a/CMakeLists.txt 2019-06-09 21:18:38.000000000 +0200 ++++ b/CMakeLists.txt 2019-09-15 23:41:24.684413834 +0200 +@@ -103,11 +103,7 @@ + set(LIBS ${LIBS} ${QT_QTWEBKIT_LIBRARIES}) + endif() + +-FIND_PACKAGE(Git) +-IF(GIT_FOUND) +- include(GetGitRevisionDescription) +- get_git_head_revision(GIT_REFSPEC GIT_SHA1) +-ENDIF() ++SET(GIT_SHA1 "-- Slackware build --") + + IF(WIN32) + diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-fixheaders.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-fixheaders.patch new file mode 100644 index 0000000000..58974ea998 --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-fixheaders.patch @@ -0,0 +1,15 @@ +Source: arch linux + +diff --git a/src/Common/init_fftw.h b/src/Common/init_fftw.h +index af2fc02c..a4aad47f 100644 +--- a/src/Common/init_fftw.h ++++ b/src/Common/init_fftw.h +@@ -22,7 +22,7 @@ + #ifndef INIT_FFTW_H + #define INIT_FFTW_H + +-#include ++#include + + class FFTW_MUTEX { + public: diff --git a/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-openexr3.patch b/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-openexr3.patch new file mode 100644 index 0000000000..9ab2832987 --- /dev/null +++ b/graphics/luminance-hdr/patches/luminance-hdr-2.6.1.1-openexr3.patch @@ -0,0 +1,28 @@ +Source: arch linux + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8ff498d0..23f5c387 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -191,7 +191,7 @@ INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR}) + FIND_PACKAGE(PNG REQUIRED) + INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR}) + +-FIND_PACKAGE(OpenEXR REQUIRED) ++FIND_PACKAGE(OpenEXR CONFIG REQUIRED) + INCLUDE_DIRECTORIES(${OPENEXR_INCLUDE_DIR} "${OPENEXR_INCLUDE_DIR}/OpenEXR") + + FIND_PACKAGE(GSL REQUIRED) +diff --git a/src/Libpfs/CMakeLists.txt b/src/Libpfs/CMakeLists.txt +index 80617998..ce3c746e 100644 +--- a/src/Libpfs/CMakeLists.txt ++++ b/src/Libpfs/CMakeLists.txt +@@ -12,7 +12,7 @@ ADD_SUBDIRECTORY(colorspace) + ADD_SUBDIRECTORY(io) + + ADD_LIBRARY(pfs STATIC ${LIBPFS_H} ${LIBPFS_HXX} ${LIBPFS_CPP}) +-TARGET_LINK_LIBRARIES(pfs Qt5::Core Qt5::Gui Qt5::Widgets) ++TARGET_LINK_LIBRARIES(pfs Qt5::Core Qt5::Gui Qt5::Widgets OpenEXR::OpenEXR) + + SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} pfs PARENT_SCOPE) + SET(LUMINANCE_MODULES_CLI ${LUMINANCE_MODULES_CLI} pfs PARENT_SCOPE) diff --git a/graphics/openimageio/ffmpeg-5.1.patch b/graphics/openimageio/ffmpeg-5.1.patch new file mode 100644 index 0000000000..d1c4251d90 --- /dev/null +++ b/graphics/openimageio/ffmpeg-5.1.patch @@ -0,0 +1,27 @@ +--- oiio-Release-2.2.21.0/src/cmake/modules/FindFFmpeg.cmake 2022-07-02 00:43:12.000000000 +0200 ++++ oiio-Release-2.2.21.0-fixed/src/cmake/modules/FindFFmpeg.cmake 2022-11-09 20:24:14.949122097 +0100 +@@ -59,17 +59,19 @@ + endif () + + if (FFMPEG_INCLUDES) +- file(STRINGS "${FFMPEG_INCLUDES}/libavcodec/version.h" TMP ++ file(STRINGS "${FFMPEG_INCLUDES}/libavcodec/version_major.h" TMP + REGEX "^#define LIBAVCODEC_VERSION_MAJOR .*$") +- string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MAJOR ${TMP}) ++ string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MAJOR "${TMP}") + file(STRINGS "${FFMPEG_INCLUDES}/libavcodec/version.h" TMP + REGEX "^#define LIBAVCODEC_VERSION_MINOR .*$") +- string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MINOR ${TMP}) ++ string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MINOR "${TMP}") + file(STRINGS "${FFMPEG_INCLUDES}/libavcodec/version.h" TMP + REGEX "^#define LIBAVCODEC_VERSION_MICRO .*$") +- string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MICRO ${TMP}) ++ string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MICRO "${TMP}") + set (LIBAVCODEC_VERSION "${LIBAVCODEC_VERSION_MAJOR}.${LIBAVCODEC_VERSION_MINOR}.${LIBAVCODEC_VERSION_MICRO}") +- if (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 59.18.100) ++ if (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 59.37.100) ++ set (FFMPEG_VERSION 5.1) ++ elseif (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 59.18.100) + set (FFMPEG_VERSION 5.0) + elseif (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 58.134.100) + set (FFMPEG_VERSION 4.4) diff --git a/graphics/openimageio/openimageio.SlackBuild b/graphics/openimageio/openimageio.SlackBuild index d5a820a96d..fcb28f9aa0 100644 --- a/graphics/openimageio/openimageio.SlackBuild +++ b/graphics/openimageio/openimageio.SlackBuild @@ -90,6 +90,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/ffmpeg-5.1.patch + mkdir -p build cd build cmake ../ \ diff --git a/graphics/rawtherapee/rawtherapee-glibc-2.34.patch b/graphics/rawtherapee/rawtherapee-glibc-2.34.patch new file mode 100644 index 0000000000..ea13f6ab9b --- /dev/null +++ b/graphics/rawtherapee/rawtherapee-glibc-2.34.patch @@ -0,0 +1,352 @@ +diff --git a/rtengine/canon_cr3_decoder.cc b/rtengine/canon_cr3_decoder.cc +index 6274154cb..98c743dad 100644 +--- a/rtengine/canon_cr3_decoder.cc ++++ b/rtengine/canon_cr3_decoder.cc +@@ -662,7 +662,7 @@ std::uint32_t _byteswap_ulong(std::uint32_t x) + #endif + + struct LibRaw_abstract_datastream { +- IMFILE* ifp; ++ rtengine::IMFILE* ifp; + + void lock() + { +diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc +index 812f122b3..5da696af2 100644 +--- a/rtengine/dcraw.cc ++++ b/rtengine/dcraw.cc +@@ -2025,7 +2025,7 @@ void CLASS phase_one_load_raw_c() + #endif + { + int len[2], pred[2]; +- IMFILE ifpthr = *ifp; ++ rtengine::IMFILE ifpthr = *ifp; + ifpthr.plistener = nullptr; + + #ifdef _OPENMP +@@ -3380,7 +3380,7 @@ void CLASS sony_arw2_load_raw() + { + uchar *data = new (std::nothrow) uchar[raw_width + 1]; + merror(data, "sony_arw2_load_raw()"); +- IMFILE ifpthr = *ifp; ++ rtengine::IMFILE ifpthr = *ifp; + int pos = ifpthr.pos; + ushort pix[16]; + +@@ -6394,7 +6394,7 @@ int CLASS parse_tiff_ifd (int base) + unsigned sony_curve[] = { 0,0,0,0,0,4095 }; + unsigned *buf, sony_offset=0, sony_length=0, sony_key=0; + struct jhead jh; +-/*RT*/ IMFILE *sfp; ++/*RT*/ rtengine::IMFILE *sfp; + /*RT*/ int pana_raw = 0; + + if (tiff_nifds >= sizeof tiff_ifd / sizeof tiff_ifd[0]) +@@ -6958,7 +6958,7 @@ it under the terms of the one of two licenses as you choose: + fread (buf, sony_length, 1, ifp); + sony_decrypt (buf, sony_length/4, 1, sony_key); + sfp = ifp; +-/*RT*/ ifp = fopen (buf, sony_length); ++/*RT*/ ifp = rtengine::fopen (buf, sony_length); + // if ((ifp = tmpfile())) { + // fwrite (buf, sony_length, 1, ifp); + // fseek (ifp, 0, SEEK_SET); +@@ -7264,7 +7264,7 @@ void CLASS parse_external_jpeg() + { + const char *file, *ext; + char *jname, *jfile, *jext; +-/*RT*/ IMFILE *save=ifp; ++/*RT*/ rtengine::IMFILE *save=ifp; + + ext = strrchr (ifname, '.'); + file = strrchr (ifname, '/'); +@@ -7292,7 +7292,7 @@ void CLASS parse_external_jpeg() + *jext = '0'; + } + if (strcmp (jname, ifname)) { +-/*RT*/ if ((ifp = fopen (jname))) { ++/*RT*/ if ((ifp = rtengine::fopen (jname))) { + // if ((ifp = fopen (jname, "rb"))) { + if (verbose) + fprintf (stderr,_("Reading metadata from %s ...\n"), jname); +diff --git a/rtengine/dcraw.h b/rtengine/dcraw.h +index 89c1fcaff..f25157088 100644 +--- a/rtengine/dcraw.h ++++ b/rtengine/dcraw.h +@@ -73,7 +73,7 @@ public: + + protected: + int exif_base, ciff_base, ciff_len; +- IMFILE *ifp; ++ rtengine::IMFILE *ifp; + FILE *ofp; + short order; + const char *ifname; +@@ -125,7 +125,7 @@ protected: + int cur_buf_size; // buffer size + uchar *cur_buf; // currently read block + int fillbytes; // Counter to add extra byte for block size N*16 +- IMFILE *input; ++ rtengine::IMFILE *input; + struct int_pair grad_even[3][41]; // tables of gradients + struct int_pair grad_odd[3][41]; + ushort *linealloc; +@@ -278,7 +278,7 @@ void parse_redcine(); + class getbithuff_t + { + public: +- getbithuff_t(DCraw *p,IMFILE *&i, unsigned &z):parent(p),bitbuf(0),vbits(0),reset(0),ifp(i),zero_after_ff(z){} ++ getbithuff_t(DCraw *p,rtengine::IMFILE *&i, unsigned &z):parent(p),bitbuf(0),vbits(0),reset(0),ifp(i),zero_after_ff(z){} + unsigned operator()(int nbits, ushort *huff); + + private: +@@ -288,7 +288,7 @@ private: + DCraw *parent; + unsigned bitbuf; + int vbits, reset; +- IMFILE *&ifp; ++ rtengine::IMFILE *&ifp; + unsigned &zero_after_ff; + }; + getbithuff_t getbithuff; +@@ -296,7 +296,7 @@ getbithuff_t getbithuff; + class nikbithuff_t + { + public: +- explicit nikbithuff_t(IMFILE *&i):bitbuf(0),errors(0),vbits(0),ifp(i){} ++ explicit nikbithuff_t(rtengine::IMFILE *&i):bitbuf(0),errors(0),vbits(0),ifp(i){} + void operator()() {bitbuf = vbits = 0;}; + unsigned operator()(int nbits, ushort *huff); + unsigned errorCount() { return errors; } +@@ -309,7 +309,7 @@ private: + } + unsigned bitbuf, errors; + int vbits; +- IMFILE *&ifp; ++ rtengine::IMFILE *&ifp; + }; + nikbithuff_t nikbithuff; + +@@ -378,7 +378,7 @@ void parse_qt (int end); + // ph1_bithuff(int nbits, ushort *huff); + class ph1_bithuff_t { + public: +- ph1_bithuff_t(DCraw *p, IMFILE *i, short &o):order(o),ifp(i),bitbuf(0),vbits(0){} ++ ph1_bithuff_t(DCraw *p, rtengine::IMFILE *i, short &o):order(o),ifp(i),bitbuf(0),vbits(0){} + unsigned operator()(int nbits, ushort *huff); + unsigned operator()(int nbits); + unsigned operator()(); +@@ -412,7 +412,7 @@ private: + } + + short ℴ +- IMFILE* const ifp; ++ rtengine::IMFILE* const ifp; + UINT64 bitbuf; + int vbits; + }; +@@ -430,11 +430,11 @@ void nokia_load_raw(); + + class pana_bits_t{ + public: +- pana_bits_t(IMFILE *i, unsigned &u, unsigned enc): ++ pana_bits_t(rtengine::IMFILE *i, unsigned &u, unsigned enc): + ifp(i), load_flags(u), vbits(0), encoding(enc) {} + unsigned operator()(int nbits, unsigned *bytes=nullptr); + private: +- IMFILE *ifp; ++ rtengine::IMFILE *ifp; + unsigned &load_flags; + uchar buf[0x4000]; + int vbits; +diff --git a/rtengine/dfmanager.cc b/rtengine/dfmanager.cc +index 1fb1d2e1b..951df2248 100644 +--- a/rtengine/dfmanager.cc ++++ b/rtengine/dfmanager.cc +@@ -540,7 +540,7 @@ std::vector *DFManager::getHotPixels ( const std::string &mak, const std + + int DFManager::scanBadPixelsFile( Glib::ustring filename ) + { +- FILE *file = fopen( filename.c_str(), "r" ); ++ FILE *file = ::fopen( filename.c_str(), "r" ); + + if( !file ) { + return false; +diff --git a/rtengine/myfile.cc b/rtengine/myfile.cc +index 842766dcf..2321d18bb 100644 +--- a/rtengine/myfile.cc ++++ b/rtengine/myfile.cc +@@ -70,7 +70,7 @@ int munmap(void *start, size_t length) + + #ifdef MYFILE_MMAP + +-IMFILE* fopen (const char* fname) ++rtengine::IMFILE* rtengine::fopen (const char* fname) + { + int fd; + +@@ -123,13 +123,13 @@ IMFILE* fopen (const char* fname) + return mf; + } + +-IMFILE* gfopen (const char* fname) ++rtengine::IMFILE* rtengine::gfopen (const char* fname) + { + return fopen(fname); + } + #else + +-IMFILE* fopen (const char* fname) ++rtengine::IMFILE* rtengine::fopen (const char* fname) + { + + FILE* f = g_fopen (fname, "rb"); +@@ -152,7 +152,7 @@ IMFILE* fopen (const char* fname) + return mf; + } + +-IMFILE* gfopen (const char* fname) ++rtengine::IMFILE* rtengine::gfopen (const char* fname) + { + + FILE* f = g_fopen (fname, "rb"); +@@ -176,7 +176,7 @@ IMFILE* gfopen (const char* fname) + } + #endif //MYFILE_MMAP + +-IMFILE* fopen (unsigned* buf, int size) ++rtengine::IMFILE* rtengine::fopen (unsigned* buf, int size) + { + + IMFILE* mf = new IMFILE; +@@ -190,7 +190,7 @@ IMFILE* fopen (unsigned* buf, int size) + return mf; + } + +-void fclose (IMFILE* f) ++void rtengine::fclose (IMFILE* f) + { + #ifdef MYFILE_MMAP + +@@ -207,7 +207,7 @@ void fclose (IMFILE* f) + delete f; + } + +-int fscanf (IMFILE* f, const char* s ...) ++int rtengine::fscanf (IMFILE* f, const char* s ...) + { + // fscanf not easily wrapped since we have no terminating \0 at end + // of file data and vsscanf() won't tell us how many characters that +@@ -253,7 +253,7 @@ int fscanf (IMFILE* f, const char* s ...) + } + + +-char* fgets (char* s, int n, IMFILE* f) ++char* rtengine::fgets (char* s, int n, IMFILE* f) + { + + if (f->pos >= f->size) { +@@ -270,7 +270,7 @@ char* fgets (char* s, int n, IMFILE* f) + return s; + } + +-void imfile_set_plistener(IMFILE *f, rtengine::ProgressListener *plistener, double progress_range) ++void rtengine::imfile_set_plistener(IMFILE *f, rtengine::ProgressListener *plistener, double progress_range) + { + f->plistener = plistener; + f->progress_range = progress_range; +@@ -278,7 +278,7 @@ void imfile_set_plistener(IMFILE *f, rtengine::ProgressListener *plistener, doub + f->progress_current = 0; + } + +-void imfile_update_progress(IMFILE *f) ++void rtengine::imfile_update_progress(IMFILE *f) + { + if (!f->plistener || f->progress_current < f->progress_next) { + return; +diff --git a/rtengine/myfile.h b/rtengine/myfile.h +index 423edea9a..c655696e6 100644 +--- a/rtengine/myfile.h ++++ b/rtengine/myfile.h +@@ -30,8 +30,6 @@ namespace rtengine + + class ProgressListener; + +-} +- + struct IMFILE { + int fd; + ssize_t pos; +@@ -141,3 +139,5 @@ inline unsigned char* fdata(int offset, IMFILE* f) + + int fscanf (IMFILE* f, const char* s ...); + char* fgets (char* s, int n, IMFILE* f); ++ ++} +diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc +index 9da601e2a..e730842bc 100644 +--- a/rtengine/rtthumbnail.cc ++++ b/rtengine/rtthumbnail.cc +@@ -1922,7 +1922,7 @@ bool Thumbnail::writeImage (const Glib::ustring& fname) + + Glib::ustring fullFName = fname + ".rtti"; + +- FILE* f = g_fopen (fullFName.c_str (), "wb"); ++ FILE* f = ::g_fopen (fullFName.c_str (), "wb"); + + if (!f) { + return false; +@@ -1965,7 +1965,7 @@ bool Thumbnail::readImage (const Glib::ustring& fname) + return false; + } + +- FILE* f = g_fopen(fullFName.c_str (), "rb"); ++ FILE* f = ::g_fopen(fullFName.c_str (), "rb"); + + if (!f) { + return false; +@@ -2191,7 +2191,7 @@ bool Thumbnail::writeData (const Glib::ustring& fname) + return false; + } + +- FILE *f = g_fopen (fname.c_str (), "wt"); ++ FILE *f = ::g_fopen (fname.c_str (), "wt"); + + if (!f) { + if (settings->verbose) { +@@ -2214,7 +2214,7 @@ bool Thumbnail::readEmbProfile (const Glib::ustring& fname) + embProfile = nullptr; + embProfileLength = 0; + +- FILE* f = g_fopen (fname.c_str (), "rb"); ++ FILE* f = ::g_fopen (fname.c_str (), "rb"); + + if (f) { + if (!fseek (f, 0, SEEK_END)) { +@@ -2242,7 +2242,7 @@ bool Thumbnail::writeEmbProfile (const Glib::ustring& fname) + { + + if (embProfileData) { +- FILE* f = g_fopen (fname.c_str (), "wb"); ++ FILE* f = ::g_fopen (fname.c_str (), "wb"); + + if (f) { + fwrite (embProfileData, 1, embProfileLength, f); +@@ -2257,7 +2257,7 @@ bool Thumbnail::writeEmbProfile (const Glib::ustring& fname) + bool Thumbnail::readAEHistogram (const Glib::ustring& fname) + { + +- FILE* f = g_fopen(fname.c_str(), "rb"); ++ FILE* f = ::g_fopen(fname.c_str(), "rb"); + + if (!f) { + aeHistogram.reset(); +@@ -2280,7 +2280,7 @@ bool Thumbnail::writeAEHistogram (const Glib::ustring& fname) + { + + if (aeHistogram) { +- FILE* f = g_fopen (fname.c_str (), "wb"); ++ FILE* f = ::g_fopen (fname.c_str (), "wb"); + + if (f) { + fwrite (&aeHistogram[0], 1, (65536 >> aeHistCompression)*sizeof (aeHistogram[0]), f); diff --git a/graphics/rawtherapee/rawtherapee.SlackBuild b/graphics/rawtherapee/rawtherapee.SlackBuild index 80364a7a67..3f05e332c6 100644 --- a/graphics/rawtherapee/rawtherapee.SlackBuild +++ b/graphics/rawtherapee/rawtherapee.SlackBuild @@ -79,6 +79,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Thanks Archlinux! +patch -p1 < $CWD/rawtherapee-glibc-2.34.patch + mkdir -p build cd build cmake \ diff --git a/libraries/aubio/aubio-0.4.9-ffmpeg-5.0.patch b/libraries/aubio/aubio-0.4.9-ffmpeg-5.0.patch new file mode 100644 index 0000000000..e473f596f4 --- /dev/null +++ b/libraries/aubio/aubio-0.4.9-ffmpeg-5.0.patch @@ -0,0 +1,14 @@ +diff -up aubio-0.4.9/src/io/source_avcodec.c.omv~ aubio-0.4.9/src/io/source_avcodec.c +--- aubio-0.4.9/src/io/source_avcodec.c.omv~ 2022-01-16 03:12:59.164776223 +0100 ++++ aubio-0.4.9/src/io/source_avcodec.c 2022-01-16 03:13:44.000066377 +0100 +@@ -68,6 +68,10 @@ + #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE + #endif + ++#if LIBAVCODEC_VERSION_MAJOR >= 59 ++#define FF_API_LAVF_AVCTX 1 ++#endif ++ + struct _aubio_source_avcodec_t { + uint_t hop_size; + uint_t samplerate; diff --git a/libraries/aubio/aubio.SlackBuild b/libraries/aubio/aubio.SlackBuild index f034b00b67..f4e1b57480 100644 --- a/libraries/aubio/aubio.SlackBuild +++ b/libraries/aubio/aubio.SlackBuild @@ -87,6 +87,8 @@ sed -i "s|'HAVE_' + i in ctx.env.define_key|'HAVE_' + i in ctx.env|" \ # Fix the build system... sed -i "s|'\${DATAROOTDIR}' + '/doc/libaubio-doc|'\${DOCDIR}|" wscript || exit 1 +patch -p1 < $CWD/aubio-0.4.9-ffmpeg-5.0.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./waf configure \ diff --git a/libraries/chromaprint/chromaprint.SlackBuild b/libraries/chromaprint/chromaprint.SlackBuild index 3b01f015bc..7ec8bf6a04 100644 --- a/libraries/chromaprint/chromaprint.SlackBuild +++ b/libraries/chromaprint/chromaprint.SlackBuild @@ -83,6 +83,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/ffmpeg5.patch + mkdir -p build cd build cmake \ diff --git a/libraries/chromaprint/ffmpeg5.patch b/libraries/chromaprint/ffmpeg5.patch new file mode 100644 index 0000000000..d90767fd14 --- /dev/null +++ b/libraries/chromaprint/ffmpeg5.patch @@ -0,0 +1,76 @@ +From 6d938d70b1d52634f8b0d88cb29da87f8d5b35a2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= +Date: Mon, 17 Jan 2022 04:41:33 +0100 +Subject: [PATCH] Port to ffmpeg 5.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Replace removed functionality like accessing the codec context +from an AVStream and avcodec_decode_audio4() + +Signed-off-by: Bernhard Rosenkränzer +--- + src/audio/ffmpeg_audio_reader.h | 24 ++++++++++++++++++++++-- + 1 file changed, 22 insertions(+), 2 deletions(-) + +diff --git a/src/audio/ffmpeg_audio_reader.h b/src/audio/ffmpeg_audio_reader.h +index 5550164..a3b8de7 100644 +--- a/src/audio/ffmpeg_audio_reader.h ++++ b/src/audio/ffmpeg_audio_reader.h +@@ -74,7 +74,7 @@ class FFmpegAudioReader { + uint8_t *m_convert_buffer[1] = { nullptr }; + int m_convert_buffer_nb_samples = 0; + +- AVInputFormat *m_input_fmt = nullptr; ++ const AVInputFormat *m_input_fmt = nullptr; + AVDictionary *m_input_opts = nullptr; + + AVFormatContext *m_format_ctx = nullptr; +@@ -153,7 +153,7 @@ inline bool FFmpegAudioReader::Open(const std::string &file_name) { + return false; + } + +- AVCodec *codec; ++ const AVCodec *codec; + ret = av_find_best_stream(m_format_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &codec, 0); + if (ret < 0) { + SetError("Could not find any audio stream in the file", ret); +@@ -161,7 +161,13 @@ inline bool FFmpegAudioReader::Open(const std::string &file_name) { + } + m_stream_index = ret; + ++#if LIBAVCODEC_VERSION_MAJOR >= 59 ++ const AVCodec *streamcodec = avcodec_find_decoder(m_format_ctx->streams[m_stream_index]->codecpar->codec_id); ++ m_codec_ctx = avcodec_alloc_context3(streamcodec); ++ avcodec_parameters_to_context(m_codec_ctx, m_format_ctx->streams[m_stream_index]->codecpar); ++#else + m_codec_ctx = m_format_ctx->streams[m_stream_index]->codec; ++#endif + m_codec_ctx->request_sample_fmt = AV_SAMPLE_FMT_S16; + + ret = avcodec_open2(m_codec_ctx, codec, nullptr); +@@ -278,7 +284,23 @@ inline bool FFmpegAudioReader::Read(const int16_t **data, size_t *size) { + } + } + ++#if LIBAVCODEC_VERSION_MAJOR < 59 + ret = avcodec_decode_audio4(m_codec_ctx, m_frame, &m_got_frame, &m_packet); ++#else ++ m_got_frame = 0; ++ ret = avcodec_send_packet(m_codec_ctx, &m_packet); ++ if(ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) ++ ret = 0; ++ if(ret >= 0) { ++ ret = avcodec_receive_frame(m_codec_ctx, m_frame); ++ if (ret == 0) { ++ m_got_frame = 1; ++ ret = m_packet.size; ++ } ++ } ++ if(ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) ++ ret = 0; ++#endif + if (ret < 0) { + if (m_decode_error) { + SetError("Error decoding audio frame", m_decode_error); diff --git a/libraries/efl/efl.SlackBuild b/libraries/efl/efl.SlackBuild index a7b04cc830..504fd1be0a 100644 --- a/libraries/efl/efl.SlackBuild +++ b/libraries/efl/efl.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=efl -VERSION=${VERSION:-1.26.1} +VERSION=${VERSION:-1.26.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/libraries/efl/efl.info b/libraries/efl/efl.info index 4b54bcd6a2..8dbc39731d 100644 --- a/libraries/efl/efl.info +++ b/libraries/efl/efl.info @@ -1,8 +1,8 @@ PRGNAM="efl" -VERSION="1.26.1" +VERSION="1.26.2" HOMEPAGE="https://www.enlightenment.org/" -DOWNLOAD="https://download.enlightenment.org/rel/libs/efl/efl-1.26.1.tar.xz" -MD5SUM="a15205f096c028743c053a9b2d212390" +DOWNLOAD="https://download.enlightenment.org/rel/libs/efl/efl-1.26.2.tar.xz" +MD5SUM="7782daab5b37c77b8a72266e2e7915c8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="luajit bullet" diff --git a/libraries/fmt/README b/libraries/fmt/README deleted file mode 100644 index aac25b6316..0000000000 --- a/libraries/fmt/README +++ /dev/null @@ -1,2 +0,0 @@ -{fmt} is an open-source formatting library for C++. It can be used as a -safe and fast alternative to (s)printf and iostreams. diff --git a/libraries/fmt/fmt.SlackBuild b/libraries/fmt/fmt.SlackBuild deleted file mode 100644 index ed6dd501b5..0000000000 --- a/libraries/fmt/fmt.SlackBuild +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -# Slackware build script for fmt - -# Copyright 2019-2021 Hunter Sezen California, USA -# Copyright 2022 Steven Voges Oregon, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=fmt -VERSION=${VERSION:-9.1.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -eu - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -mkdir -p build -cd build - cmake \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ - -DBUILD_SHARED_LIBS=ON \ - -DCMAKE_SKIP_RPATH=TRUE \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd .. - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | - grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CONTRIBUTING.md ChangeLog.rst LICENSE.rst README.rst \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/fmt/fmt.info b/libraries/fmt/fmt.info deleted file mode 100644 index 2abb5d4d0f..0000000000 --- a/libraries/fmt/fmt.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="fmt" -VERSION="9.1.0" -HOMEPAGE="https://fmt.dev" -DOWNLOAD="https://github.com/fmtlib/fmt/archive/9.1.0/fmt-9.1.0.tar.gz" -MD5SUM="21fac48cae8f3b4a5783ae06b443973a" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Steven Voges" -EMAIL="svoges.sbo@gmail.com" diff --git a/libraries/fmt/slack-desc b/libraries/fmt/slack-desc deleted file mode 100644 index 01b96bb24d..0000000000 --- a/libraries/fmt/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -fmt: fmt (A modern formatting library) -fmt: -fmt: {fmt} is an open-source formatting library for C++. It can be used as -fmt: a safe and fast alternative to (s)printf and iostreams. -fmt: -fmt: Homepage: https://fmt.dev/ -fmt: -fmt: -fmt: -fmt: -fmt: diff --git a/libraries/iniparser/README b/libraries/iniparser/README deleted file mode 100644 index f9cd696418..0000000000 --- a/libraries/iniparser/README +++ /dev/null @@ -1,6 +0,0 @@ -Iniparser is a free stand-alone INI file parsing library. -It is written in portable ANSI C and should compile anywhere. - -WARNING: -This package will overwrite Samba's libiniparser.so -If you remove this package, don't forget to reinstall samba diff --git a/libraries/iniparser/iniparser.SlackBuild b/libraries/iniparser/iniparser.SlackBuild deleted file mode 100644 index 83ffb96692..0000000000 --- a/libraries/iniparser/iniparser.SlackBuild +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash - -# Slackware build script for Iniparser - -# Copyright 2017, Steven King -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# 20220418 bkw: Modified by SlackBuilds.org, BUILD=2: -# - actually use SLKCFLAGS. -# - remove the static library. -# - fix the shared library so it actually works. -# - install the shared lib stripped. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=iniparser -VERSION=${VERSION:-4.0} -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar vxf $CWD/${PRGNAM}-${VERSION}.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ - -# 20220418 bkw: previous version of this script tried to fix the -rpath -# info in the shared library, but was broken. this works: -sed -i "s,/usr/lib,/usr/lib$LIBDIRSUFFIX," Makefile - -# 20220418 bkw: SLKCFLAGS weren't being used. -CFLAGS="$SLKCFLAGS" \ -CXFLAGS="$SLKCFLAGS" \ -make V=1 - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} -mkdir -p $PKG/usr/include - -cp -ar AUTHORS LICENSE README.md html $PKG/usr/doc/$PRGNAM-$VERSION - -install -s -m0755 libiniparser.so.0 $PKG/usr/lib${LIBDIRSUFFIX} - -# 20220418 bkw: create the symlink gcc uses to link with this. -# previously, anything (such as cava) which linked with -# -liniparser was actually using the static library. -ln -s lib${PRGNAM}.so.0 $PKG/usr/lib$LIBDIRSUFFIX/lib${PRGNAM}.so - -cp -a ./src/dictionary.h ./src/iniparser.h $PKG/usr/include - -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/iniparser/iniparser.info b/libraries/iniparser/iniparser.info deleted file mode 100644 index de282c9c58..0000000000 --- a/libraries/iniparser/iniparser.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="iniparser" -VERSION="4.0" -HOMEPAGE="https://github.com/ndevilla/iniparser" -DOWNLOAD="https://github.com/ndevilla/iniparser/archive/v4.0/iniparser-4.0.tar.gz" -MD5SUM="94c7278f8d22de1a31320219b27634b0" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Steven King" -EMAIL="kingrst@gmail.com" diff --git a/libraries/iniparser/slack-desc b/libraries/iniparser/slack-desc deleted file mode 100644 index c410aaa786..0000000000 --- a/libraries/iniparser/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -iniparser: iniparser (A free stand-alone INI file parsing library) -iniparser: -iniparser: It is written in portable ANSI C and should compile anywhere. -iniparser: Iniparser is distributed under an MIT license. -iniparser: -iniparser: Homepage: http://ndevilla.free.fr/iniparser -iniparser: -iniparser: -iniparser: -iniparser: -iniparser: diff --git a/libraries/libopenshot/libopenshot.SlackBuild b/libraries/libopenshot/libopenshot.SlackBuild index 45cc4326c5..930a7d2ac2 100644 --- a/libraries/libopenshot/libopenshot.SlackBuild +++ b/libraries/libopenshot/libopenshot.SlackBuild @@ -76,7 +76,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -#patch -p1 < $CWD/512.patch +# Patches from debian (thanks!) +for i in $CWD/patches/* ; do patch -p1 < $i ; done + mkdir -p build cd build cmake \ diff --git a/libraries/libopenshot/patches/0002-constify-some-AVCodecIDs-necessary-for-new-ffmpeg.patch b/libraries/libopenshot/patches/0002-constify-some-AVCodecIDs-necessary-for-new-ffmpeg.patch new file mode 100644 index 0000000000..5d82696550 --- /dev/null +++ b/libraries/libopenshot/patches/0002-constify-some-AVCodecIDs-necessary-for-new-ffmpeg.patch @@ -0,0 +1,94 @@ +From: nick black +Date: Sun, 21 Nov 2021 23:25:37 -0500 +Subject: [PATCH] constify some AVCodecIDs, necessary for new ffmpeg + +Signed-off-by: nick black +--- + src/FFmpegReader.cpp | 6 +++--- + src/FFmpegWriter.cpp | 12 ++++++------ + 2 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/FFmpegReader.cpp b/src/FFmpegReader.cpp +index c1eaa74..497cff0 100644 +--- a/src/FFmpegReader.cpp ++++ b/src/FFmpegReader.cpp +@@ -255,10 +255,10 @@ void FFmpegReader::Open() { + pStream = pFormatCtx->streams[videoStream]; + + // Find the codec ID from stream +- AVCodecID codecId = AV_FIND_DECODER_CODEC_ID(pStream); ++ const AVCodecID codecId = AV_FIND_DECODER_CODEC_ID(pStream); + + // Get codec and codec context from stream +- AVCodec *pCodec = avcodec_find_decoder(codecId); ++ const AVCodec *pCodec = avcodec_find_decoder(codecId); + AVDictionary *opts = NULL; + int retry_decode_open = 2; + // If hw accel is selected but hardware cannot handle repeat with software decoding +@@ -512,7 +512,7 @@ void FFmpegReader::Open() { + AVCodecID codecId = AV_FIND_DECODER_CODEC_ID(aStream); + + // Get codec and codec context from stream +- AVCodec *aCodec = avcodec_find_decoder(codecId); ++ const AVCodec *aCodec = avcodec_find_decoder(codecId); + aCodecCtx = AV_GET_CODEC_CONTEXT(aStream, aCodec); + + // Set number of threads equal to number of processors (not to exceed 16) +diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp +index 8707756..823b345 100644 +--- a/src/FFmpegWriter.cpp ++++ b/src/FFmpegWriter.cpp +@@ -166,7 +166,7 @@ void FFmpegWriter::initialize_streams() { + void FFmpegWriter::SetVideoOptions(bool has_video, std::string codec, Fraction fps, int width, int height, Fraction pixel_ratio, bool interlaced, bool top_field_first, int bit_rate) { + // Set the video options + if (codec.length() > 0) { +- AVCodec *new_codec; ++ const AVCodec *new_codec; + // Check if the codec selected is a hardware accelerated codec + #if USE_HW_ACCEL + #if defined(__linux__) +@@ -288,7 +288,7 @@ void FFmpegWriter::SetVideoOptions(std::string codec, int width, int height, Fr + void FFmpegWriter::SetAudioOptions(bool has_audio, std::string codec, int sample_rate, int channels, ChannelLayout channel_layout, int bit_rate) { + // Set audio options + if (codec.length() > 0) { +- AVCodec *new_codec = avcodec_find_encoder_by_name(codec.c_str()); ++ const AVCodec *new_codec = avcodec_find_encoder_by_name(codec.c_str()); + if (new_codec == NULL) + throw InvalidCodec("A valid audio codec could not be found for this file.", path); + else { +@@ -1048,7 +1048,7 @@ AVStream *FFmpegWriter::add_audio_stream() { + AVStream *st; + + // Find the audio codec +- AVCodec *codec = avcodec_find_encoder_by_name(info.acodec.c_str()); ++ const AVCodec *codec = avcodec_find_encoder_by_name(info.acodec.c_str()); + if (codec == NULL) + throw InvalidCodec("A valid audio codec could not be found for this file.", path); + +@@ -1133,7 +1133,7 @@ AVStream *FFmpegWriter::add_video_stream() { + AVStream *st; + + // Find the video codec +- AVCodec *codec = avcodec_find_encoder_by_name(info.vcodec.c_str()); ++ const AVCodec *codec = avcodec_find_encoder_by_name(info.vcodec.c_str()); + if (codec == NULL) + throw InvalidCodec("A valid video codec could not be found for this file.", path); + +@@ -1313,7 +1313,7 @@ AVStream *FFmpegWriter::add_video_stream() { + + // open audio codec + void FFmpegWriter::open_audio(AVFormatContext *oc, AVStream *st) { +- AVCodec *codec; ++ const AVCodec *codec; + AV_GET_CODEC_FROM_STREAM(st, audio_codec_ctx) + + // Set number of threads equal to number of processors (not to exceed 16) +@@ -1384,7 +1384,7 @@ void FFmpegWriter::open_audio(AVFormatContext *oc, AVStream *st) { + + // open video codec + void FFmpegWriter::open_video(AVFormatContext *oc, AVStream *st) { +- AVCodec *codec; ++ const AVCodec *codec; + AV_GET_CODEC_FROM_STREAM(st, video_codec_ctx) + + // Set number of threads equal to number of processors (not to exceed 16) diff --git a/libraries/libopenshot/patches/0003-FFmpegWriter-Macro-member-cleanup.patch b/libraries/libopenshot/patches/0003-FFmpegWriter-Macro-member-cleanup.patch new file mode 100644 index 0000000000..9aa09ac076 --- /dev/null +++ b/libraries/libopenshot/patches/0003-FFmpegWriter-Macro-member-cleanup.patch @@ -0,0 +1,344 @@ +From: "FeRD (Frank Dana)" +Date: Thu, 24 Feb 2022 07:29:08 -0500 +Subject: [PATCH] FFmpegWriter: Macro & member cleanup + +- The `fmt` class member, which was of type AVFormat*, was really + just an unnecessary copy of `(AVFormatContext*)oc->oformat`. + But we were ASSIGNING into its members, which we were definitely + not supposed to be doing. (And in recent FFmpegs, now that + `AVFormat` has been `const`d, we can't.) It's gone; now we just + use `oc->oformat` anywhere we used to access `fmt`. + +- The preprocessor macro to allocate a new _stream_ was a mess of + cross purposes: It did allocate a stream, but then it also + allocated a new AvCodecCtx on newer FFmpeg releases. Worse (and + always galling to me), it proceeded to assign to a variable + that WASN'T passed in to the macro, just taking it on faith that + it would only be used where that variable was defined. That's + just... ugh. So I broke it apart into two steps (stream creation + and context allocation), realized the stream creation code was + the same for all ffmpeg versions and didn't need to be a macro + at all, and now a 4-parameter, 6-line magical macro has been + replaced with a simple, zero-side-effect one-liner. + +- I also cleaned up the add_video_stream() code to be more like + the add_audio_stream() code, since they were bad-different for + no discernible reason. +--- + src/FFmpegUtilities.h | 37 +++++------------- + src/FFmpegWriter.cpp | 105 ++++++++++++++++++++++++++++++-------------------- + src/FFmpegWriter.h | 3 +- + 3 files changed, 73 insertions(+), 72 deletions(-) + +diff --git a/src/FFmpegUtilities.h b/src/FFmpegUtilities.h +index 42358ee..46fea61 100644 +--- a/src/FFmpegUtilities.h ++++ b/src/FFmpegUtilities.h +@@ -200,13 +200,8 @@ inline static bool ffmpeg_has_alpha(PixelFormat pix_fmt) { + #define AV_OPTION_SET( av_stream, priv_data, name, value, avcodec) \ + av_opt_set(priv_data, name, value, 0); \ + avcodec_parameters_from_context(av_stream->codecpar, avcodec); +- #define AV_FORMAT_NEW_STREAM(oc, st_codec_ctx, av_codec, av_st) \ +- av_st = avformat_new_stream(oc, NULL);\ +- if (!av_st) \ +- throw OutOfMemory("Could not allocate memory for the video stream.", path); \ +- c = avcodec_alloc_context3(av_codec); \ +- st_codec_ctx = c; \ +- av_st->codecpar->codec_id = av_codec->id; ++ #define ALLOC_CODEC_CTX(ctx, codec, stream) \ ++ ctx = avcodec_alloc_context3(codec); + #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec_ctx) \ + avcodec_parameters_from_context(av_stream->codecpar, av_codec_ctx); + +@@ -244,16 +239,8 @@ inline static bool ffmpeg_has_alpha(PixelFormat pix_fmt) { + #define AV_OPTION_SET( av_stream, priv_data, name, value, avcodec) \ + av_opt_set(priv_data, name, value, 0); \ + avcodec_parameters_from_context(av_stream->codecpar, avcodec); +- #define AV_FORMAT_NEW_STREAM(oc, st_codec, av_codec, av_st) \ +- av_st = avformat_new_stream(oc, NULL);\ +- if (!av_st) \ +- throw OutOfMemory("Could not allocate memory for the video stream.", path); \ +- _Pragma ("GCC diagnostic push"); \ +- _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\""); \ +- avcodec_get_context_defaults3(av_st->codec, av_codec); \ +- c = av_st->codec; \ +- _Pragma ("GCC diagnostic pop"); \ +- st_codec = c; ++ #define ALLOC_CODEC_CTX(ctx, codec, stream) \ ++ ctx = avcodec_alloc_context3(codec); + #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec) \ + avcodec_parameters_from_context(av_stream->codecpar, av_codec); + +@@ -284,12 +271,9 @@ inline static bool ffmpeg_has_alpha(PixelFormat pix_fmt) { + #define AV_OUTPUT_CONTEXT(output_context, path) oc = avformat_alloc_context() + #define AV_OPTION_FIND(priv_data, name) av_opt_find(priv_data, name, NULL, 0, 0) + #define AV_OPTION_SET(av_stream, priv_data, name, value, avcodec) av_opt_set (priv_data, name, value, 0) +- #define AV_FORMAT_NEW_STREAM( oc, av_context, av_codec, av_st) \ +- av_st = avformat_new_stream(oc, av_codec); \ +- if (!av_st) \ +- throw OutOfMemory("Could not allocate memory for the video stream.", path); \ ++ #define ALLOC_CODEC_CTX(ctx, av_codec, stream) \ + avcodec_get_context_defaults3(av_st->codec, av_codec); \ +- c = av_st->codec; ++ ctx = av_st->codec; + #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec) + + #else +@@ -319,12 +303,9 @@ inline static bool ffmpeg_has_alpha(PixelFormat pix_fmt) { + #define AV_OUTPUT_CONTEXT(output_context, path) oc = avformat_alloc_context() + #define AV_OPTION_FIND(priv_data, name) av_opt_find(priv_data, name, NULL, 0, 0) + #define AV_OPTION_SET(av_stream, priv_data, name, value, avcodec) av_opt_set (priv_data, name, value, 0) +- #define AV_FORMAT_NEW_STREAM( oc, av_context, av_codec, av_st) \ +- av_st = avformat_new_stream(oc, av_codec); \ +- if (!av_st) \ +- throw OutOfMemory("Could not allocate memory for the video stream.", path); \ +- avcodec_get_context_defaults3(av_st->codec, av_codec); \ +- c = av_st->codec; ++ #define ALLOC_CODEC_CTX(ctx, av_codec, stream) \ ++ avcodec_get_context_defaults3(stream->codec, av_codec); \ ++ ctx = stream->codec; + #define AV_COPY_PARAMS_FROM_CONTEXT(av_stream, av_codec) + #endif + +diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp +index 823b345..c43dcff 100644 +--- a/src/FFmpegWriter.cpp ++++ b/src/FFmpegWriter.cpp +@@ -81,7 +81,7 @@ static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx, int6 + #endif // USE_HW_ACCEL + + FFmpegWriter::FFmpegWriter(const std::string& path) : +- path(path), fmt(NULL), oc(NULL), audio_st(NULL), video_st(NULL), samples(NULL), ++ path(path), oc(NULL), audio_st(NULL), video_st(NULL), samples(NULL), + audio_outbuf(NULL), audio_outbuf_size(0), audio_input_frame_size(0), audio_input_position(0), + initial_audio_input_frame_size(0), img_convert_ctx(NULL), cache_size(8), num_of_rescalers(32), + rescaler_position(0), video_codec_ctx(NULL), audio_codec_ctx(NULL), is_writing(false), video_timestamp(0), audio_timestamp(0), +@@ -123,41 +123,46 @@ void FFmpegWriter::Open() { + + // auto detect format (from path) + void FFmpegWriter::auto_detect_format() { +- // Auto detect the output format from the name. default is mpeg. +- fmt = av_guess_format(NULL, path.c_str(), NULL); +- if (!fmt) +- throw InvalidFormat("Could not deduce output format from file extension.", path); + + // Allocate the output media context + AV_OUTPUT_CONTEXT(&oc, path.c_str()); +- if (!oc) +- throw OutOfMemory("Could not allocate memory for AVFormatContext.", path); ++ if (!oc) { ++ throw OutOfMemory( ++ "Could not allocate memory for AVFormatContext.", path); ++ } + +- // Set the AVOutputFormat for the current AVFormatContext +- oc->oformat = fmt; ++ // Determine what format to use when encoding this output filename ++ oc->oformat = av_guess_format(NULL, path.c_str(), NULL); ++ if (oc->oformat == nullptr) { ++ throw InvalidFormat( ++ "Could not deduce output format from file extension.", path); ++ } + +- // Update codec names +- if (fmt->video_codec != AV_CODEC_ID_NONE && info.has_video) +- // Update video codec name +- info.vcodec = avcodec_find_encoder(fmt->video_codec)->name; ++ // Update video codec name ++ if (oc->oformat->video_codec != AV_CODEC_ID_NONE && info.has_video) ++ info.vcodec = avcodec_find_encoder(oc->oformat->video_codec)->name; + +- if (fmt->audio_codec != AV_CODEC_ID_NONE && info.has_audio) +- // Update audio codec name +- info.acodec = avcodec_find_encoder(fmt->audio_codec)->name; ++ // Update audio codec name ++ if (oc->oformat->audio_codec != AV_CODEC_ID_NONE && info.has_audio) ++ info.acodec = avcodec_find_encoder(oc->oformat->audio_codec)->name; + } + + // initialize streams + void FFmpegWriter::initialize_streams() { +- ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::initialize_streams", "fmt->video_codec", fmt->video_codec, "fmt->audio_codec", fmt->audio_codec, "AV_CODEC_ID_NONE", AV_CODEC_ID_NONE); ++ ZmqLogger::Instance()->AppendDebugMethod( ++ "FFmpegWriter::initialize_streams", ++ "oc->oformat->video_codec", oc->oformat->video_codec, ++ "oc->oformat->audio_codec", oc->oformat->audio_codec, ++ "AV_CODEC_ID_NONE", AV_CODEC_ID_NONE); + + // Add the audio and video streams using the default format codecs and initialize the codecs + video_st = NULL; + audio_st = NULL; +- if (fmt->video_codec != AV_CODEC_ID_NONE && info.has_video) ++ if (oc->oformat->video_codec != AV_CODEC_ID_NONE && info.has_video) + // Add video stream + video_st = add_video_stream(); + +- if (fmt->audio_codec != AV_CODEC_ID_NONE && info.has_audio) ++ if (oc->oformat->audio_codec != AV_CODEC_ID_NONE && info.has_audio) + // Add audio stream + audio_st = add_audio_stream(); + } +@@ -228,9 +233,6 @@ void FFmpegWriter::SetVideoOptions(bool has_video, std::string codec, Fraction f + else { + // Set video codec + info.vcodec = new_codec->name; +- +- // Update video codec in fmt +- fmt->video_codec = new_codec->id; + } + } + if (fps.num > 0) { +@@ -294,9 +296,6 @@ void FFmpegWriter::SetAudioOptions(bool has_audio, std::string codec, int sample + else { + // Set audio codec + info.acodec = new_codec->name; +- +- // Update audio codec in fmt +- fmt->audio_codec = new_codec->id; + } + } + if (sample_rate > 7999) +@@ -634,7 +633,7 @@ void FFmpegWriter::WriteHeader() { + throw InvalidOptions("No video or audio options have been set. You must set has_video or has_audio (or both).", path); + + // Open the output file, if needed +- if (!(fmt->flags & AVFMT_NOFILE)) { ++ if (!(oc->oformat->flags & AVFMT_NOFILE)) { + if (avio_open(&oc->pb, path.c_str(), AVIO_FLAG_WRITE) < 0) + throw InvalidFile("Could not open or write file.", path); + } +@@ -786,9 +785,9 @@ void FFmpegWriter::write_queued_frames() { + // Done writing + is_writing = false; + +- // Raise exception from main thread +- if (has_error_encoding_video) +- throw ErrorEncodingVideo("Error while writing raw video frame", -1); ++ // Raise exception from main thread ++ if (has_error_encoding_video) ++ throw ErrorEncodingVideo("Error while writing raw video frame", -1); + } + + // Write a block of frames from a reader +@@ -1008,7 +1007,7 @@ void FFmpegWriter::Close() { + if (image_rescalers.size() > 0) + RemoveScalers(); + +- if (!(fmt->flags & AVFMT_NOFILE)) { ++ if (!(oc->oformat->flags & AVFMT_NOFILE)) { + /* close the output file */ + avio_close(oc->pb); + } +@@ -1044,21 +1043,27 @@ void FFmpegWriter::add_avframe(std::shared_ptr frame, AVFrame *av_frame) + + // Add an audio output stream + AVStream *FFmpegWriter::add_audio_stream() { +- AVCodecContext *c; +- AVStream *st; +- + // Find the audio codec + const AVCodec *codec = avcodec_find_encoder_by_name(info.acodec.c_str()); + if (codec == NULL) + throw InvalidCodec("A valid audio codec could not be found for this file.", path); + + // Free any previous memory allocations +- if (audio_codec_ctx != NULL) { ++ if (audio_codec_ctx != nullptr) { + AV_FREE_CONTEXT(audio_codec_ctx); + } + + // Create a new audio stream +- AV_FORMAT_NEW_STREAM(oc, audio_codec_ctx, codec, st) ++ AVStream* st = avformat_new_stream(oc, codec); ++ if (!st) ++ throw OutOfMemory("Could not allocate memory for the video stream.", path); ++ ++ // Allocate a new codec context for the stream ++ ALLOC_CODEC_CTX(audio_codec_ctx, codec, st) ++#if (LIBAVFORMAT_VERSION_MAJOR >= 58) ++ st->codecpar->codec_id = codec->id; ++#endif ++ AVCodecContext* c = audio_codec_ctx; + + c->codec_id = codec->id; + c->codec_type = AVMEDIA_TYPE_AUDIO; +@@ -1129,20 +1134,36 @@ AVStream *FFmpegWriter::add_audio_stream() { + + // Add a video output stream + AVStream *FFmpegWriter::add_video_stream() { +- AVCodecContext *c; +- AVStream *st; +- + // Find the video codec + const AVCodec *codec = avcodec_find_encoder_by_name(info.vcodec.c_str()); + if (codec == NULL) + throw InvalidCodec("A valid video codec could not be found for this file.", path); + ++ // Free any previous memory allocations ++ if (video_codec_ctx != nullptr) { ++ AV_FREE_CONTEXT(video_codec_ctx); ++ } ++ + // Create a new video stream +- AV_FORMAT_NEW_STREAM(oc, video_codec_ctx, codec, st) ++ AVStream* st = avformat_new_stream(oc, codec); ++ if (!st) ++ throw OutOfMemory("Could not allocate memory for the video stream.", path); ++ ++ // Allocate a new codec context for the stream ++ ALLOC_CODEC_CTX(video_codec_ctx, codec, st) ++#if (LIBAVFORMAT_VERSION_MAJOR >= 58) ++ st->codecpar->codec_id = codec->id; ++#endif ++ ++ AVCodecContext* c = video_codec_ctx; + + c->codec_id = codec->id; + c->codec_type = AVMEDIA_TYPE_VIDEO; + ++ // Set sample aspect ratio ++ c->sample_aspect_ratio.num = info.pixel_ratio.num; ++ c->sample_aspect_ratio.den = info.pixel_ratio.den; ++ + /* Init video encoder options */ + if (info.video_bit_rate >= 1000 + #if (LIBAVCODEC_VERSION_MAJOR >= 58) +@@ -1283,13 +1304,13 @@ AVStream *FFmpegWriter::add_video_stream() { + + // Codec doesn't have any pix formats? + if (c->pix_fmt == PIX_FMT_NONE) { +- if (fmt->video_codec == AV_CODEC_ID_RAWVIDEO) { ++ if (oc->oformat->video_codec == AV_CODEC_ID_RAWVIDEO) { + // Raw video should use RGB24 + c->pix_fmt = PIX_FMT_RGB24; + + #if (LIBAVFORMAT_VERSION_MAJOR < 58) + // FFmpeg < 4.0 +- if (strcmp(fmt->name, "gif") != 0) ++ if (strcmp(oc->oformat->name, "gif") != 0) + // If not GIF format, skip the encoding process + // Set raw picture flag (so we don't encode this video) + oc->oformat->flags |= AVFMT_RAWPICTURE; +@@ -1305,7 +1326,7 @@ AVStream *FFmpegWriter::add_video_stream() { + // FFmpeg < 4.0 + ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::add_video_stream (" + (std::string)fmt->name + " : " + (std::string)av_get_pix_fmt_name(c->pix_fmt) + ")", "c->codec_id", c->codec_id, "c->bit_rate", c->bit_rate, "c->pix_fmt", c->pix_fmt, "oc->oformat->flags", oc->oformat->flags, "AVFMT_RAWPICTURE", AVFMT_RAWPICTURE); + #else +- ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::add_video_stream (" + (std::string)fmt->name + " : " + (std::string)av_get_pix_fmt_name(c->pix_fmt) + ")", "c->codec_id", c->codec_id, "c->bit_rate", c->bit_rate, "c->pix_fmt", c->pix_fmt, "oc->oformat->flags", oc->oformat->flags); ++ ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::add_video_stream (" + (std::string)oc->oformat->name + " : " + (std::string)av_get_pix_fmt_name(c->pix_fmt) + ")", "c->codec_id", c->codec_id, "c->bit_rate", c->bit_rate, "c->pix_fmt", c->pix_fmt, "oc->oformat->flags", oc->oformat->flags); + #endif + + return st; +diff --git a/src/FFmpegWriter.h b/src/FFmpegWriter.h +index 79564b5..96d2902 100644 +--- a/src/FFmpegWriter.h ++++ b/src/FFmpegWriter.h +@@ -158,8 +158,7 @@ namespace openshot { + bool write_header; + bool write_trailer; + +- AVOutputFormat *fmt; +- AVFormatContext *oc; ++ AVFormatContext* oc; + AVStream *audio_st, *video_st; + AVCodecContext *video_codec_ctx; + AVCodecContext *audio_codec_ctx; diff --git a/libraries/libopenshot/patches/0004-FFmpegWriter-Don-t-force-deprecated-stream-member.patch b/libraries/libopenshot/patches/0004-FFmpegWriter-Don-t-force-deprecated-stream-member.patch new file mode 100644 index 0000000000..0e1d7a2836 --- /dev/null +++ b/libraries/libopenshot/patches/0004-FFmpegWriter-Don-t-force-deprecated-stream-member.patch @@ -0,0 +1,26 @@ +From: "FeRD (Frank Dana)" +Date: Thu, 24 Feb 2022 07:55:03 -0500 +Subject: [PATCH 2/3] FFmpegWriter: Don't force deprecated stream member + +--- + src/FFmpegWriter.cpp | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp +index c43dcff..7a45ab4 100644 +--- a/src/FFmpegWriter.cpp ++++ b/src/FFmpegWriter.cpp +@@ -1266,13 +1266,6 @@ AVStream *FFmpegWriter::add_video_stream() { + st->avg_frame_rate = av_inv_q(c->time_base); + st->time_base.num = info.video_timebase.num; + st->time_base.den = info.video_timebase.den; +-#if (LIBAVFORMAT_VERSION_MAJOR >= 58) +- #pragma GCC diagnostic push +- #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +- st->codec->time_base.num = info.video_timebase.num; +- st->codec->time_base.den = info.video_timebase.den; +- #pragma GCC diagnostic pop +-#endif + + c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */ + c->max_b_frames = 10; diff --git a/libraries/libopenshot/patches/0005-FFmpegWriter-Don-t-use-AVPicture-gone-in-5.0.patch b/libraries/libopenshot/patches/0005-FFmpegWriter-Don-t-use-AVPicture-gone-in-5.0.patch new file mode 100644 index 0000000000..1f929749b7 --- /dev/null +++ b/libraries/libopenshot/patches/0005-FFmpegWriter-Don-t-use-AVPicture-gone-in-5.0.patch @@ -0,0 +1,57 @@ +From: "FeRD (Frank Dana)" +Date: Thu, 24 Feb 2022 10:34:41 -0500 +Subject: [PATCH] FFmpegWriter: Don't use AVPicture (gone in 5.0) + +--- + src/FFmpegWriter.cpp | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp +index 7a45ab4..fdd0652 100644 +--- a/src/FFmpegWriter.cpp ++++ b/src/FFmpegWriter.cpp +@@ -772,7 +772,7 @@ void FFmpegWriter::write_queued_frames() { + // Get AVFrame + AVFrame *av_frame = av_frames[frame]; + +- // Deallocate AVPicture and AVFrame ++ // Deallocate buffer and AVFrame + av_freep(&(av_frame->data[0])); + AV_FREE_FRAME(&av_frame); + av_frames.erase(frame); +@@ -2035,26 +2035,26 @@ bool FFmpegWriter::write_video_packet(std::shared_ptr frame, AVFrame *fra + if (oc->oformat->flags & AVFMT_RAWPICTURE) { + #endif + // Raw video case. +- AVPacket pkt; +- av_init_packet(&pkt); ++ AVPacket* pkt; ++ av_packet_from_data( ++ pkt, frame_final->data[0], ++ frame_final->linesize[0] * frame_final->height); + +- pkt.flags |= AV_PKT_FLAG_KEY; +- pkt.stream_index = video_st->index; +- pkt.data = (uint8_t *) frame_final->data; +- pkt.size = sizeof(AVPicture); ++ pkt->flags |= AV_PKT_FLAG_KEY; ++ pkt->stream_index = video_st->index; + + // Set PTS (in frames and scaled to the codec's timebase) +- pkt.pts = video_timestamp; ++ pkt->pts = video_timestamp; + + /* write the compressed frame in the media file */ +- int error_code = av_interleaved_write_frame(oc, &pkt); ++ int error_code = av_interleaved_write_frame(oc, pkt); + if (error_code < 0) { + ZmqLogger::Instance()->AppendDebugMethod("FFmpegWriter::write_video_packet ERROR [" + av_err2string(error_code) + "]", "error_code", error_code); + return false; + } + + // Deallocate packet +- AV_FREE_PACKET(&pkt); ++ AV_FREE_PACKET(pkt); + + } else + { diff --git a/libraries/libosinfo/libosinfo.SlackBuild b/libraries/libosinfo/libosinfo.SlackBuild index 56129302cd..9e426cda33 100644 --- a/libraries/libosinfo/libosinfo.SlackBuild +++ b/libraries/libosinfo/libosinfo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libosinfo -# Copyright 2014-2021 Matteo Bernardini , Pisa, Italy +# Copyright 2014-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libosinfo -VERSION=${VERSION:-1.9.0} +VERSION=${VERSION:-1.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/libraries/libosinfo/libosinfo.info b/libraries/libosinfo/libosinfo.info index 6bc1c28886..95389ddec1 100644 --- a/libraries/libosinfo/libosinfo.info +++ b/libraries/libosinfo/libosinfo.info @@ -1,8 +1,8 @@ PRGNAM="libosinfo" -VERSION="1.9.0" +VERSION="1.10.0" HOMEPAGE="http://libosinfo.org" -DOWNLOAD="https://releases.pagure.org/libosinfo/libosinfo-1.9.0.tar.xz" -MD5SUM="348db4be10ddcd4bc400340e15e178e6" +DOWNLOAD="https://releases.pagure.org/libosinfo/libosinfo-1.10.0.tar.xz" +MD5SUM="9c2059648bf6f5610ba838a1fb1a84ad" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="osinfo-db" diff --git a/libraries/libquicktime/libquicktime-1.2.4-ffmpeg2.patch b/libraries/libquicktime/libquicktime-1.2.4-ffmpeg2.patch deleted file mode 100644 index 7add44220a..0000000000 --- a/libraries/libquicktime/libquicktime-1.2.4-ffmpeg2.patch +++ /dev/null @@ -1,98 +0,0 @@ -Extracted from upstream CVS. -https://bugs.gentoo.org/show_bug.cgi?id=476498 - -Index: libquicktime-1.2.4/plugins/ffmpeg/audio.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/audio.c -+++ libquicktime-1.2.4/plugins/ffmpeg/audio.c -@@ -45,6 +45,11 @@ - #define ENCODE_AUDIO 1 - #endif - -+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE -+/* from libavcodec/avcodec.h dated Dec 23 2012 */ -+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio -+#endif -+ - /* The following code was ported from gmerlin_avdecoder (http://gmerlin.sourceforge.net) */ - - /* MPEG Audio header parsing code */ -Index: libquicktime-1.2.4/plugins/ffmpeg/params.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/params.c -+++ libquicktime-1.2.4/plugins/ffmpeg/params.c -@@ -101,6 +101,17 @@ typedef struct - } \ - } - -+#define PARAM_DICT_INT(name, dict_name) \ -+ { \ -+ if(!strcasecmp(name, key)) \ -+ { \ -+ char buf[128]; \ -+ snprintf(buf, sizeof(buf), "%d", *(int*)value); \ -+ av_dict_set(options, dict_name, buf, 0); \ -+ found = 1; \ -+ } \ -+ } -+ - #define PARAM_DICT_FLAG(name, dict_name) \ - { \ - if(!strcasecmp(name, key)) \ -@@ -202,8 +213,15 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_INT("ff_max_b_frames",max_b_frames); - PARAM_FLOAT("ff_b_quant_factor",b_quant_factor); - PARAM_INT("ff_b_frame_strategy",b_frame_strategy); -+ -+#if LIBAVCODEC_VERSION_MAJOR >= 55 -+ PARAM_DICT_INT("ff_luma_elim_threshold","luma_elim_threshold"); -+ PARAM_DICT_INT("ff_chroma_elim_threshold","chroma_elim_threshold"); -+#else - PARAM_INT("ff_luma_elim_threshold",luma_elim_threshold); - PARAM_INT("ff_chroma_elim_threshold",chroma_elim_threshold); -+#endif -+ - PARAM_INT("ff_strict_std_compliance",strict_std_compliance); - PARAM_QP2LAMBDA("ff_b_quant_offset",b_quant_offset); - PARAM_INT("ff_rc_min_rate",rc_min_rate); -@@ -241,8 +259,15 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_QP2LAMBDA("ff_lmax", lmax); - PARAM_INT("ff_noise_reduction",noise_reduction); - PARAM_INT_SCALE("ff_rc_initial_buffer_occupancy",rc_initial_buffer_occupancy,1000); -+ -+#if LIBAVCODEC_VERSION_MAJOR >= 55 -+ PARAM_DICT_INT("ff_inter_threshold","inter_threshold"); -+ PARAM_DICT_INT("ff_quantizer_noise_shaping","quantizer_noise_shaping"); -+#else - PARAM_INT("ff_inter_threshold",inter_threshold); - PARAM_INT("ff_quantizer_noise_shaping",quantizer_noise_shaping); -+#endif -+ - PARAM_INT("ff_thread_count",thread_count); - PARAM_INT("ff_me_threshold",me_threshold); - PARAM_INT("ff_mb_threshold",mb_threshold); -@@ -272,8 +297,16 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_FLAG("ff_flag_bitexact",CODEC_FLAG_BITEXACT); - PARAM_FLAG("ff_flag_ac_pred",CODEC_FLAG_AC_PRED); - // PARAM_FLAG("ff_flag_h263p_umv",CODEC_FLAG_H263P_UMV); // Unused -+ -+#if LIBAVCODEC_VERSION_MAJOR >= 55 -+ PARAM_DICT_FLAG("ff_flag_cbp_rd","cbp_rd"); -+ PARAM_DICT_FLAG("ff_flag_qp_rd","qp_rd"); -+ PARAM_DICT_FLAG("ff_flag2_strict_gop","strict_gop"); -+#else - PARAM_FLAG("ff_flag_cbp_rd",CODEC_FLAG_CBP_RD); - PARAM_FLAG("ff_flag_qp_rd",CODEC_FLAG_QP_RD); -+ PARAM_FLAG2("ff_flag2_strict_gop",CODEC_FLAG2_STRICT_GOP); -+#endif - - #if LIBAVCODEC_VERSION_MAJOR >= 54 - PARAM_DICT_FLAG("ff_flag_h263p_aiv", "aiv"); -@@ -288,7 +321,6 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_FLAG("ff_flag_loop_filter",CODEC_FLAG_LOOP_FILTER); - PARAM_FLAG("ff_flag_closed_gop",CODEC_FLAG_CLOSED_GOP); - PARAM_FLAG2("ff_flag2_fast",CODEC_FLAG2_FAST); -- PARAM_FLAG2("ff_flag2_strict_gop",CODEC_FLAG2_STRICT_GOP); - PARAM_ENUM("ff_coder_type",coder_type,coder_type); - - } diff --git a/libraries/libquicktime/libquicktime-1.2.4-ffmpeg4.patch b/libraries/libquicktime/libquicktime-1.2.4-ffmpeg4.patch deleted file mode 100644 index eb196ea16a..0000000000 --- a/libraries/libquicktime/libquicktime-1.2.4-ffmpeg4.patch +++ /dev/null @@ -1,342 +0,0 @@ -Index: libquicktime-1.2.4/plugins/ffmpeg/audio.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/audio.c -+++ libquicktime-1.2.4/plugins/ffmpeg/audio.c -@@ -545,7 +545,7 @@ static int decode_chunk_vbr(quicktime_t - - #if DECODE_AUDIO3 || DECODE_AUDIO4 - codec->pkt.data = codec->chunk_buffer; -- codec->pkt.size = packet_size + FF_INPUT_BUFFER_PADDING_SIZE; -+ codec->pkt.size = packet_size + AV_INPUT_BUFFER_PADDING_SIZE; - - #if DECODE_AUDIO4 - frame_bytes = avcodec_decode_audio4(codec->avctx, &f, -@@ -583,7 +583,7 @@ static int decode_chunk_vbr(quicktime_t - (codec->sample_buffer_end - codec->sample_buffer_start)], - &bytes_decoded, - codec->chunk_buffer, -- packet_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ packet_size + AV_INPUT_BUFFER_PADDING_SIZE); - if(frame_bytes < 0) - { - lqt_log(file, LQT_LOG_ERROR, LOG_DOMAIN, "avcodec_decode_audio2 error"); -@@ -645,13 +645,13 @@ static int decode_chunk(quicktime_t * fi - return 0; - } - -- if(codec->chunk_buffer_alloc < mph.frame_bytes + FF_INPUT_BUFFER_PADDING_SIZE) -+ if(codec->chunk_buffer_alloc < mph.frame_bytes + AV_INPUT_BUFFER_PADDING_SIZE) - { -- codec->chunk_buffer_alloc = mph.frame_bytes + FF_INPUT_BUFFER_PADDING_SIZE; -+ codec->chunk_buffer_alloc = mph.frame_bytes + AV_INPUT_BUFFER_PADDING_SIZE; - codec->chunk_buffer = realloc(codec->chunk_buffer, codec->chunk_buffer_alloc); - } - memset(codec->chunk_buffer + codec->bytes_in_chunk_buffer, 0, -- mph.frame_bytes - codec->bytes_in_chunk_buffer + FF_INPUT_BUFFER_PADDING_SIZE); -+ mph.frame_bytes - codec->bytes_in_chunk_buffer + AV_INPUT_BUFFER_PADDING_SIZE); - num_samples = mph.samples_per_frame; - codec->bytes_in_chunk_buffer = mph.frame_bytes; - } -@@ -695,7 +695,7 @@ static int decode_chunk(quicktime_t * fi - { - - -- /* BIG NOTE: We pass extra FF_INPUT_BUFFER_PADDING_SIZE for the buffer size -+ /* BIG NOTE: We pass extra AV_INPUT_BUFFER_PADDING_SIZE for the buffer size - because we know, that lqt_read_audio_chunk allocates 16 extra bytes for us */ - - /* Some really broken mp3 files have the header bytes split across 2 chunks */ -@@ -761,7 +761,7 @@ static int decode_chunk(quicktime_t * fi - - #if DECODE_AUDIO3 || DECODE_AUDIO4 - codec->pkt.data = &codec->chunk_buffer[bytes_used]; -- codec->pkt.size = codec->bytes_in_chunk_buffer + FF_INPUT_BUFFER_PADDING_SIZE; -+ codec->pkt.size = codec->bytes_in_chunk_buffer + AV_INPUT_BUFFER_PADDING_SIZE; - - #if DECODE_AUDIO4 - -@@ -798,7 +798,7 @@ static int decode_chunk(quicktime_t * fi - (codec->sample_buffer_end - codec->sample_buffer_start)], - &bytes_decoded, - &codec->chunk_buffer[bytes_used], -- codec->bytes_in_chunk_buffer + FF_INPUT_BUFFER_PADDING_SIZE); -+ codec->bytes_in_chunk_buffer + AV_INPUT_BUFFER_PADDING_SIZE); - #endif - if(frame_bytes < 0) - { -@@ -838,7 +838,7 @@ static int decode_chunk(quicktime_t * fi - } - } - -- /* This happens because ffmpeg adds FF_INPUT_BUFFER_PADDING_SIZE to the bytes returned */ -+ /* This happens because ffmpeg adds AV_INPUT_BUFFER_PADDING_SIZE to the bytes returned */ - - if(codec->bytes_in_chunk_buffer < 0) - codec->bytes_in_chunk_buffer = 0; -Index: libquicktime-1.2.4/plugins/ffmpeg/params.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/params.c -+++ libquicktime-1.2.4/plugins/ffmpeg/params.c -@@ -124,16 +124,6 @@ typedef struct - } - - --enum_t me_method[] = -- { -- { "Zero", ME_ZERO }, -- { "Phods", ME_PHODS }, -- { "Log", ME_LOG }, -- { "X1", ME_X1 }, -- { "Epzs", ME_EPZS }, -- { "Full", ME_FULL } -- }; -- - enum_t prediction_method[] = - { - { "Left", FF_PRED_LEFT }, -@@ -163,15 +153,6 @@ enum_t mb_decision[] = - { "Rate distoration", FF_MB_DECISION_RD } - }; - --enum_t coder_type[] = -- { -- { "VLC", FF_CODER_TYPE_VLC }, -- { "Arithmetic", FF_CODER_TYPE_AC }, -- { "Raw", FF_CODER_TYPE_RAW }, -- { "RLE", FF_CODER_TYPE_RLE }, -- { "Deflate", FF_CODER_TYPE_DEFLATE }, -- }; -- - #define PARAM_ENUM(name, var, arr) \ - if(!strcasecmp(key, name)) \ - { \ -@@ -203,7 +184,7 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_INT_SCALE("ff_bit_rate_audio",bit_rate,1000); - PARAM_INT_SCALE("ff_bit_rate_video",bit_rate,1000); - PARAM_INT_SCALE("ff_bit_rate_tolerance",bit_rate_tolerance,1000); -- PARAM_ENUM("ff_me_method",me_method,me_method); -+ PARAM_DICT_INT("ff_me_method","motion-est"); - PARAM_INT("ff_gop_size",gop_size); - PARAM_FLOAT("ff_qcompress",qcompress); - PARAM_FLOAT("ff_qblur",qblur); -@@ -227,10 +208,9 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_INT("ff_rc_min_rate",rc_min_rate); - PARAM_INT("ff_rc_max_rate",rc_max_rate); - PARAM_INT_SCALE("ff_rc_buffer_size",rc_buffer_size,1000); -- PARAM_FLOAT("ff_rc_buffer_aggressivity",rc_buffer_aggressivity); - PARAM_FLOAT("ff_i_quant_factor",i_quant_factor); - PARAM_QP2LAMBDA("ff_i_quant_offset",i_quant_offset); -- PARAM_FLOAT("ff_rc_initial_cplx",rc_initial_cplx); -+ PARAM_DICT_INT("ff_rc_initial_cplx","rc_init_cplx"); - PARAM_FLOAT("ff_lumi_masking",lumi_masking); - PARAM_FLOAT("ff_temporal_cplx_masking",temporal_cplx_masking); - PARAM_FLOAT("ff_spatial_cplx_masking",spatial_cplx_masking); -@@ -255,8 +235,8 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_INT("ff_me_range",me_range); - PARAM_ENUM("ff_mb_decision",mb_decision,mb_decision); - PARAM_INT("ff_scenechange_threshold",scenechange_threshold); -- PARAM_QP2LAMBDA("ff_lmin", lmin); -- PARAM_QP2LAMBDA("ff_lmax", lmax); -+ PARAM_DICT_INT("ff_lmin", "lmin"); -+ PARAM_DICT_INT("ff_lmax", "lmax"); - PARAM_INT("ff_noise_reduction",noise_reduction); - PARAM_INT_SCALE("ff_rc_initial_buffer_occupancy",rc_initial_buffer_occupancy,1000); - -@@ -269,33 +249,29 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - #endif - - PARAM_INT("ff_thread_count",thread_count); -- PARAM_INT("ff_me_threshold",me_threshold); -- PARAM_INT("ff_mb_threshold",mb_threshold); - PARAM_INT("ff_nsse_weight",nsse_weight); -- PARAM_FLOAT("ff_border_masking",border_masking); -+ PARAM_DICT_INT("ff_border_masking","border_mask"); - PARAM_QP2LAMBDA("ff_mb_lmin", mb_lmin); - PARAM_QP2LAMBDA("ff_mb_lmax", mb_lmax); - PARAM_INT("ff_me_penalty_compensation",me_penalty_compensation); - PARAM_INT("ff_bidir_refine",bidir_refine); - PARAM_INT("ff_brd_scale",brd_scale); -- PARAM_INT("ff_scenechange_factor",scenechange_factor); -- PARAM_FLAG("ff_flag_qscale",CODEC_FLAG_QSCALE); -- PARAM_FLAG("ff_flag_4mv",CODEC_FLAG_4MV); -- PARAM_FLAG("ff_flag_qpel",CODEC_FLAG_QPEL); -- PARAM_FLAG("ff_flag_gmc",CODEC_FLAG_GMC); -- PARAM_FLAG("ff_flag_mv0",CODEC_FLAG_MV0); -+ PARAM_FLAG("ff_flag_qscale",AV_CODEC_FLAG_QSCALE); -+ PARAM_FLAG("ff_flag_4mv",AV_CODEC_FLAG_4MV); -+ PARAM_FLAG("ff_flag_qpel",AV_CODEC_FLAG_QPEL); -+ PARAM_DICT_FLAG("ff_flag_gmc","gmc"); -+ PARAM_DICT_FLAG("ff_flag_mv0","mpv_flags"); - // PARAM_FLAG("ff_flag_part",CODEC_FLAG_PART); // Unused -- PARAM_FLAG("ff_flag_gray",CODEC_FLAG_GRAY); -- PARAM_FLAG("ff_flag_emu_edge",CODEC_FLAG_EMU_EDGE); -- PARAM_FLAG("ff_flag_normalize_aqp",CODEC_FLAG_NORMALIZE_AQP); -+ PARAM_FLAG("ff_flag_gray",AV_CODEC_FLAG_GRAY); -+ PARAM_DICT_FLAG("ff_flag_normalize_aqp","naq"); - // PARAM_FLAG("ff_flag_alt_scan",CODEC_FLAG_ALT_SCAN); // Unused - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - PARAM_FLAG("ff_flag_trellis_quant",CODEC_FLAG_TRELLIS_QUANT); - #else - PARAM_INT("ff_trellis",trellis); - #endif -- PARAM_FLAG("ff_flag_bitexact",CODEC_FLAG_BITEXACT); -- PARAM_FLAG("ff_flag_ac_pred",CODEC_FLAG_AC_PRED); -+ PARAM_FLAG("ff_flag_bitexact",AV_CODEC_FLAG_BITEXACT); -+ PARAM_FLAG("ff_flag_ac_pred",AV_CODEC_FLAG_AC_PRED); - // PARAM_FLAG("ff_flag_h263p_umv",CODEC_FLAG_H263P_UMV); // Unused - - #if LIBAVCODEC_VERSION_MAJOR >= 55 -@@ -303,9 +279,9 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_DICT_FLAG("ff_flag_qp_rd","qp_rd"); - PARAM_DICT_FLAG("ff_flag2_strict_gop","strict_gop"); - #else -- PARAM_FLAG("ff_flag_cbp_rd",CODEC_FLAG_CBP_RD); -- PARAM_FLAG("ff_flag_qp_rd",CODEC_FLAG_QP_RD); -- PARAM_FLAG2("ff_flag2_strict_gop",CODEC_FLAG2_STRICT_GOP); -+ PARAM_FLAG("ff_flag_cbp_rd",AV_CODEC_FLAG_CBP_RD); -+ PARAM_FLAG("ff_flag_qp_rd",AV_CODEC_FLAG_QP_RD); -+ PARAM_FLAG2("ff_flag2_strict_gop",AV_CODEC_FLAG2_STRICT_GOP); - #endif - - #if LIBAVCODEC_VERSION_MAJOR >= 54 -@@ -313,14 +289,14 @@ void lqt_ffmpeg_set_parameter(AVCodecCon - PARAM_DICT_FLAG("ff_flag_obmc","obmc"); - PARAM_DICT_FLAG("ff_flag_h263p_slice_struct","structured_slices"); - #else -- PARAM_FLAG("ff_flag_h263p_aiv",CODEC_FLAG_H263P_AIV); -- PARAM_FLAG("ff_flag_obmc",CODEC_FLAG_OBMC); -- PARAM_FLAG("ff_flag_h263p_slice_struct",CODEC_FLAG_H263P_SLICE_STRUCT); -+ PARAM_FLAG("ff_flag_h263p_aiv",AV_CODEC_FLAG_H263P_AIV); -+ PARAM_FLAG("ff_flag_obmc",AV_CODEC_FLAG_OBMC); -+ PARAM_FLAG("ff_flag_h263p_slice_struct",AV_CODEC_FLAG_H263P_SLICE_STRUCT); - #endif - -- PARAM_FLAG("ff_flag_loop_filter",CODEC_FLAG_LOOP_FILTER); -- PARAM_FLAG("ff_flag_closed_gop",CODEC_FLAG_CLOSED_GOP); -- PARAM_FLAG2("ff_flag2_fast",CODEC_FLAG2_FAST); -- PARAM_ENUM("ff_coder_type",coder_type,coder_type); -+ PARAM_FLAG("ff_flag_loop_filter",AV_CODEC_FLAG_LOOP_FILTER); -+ PARAM_FLAG("ff_flag_closed_gop",AV_CODEC_FLAG_CLOSED_GOP); -+ PARAM_FLAG2("ff_flag2_fast",AV_CODEC_FLAG2_FAST); -+ PARAM_DICT_INT("ff_coder_type","coder"); - - } -Index: libquicktime-1.2.4/plugins/ffmpeg/params.h -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/params.h -+++ libquicktime-1.2.4/plugins/ffmpeg/params.h -@@ -149,7 +149,7 @@ the reference. Unused for constant quant - .type = LQT_PARAMETER_INT, \ - .val_default = { .val_int = 0 }, \ - .val_min = { .val_int = 0 }, \ -- .val_max = { .val_int = FF_MAX_B_FRAMES }, \ -+ .val_max = { .val_int = 16 }, \ - .help_string = TRS("Maximum number of B-frames between non B-frames") \ - } - -Index: libquicktime-1.2.4/plugins/ffmpeg/video.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/video.c -+++ libquicktime-1.2.4/plugins/ffmpeg/video.c -@@ -781,7 +781,7 @@ static int lqt_ffmpeg_decode_video(quick - if(extradata) - { - codec->extradata = -- calloc(1, extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -+ calloc(1, extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); - memcpy(codec->extradata, extradata, extradata_size); - codec->avctx->extradata_size = extradata_size; - codec->avctx->extradata = codec->extradata; -@@ -1140,8 +1140,8 @@ static int init_imx_encoder(quicktime_t - codec->avctx->qmin = 1; - codec->avctx->qmax = 3; - codec->avctx->rtp_payload_size = 1; // ?? -- codec->avctx->rc_buffer_aggressivity = 0.25; -- codec->avctx->flags |= CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_LOW_DELAY; -+ av_dict_set(&codec->options, "rc_buf_aggressivity", "0.25", 0); -+ codec->avctx->flags |= AV_CODEC_FLAG_INTERLACED_DCT|AV_CODEC_FLAG_LOW_DELAY; - - #if (LIBAVCODEC_VERSION_MAJOR < 54) - codec->avctx->flags2 |= CODEC_FLAG2_INTRA_VLC|CODEC_FLAG2_NON_LINEAR_QUANT; -@@ -1328,7 +1328,7 @@ static int lqt_ffmpeg_encode_video(quick - // codec->avctx->time_base.den = 1; - // codec->avctx->time_base.num = lqt_video_time_scale(file, track); - -- if(codec->avctx->flags & CODEC_FLAG_QSCALE) -+ if(codec->avctx->flags & AV_CODEC_FLAG_QSCALE) - codec->avctx->global_quality = codec->qscale; - - codec->avctx->width = width; -@@ -1344,7 +1344,7 @@ static int lqt_ffmpeg_encode_video(quick - { - if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML))) - { -- codec->avctx->flags |= CODEC_FLAG_GLOBAL_HEADER; -+ codec->avctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - codec->write_global_header = 1; - } - -@@ -1360,7 +1360,7 @@ static int lqt_ffmpeg_encode_video(quick - { - lqt_log(file, LQT_LOG_INFO, LOG_DOMAIN, "Enabling interlaced encoding"); - codec->avctx->flags |= -- (CODEC_FLAG_INTERLACED_DCT|CODEC_FLAG_INTERLACED_ME|CODEC_FLAG_ALT_SCAN); -+ (AV_CODEC_FLAG_INTERLACED_DCT|AV_CODEC_FLAG_INTERLACED_ME|AV_CODEC_FLAG_ALT_SCAN); - } - #endif - } -@@ -1387,7 +1387,7 @@ static int lqt_ffmpeg_encode_video(quick - { - if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML))) - { -- codec->avctx->flags |= CODEC_FLAG_GLOBAL_HEADER; -+ codec->avctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - codec->write_global_header = 1; - } - } -@@ -1410,7 +1410,7 @@ static int lqt_ffmpeg_encode_video(quick - { - if(vtrack->interlace_mode != LQT_INTERLACE_NONE) - { -- codec->avctx->flags |= CODEC_FLAG_INTERLACED_DCT; -+ codec->avctx->flags |= AV_CODEC_FLAG_INTERLACED_DCT; - } - } - else if(codec->is_imx) -@@ -1422,7 +1422,7 @@ static int lqt_ffmpeg_encode_video(quick - if(codec->pass == 1) - { - codec->stats_file = fopen(codec->stats_filename, "w"); -- codec->avctx->flags |= CODEC_FLAG_PASS1; -+ codec->avctx->flags |= AV_CODEC_FLAG_PASS1; - } - else if(codec->pass == codec->total_passes) - { -@@ -1438,7 +1438,7 @@ static int lqt_ffmpeg_encode_video(quick - fclose(codec->stats_file); - codec->stats_file = (FILE*)0; - -- codec->avctx->flags |= CODEC_FLAG_PASS2; -+ codec->avctx->flags |= AV_CODEC_FLAG_PASS2; - } - } - /* Open codec */ -@@ -1516,7 +1516,7 @@ static int lqt_ffmpeg_encode_video(quick - } - - codec->frame->pts = vtrack->timestamp; -- if(codec->avctx->flags & CODEC_FLAG_QSCALE) -+ if(codec->avctx->flags & AV_CODEC_FLAG_QSCALE) - codec->frame->quality = codec->qscale; - #ifdef DO_INTERLACE - if(vtrack->interlace_mode != LQT_INTERLACE_NONE) -@@ -1599,8 +1599,7 @@ static int lqt_ffmpeg_encode_video(quick - else if(codec->encoder->id == AV_CODEC_ID_MPEG4) - { - int advanced = 0; -- if(codec->avctx->max_b_frames || -- (codec->avctx->flags & (CODEC_FLAG_QPEL|CODEC_FLAG_GMC))) -+ if(codec->avctx->max_b_frames) - advanced = 1; - - setup_header_mpeg4(file, track, codec->avctx->extradata, diff --git a/libraries/libquicktime/libquicktime-ffmpeg3.patch b/libraries/libquicktime/libquicktime-ffmpeg3.patch deleted file mode 100644 index f5784e8229..0000000000 --- a/libraries/libquicktime/libquicktime-ffmpeg3.patch +++ /dev/null @@ -1,935 +0,0 @@ -Index: libquicktime-1.2.4/plugins/ffmpeg/video.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/video.c -+++ libquicktime-1.2.4/plugins/ffmpeg/video.c -@@ -37,10 +37,10 @@ - #endif - - --#ifdef PIX_FMT_YUV422P10 --#define PIX_FMT_YUV422P10_OR_DUMMY PIX_FMT_YUV422P10 -+#ifdef AV_PIX_FMT_YUV422P10 -+#define AV_PIX_FMT_YUV422P10_OR_DUMMY AV_PIX_FMT_YUV422P10 - #else --#define PIX_FMT_YUV422P10_OR_DUMMY -1234 -+#define AV_PIX_FMT_YUV422P10_OR_DUMMY -1234 - #endif - - #if LIBAVCODEC_VERSION_INT >= ((54<<16)|(1<<8)|0) -@@ -90,9 +90,9 @@ typedef struct - int imx_bitrate; - int imx_strip_vbi; - -- /* In some cases FFMpeg would report something like PIX_FMT_YUV422P, while -- we would like to treat it as PIX_FMT_YUVJ422P. It's only used for decoding */ -- enum PixelFormat reinterpret_pix_fmt; -+ /* In some cases FFMpeg would report something like AV_PIX_FMT_YUV422P, while -+ we would like to treat it as AV_PIX_FMT_YUVJ422P. It's only used for decoding */ -+ enum AVPixelFormat reinterpret_pix_fmt; - - int is_imx; - int y_offset; -@@ -137,42 +137,42 @@ typedef struct - - static const struct - { -- enum PixelFormat ffmpeg_id; -+ enum AVPixelFormat ffmpeg_id; - int lqt_id; - int exact; - } - colormodels[] = - { -- { PIX_FMT_YUV420P, BC_YUV420P, 1 }, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) -+ { AV_PIX_FMT_YUV420P, BC_YUV420P, 1 }, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples) - #if LIBAVUTIL_VERSION_INT < (50<<16) -- { PIX_FMT_YUV422, BC_YUV422, 1 }, -+ { AV_PIX_FMT_YUV422, BC_YUV422, 1 }, - #else -- { PIX_FMT_YUYV422, BC_YUV422, 1 }, -+ { AV_PIX_FMT_YUYV422, BC_YUV422, 1 }, - #endif -- { PIX_FMT_RGB24, BC_RGB888, 1 }, ///< Packed pixel, 3 bytes per pixel, RGBRGB... -- { PIX_FMT_BGR24, BC_BGR888, 1 }, ///< Packed pixel, 3 bytes per pixel, BGRBGR... -- { PIX_FMT_YUV422P, BC_YUV422P, 1 }, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) -- { PIX_FMT_YUV444P, BC_YUV444P, 1 }, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) -- { PIX_FMT_YUV411P, BC_YUV411P, 1 }, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) -- { PIX_FMT_YUV422P16, BC_YUV422P16, 1 }, ///< Planar 16 bit YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) --#ifdef PIX_FMT_YUV422P10 -- { PIX_FMT_YUV422P10, BC_YUV422P10, 1 }, ///< 10 bit samples in uint16_t containers, planar 4:2:2 --#endif -- { PIX_FMT_RGB565, BC_RGB565, 1 }, ///< always stored in cpu endianness -- { PIX_FMT_YUVJ420P, BC_YUVJ420P, 1 }, ///< Planar YUV 4:2:0 full scale (jpeg) -- { PIX_FMT_YUVJ422P, BC_YUVJ422P, 1 }, ///< Planar YUV 4:2:2 full scale (jpeg) -- { PIX_FMT_YUVJ444P, BC_YUVJ444P, 1 }, ///< Planar YUV 4:4:4 full scale (jpeg) -+ { AV_PIX_FMT_RGB24, BC_RGB888, 1 }, ///< Packed pixel, 3 bytes per pixel, RGBRGB... -+ { AV_PIX_FMT_BGR24, BC_BGR888, 1 }, ///< Packed pixel, 3 bytes per pixel, BGRBGR... -+ { AV_PIX_FMT_YUV422P, BC_YUV422P, 1 }, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) -+ { AV_PIX_FMT_YUV444P, BC_YUV444P, 1 }, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples) -+ { AV_PIX_FMT_YUV411P, BC_YUV411P, 1 }, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples) -+ { AV_PIX_FMT_YUV422P16, BC_YUV422P16, 1 }, ///< Planar 16 bit YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples) -+#ifdef AV_PIX_FMT_YUV422P10 -+ { AV_PIX_FMT_YUV422P10, BC_YUV422P10, 1 }, ///< 10 bit samples in uint16_t containers, planar 4:2:2 -+#endif -+ { AV_PIX_FMT_RGB565, BC_RGB565, 1 }, ///< always stored in cpu endianness -+ { AV_PIX_FMT_YUVJ420P, BC_YUVJ420P, 1 }, ///< Planar YUV 4:2:0 full scale (jpeg) -+ { AV_PIX_FMT_YUVJ422P, BC_YUVJ422P, 1 }, ///< Planar YUV 4:2:2 full scale (jpeg) -+ { AV_PIX_FMT_YUVJ444P, BC_YUVJ444P, 1 }, ///< Planar YUV 4:4:4 full scale (jpeg) - #if LIBAVUTIL_VERSION_INT < (50<<16) -- { PIX_FMT_RGBA32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... -+ { AV_PIX_FMT_RGBA32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... - #else -- { PIX_FMT_RGB32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... -+ { AV_PIX_FMT_RGB32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA... - #endif -- { PIX_FMT_RGB555, BC_RGB888, 0 }, ///< always stored in cpu endianness, most significant bit to 1 -- { PIX_FMT_GRAY8, BC_RGB888, 0 }, -- { PIX_FMT_MONOWHITE, BC_RGB888, 0 }, ///< 0 is white -- { PIX_FMT_MONOBLACK, BC_RGB888, 0 }, ///< 0 is black -- { PIX_FMT_PAL8, BC_RGB888, 0 }, ///< 8 bit with RGBA palette -- { PIX_FMT_YUV410P, BC_YUV420P, 0 }, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) -+ { AV_PIX_FMT_RGB555, BC_RGB888, 0 }, ///< always stored in cpu endianness, most significant bit to 1 -+ { AV_PIX_FMT_GRAY8, BC_RGB888, 0 }, -+ { AV_PIX_FMT_MONOWHITE, BC_RGB888, 0 }, ///< 0 is white -+ { AV_PIX_FMT_MONOBLACK, BC_RGB888, 0 }, ///< 0 is black -+ { AV_PIX_FMT_PAL8, BC_RGB888, 0 }, ///< 8 bit with RGBA palette -+ { AV_PIX_FMT_YUV410P, BC_YUV420P, 0 }, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples) - }; - - static const struct -@@ -343,16 +343,16 @@ static int lqt_tenbit_dnxhd_supported(AV - if (!codec->pix_fmts) - return 0; - -- for (i = 0; codec->pix_fmts[i] != PIX_FMT_NONE; ++i) -+ for (i = 0; codec->pix_fmts[i] != AV_PIX_FMT_NONE; ++i) - { -- if (codec->pix_fmts[i] == PIX_FMT_YUV422P10_OR_DUMMY) -+ if (codec->pix_fmts[i] == AV_PIX_FMT_YUV422P10_OR_DUMMY) - return 1; - } - - return 0; - } - --static enum PixelFormat lqt_ffmpeg_get_ffmpeg_colormodel(int id) -+static enum AVPixelFormat lqt_ffmpeg_get_ffmpeg_colormodel(int id) - { - int i; - -@@ -361,10 +361,10 @@ static enum PixelFormat lqt_ffmpeg_get_f - if(colormodels[i].lqt_id == id) - return colormodels[i].ffmpeg_id; - } -- return PIX_FMT_NB; -+ return AV_PIX_FMT_NB; - } - --static int lqt_ffmpeg_get_lqt_colormodel(enum PixelFormat id, int * exact) -+static int lqt_ffmpeg_get_lqt_colormodel(enum AVPixelFormat id, int * exact) - { - int i; - -@@ -402,24 +402,24 @@ static void lqt_ffmpeg_setup_decoding_co - /* First we try codec-specific colormodel matching. */ - if(codec->decoder->id == AV_CODEC_ID_DNXHD) - { -- /* FFMpeg supports PIX_FMT_YUV422P and PIX_FMT_YUV422P10 for DNxHD, which -- we sometimes interpret as PIX_FMT_YUVJ422P and PIX_FMT_YUVJ422P10. */ -- if (codec->avctx->pix_fmt == PIX_FMT_YUV422P || codec->avctx->pix_fmt == PIX_FMT_YUV422P10_OR_DUMMY) -+ /* FFMpeg supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 for DNxHD, which -+ we sometimes interpret as AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10. */ -+ if (codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P || codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P10_OR_DUMMY) - { -- int p10 = (codec->avctx->pix_fmt == PIX_FMT_YUV422P10_OR_DUMMY); -+ int p10 = (codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P10_OR_DUMMY); - *exact = 1; - if (lqt_ffmpeg_get_avid_yuv_range(vtrack->track) == AVID_FULL_YUV_RANGE) - { - vtrack->stream_cmodel = p10 ? BC_YUVJ422P10 : BC_YUVJ422P; -- codec->reinterpret_pix_fmt = p10 ? PIX_FMT_YUV422P10_OR_DUMMY : PIX_FMT_YUVJ422P; -- // Note: reinterpret_pix_fmt should really be PIX_FMT_YUVJ422P10, except -+ codec->reinterpret_pix_fmt = p10 ? AV_PIX_FMT_YUV422P10_OR_DUMMY : AV_PIX_FMT_YUVJ422P; -+ // Note: reinterpret_pix_fmt should really be AV_PIX_FMT_YUVJ422P10, except - // there is no such colormodel in FFMpeg. Fortunately, it's not a problem - // in this case, as reinterpret_pix_fmt is only used when *exact == 0. - } - else - { - vtrack->stream_cmodel = p10 ? BC_YUV422P10 : BC_YUV422P; -- codec->reinterpret_pix_fmt = p10 ? PIX_FMT_YUV422P10_OR_DUMMY : PIX_FMT_YUV422P; -+ codec->reinterpret_pix_fmt = p10 ? AV_PIX_FMT_YUV422P10_OR_DUMMY : AV_PIX_FMT_YUV422P; - } - return; - } -@@ -440,14 +440,14 @@ static void lqt_ffmpeg_setup_encoding_co - - if (codec->encoder->id == AV_CODEC_ID_DNXHD) - { -- /* FFMpeg's DNxHD encoder only supports PIX_FMT_YUV422P and PIX_FMT_YUV422P10 -- and doesn't know anything about PIX_FMT_YUVJ422P and PIX_FMT_YUVJ422P10 -+ /* FFMpeg's DNxHD encoder only supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 -+ and doesn't know anything about AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10 - (in fact, the latter doesn't even exist) */ -- codec->avctx->pix_fmt = PIX_FMT_YUV422P; -+ codec->avctx->pix_fmt = AV_PIX_FMT_YUV422P; - if (vtrack->stream_cmodel == BC_YUV422P10 || vtrack->stream_cmodel == BC_YUVJ422P10) - { - if (lqt_tenbit_dnxhd_supported(codec->encoder)) -- codec->avctx->pix_fmt = PIX_FMT_YUV422P10_OR_DUMMY; -+ codec->avctx->pix_fmt = AV_PIX_FMT_YUV422P10_OR_DUMMY; - } - } - } -@@ -458,7 +458,7 @@ static void lqt_ffmpeg_setup_encoding_co - /* From avcodec.h: */ - - /* -- * PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA -+ * AV_PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA - * color is put together as: - * (A << 24) | (R << 16) | (G << 8) | B - * This is stored as BGRA on little endian CPU architectures and ARGB on -@@ -530,7 +530,7 @@ static void convert_rgba_to_argb(uint8_t - */ - - static void convert_image_decode(quicktime_ffmpeg_video_codec_t *codec, -- AVFrame * in_frame, enum PixelFormat in_format, -+ AVFrame * in_frame, enum AVPixelFormat in_format, - unsigned char ** out_frame, int out_format, - int width, int height, int row_span, int row_span_uv) - { -@@ -547,9 +547,9 @@ static void convert_image_decode(quickti - * RGBA format like in ffmpeg?? - */ - #if LIBAVUTIL_VERSION_INT < (50<<16) -- if((in_format == PIX_FMT_RGBA32) && (out_format == BC_RGBA8888)) -+ if((in_format == AV_PIX_FMT_RGBA32) && (out_format == BC_RGBA8888)) - #else -- if((in_format == PIX_FMT_RGB32) && (out_format == BC_RGBA8888)) -+ if((in_format == AV_PIX_FMT_RGB32) && (out_format == BC_RGBA8888)) - #endif - { - convert_image_decode_rgba(in_frame, out_frame, width, height, codec->y_offset); -@@ -829,7 +829,7 @@ static int lqt_ffmpeg_decode_video(quick - if(avcodec_open2(codec->avctx, codec->decoder, NULL) != 0) - return -1; - #endif -- codec->frame = avcodec_alloc_frame(); -+ codec->frame = av_frame_alloc(); - vtrack->stream_cmodel = LQT_COLORMODEL_NONE; - codec->initialized = 1; - } -@@ -929,10 +929,10 @@ static int lqt_ffmpeg_decode_video(quick - #ifdef HAVE_LIBSWSCALE - - #if LIBAVUTIL_VERSION_INT < (50<<16) -- if(!((codec->avctx->pix_fmt == PIX_FMT_RGBA32) && -+ if(!((codec->avctx->pix_fmt == AV_PIX_FMT_RGBA32) && - (vtrack->stream_cmodel == BC_RGBA8888))) - #else -- if(!((codec->avctx->pix_fmt == PIX_FMT_RGB32) && -+ if(!((codec->avctx->pix_fmt == AV_PIX_FMT_RGB32) && - (vtrack->stream_cmodel == BC_RGBA8888))) - #endif - { -@@ -1318,7 +1318,7 @@ static int lqt_ffmpeg_encode_video(quick - - if(!codec->initialized) - { -- codec->frame = avcodec_alloc_frame(); -+ codec->frame = av_frame_alloc(); - - /* time_base is 1/framerate for constant framerate */ - -@@ -1396,9 +1396,9 @@ static int lqt_ffmpeg_encode_video(quick - if(vtrack->stream_cmodel == BC_RGBA8888) - { - /* Libquicktime doesn't natively support a color model equivalent -- to PIX_FMT_ARGB, which is required for QTRLE with alpha channel. -+ to AV_PIX_FMT_ARGB, which is required for QTRLE with alpha channel. - So, we use BC_RGBA8888 and do ad hoc conversion below. */ -- codec->avctx->pix_fmt = PIX_FMT_ARGB; -+ codec->avctx->pix_fmt = AV_PIX_FMT_ARGB; - vtrack->track->mdia.minf.stbl.stsd.table[0].depth = 32; - } - } -@@ -1467,7 +1467,7 @@ static int lqt_ffmpeg_encode_video(quick - } - // codec->lqt_colormodel = ffmepg_2_lqt(codec->com.ffcodec_enc); - -- if(codec->y_offset != 0 || codec->avctx->pix_fmt == PIX_FMT_ARGB) -+ if(codec->y_offset != 0 || codec->avctx->pix_fmt == AV_PIX_FMT_ARGB) - { - if(!codec->tmp_rows) - { -@@ -1492,7 +1492,7 @@ static int lqt_ffmpeg_encode_video(quick - vtrack->stream_cmodel, - 0, 0, 0, codec->y_offset); - } -- else if(codec->avctx->pix_fmt == PIX_FMT_ARGB) -+ else if(codec->avctx->pix_fmt == AV_PIX_FMT_ARGB) - { - convert_rgba_to_argb(row_pointers[0], vtrack->stream_row_span, - codec->tmp_rows[0], codec->tmp_row_span, -Index: libquicktime-1.2.4/plugins/ffmpeg/audio.c -=================================================================== ---- libquicktime-1.2.4.orig/plugins/ffmpeg/audio.c -+++ libquicktime-1.2.4/plugins/ffmpeg/audio.c -@@ -1266,7 +1266,7 @@ static int lqt_ffmpeg_encode_audio(quick - pkt.data = codec->chunk_buffer; - pkt.size = codec->chunk_buffer_alloc; - -- avcodec_get_frame_defaults(&f); -+ av_frame_unref(&f); - f.nb_samples = codec->avctx->frame_size; - - avcodec_fill_audio_frame(&f, channels, codec->avctx->sample_fmt, ---- libquicktime-1.2.4/plugins/ffmpeg/lqt_ffmpeg.c.orig 2016-02-17 08:11:50.683023612 +0000 -+++ libquicktime-1.2.4/plugins/ffmpeg/lqt_ffmpeg.c 2016-02-17 08:12:20.362898974 +0000 -@@ -370,7 +370,7 @@ - struct CODECIDMAP codecidmap_v[] = - { - { -- .id = CODEC_ID_MPEG1VIDEO, -+ .id = AV_CODEC_ID_MPEG1VIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -381,7 +381,7 @@ - .wav_ids = { LQT_WAV_ID_NONE } - }, - { -- .id = CODEC_ID_MPEG4, -+ .id = AV_CODEC_ID_MPEG4, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -399,7 +399,7 @@ - .compression_id = LQT_COMPRESSION_MPEG4_ASP, - }, - { -- .id = CODEC_ID_MSMPEG4V1, -+ .id = AV_CODEC_ID_MSMPEG4V1, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -410,7 +410,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_MSMPEG4V2, -+ .id = AV_CODEC_ID_MSMPEG4V2, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -421,7 +421,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_MSMPEG4V3, -+ .id = AV_CODEC_ID_MSMPEG4V3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -437,7 +437,7 @@ - .do_encode = 1, - }, - { -- .id = CODEC_ID_MSMPEG4V3, -+ .id = AV_CODEC_ID_MSMPEG4V3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -452,7 +452,7 @@ - }, - #if 0 - { -- .id = CODEC_ID_WMV1, -+ .id = AV_CODEC_ID_WMV1, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -465,7 +465,7 @@ - }, - #endif - { -- .id = CODEC_ID_H263, -+ .id = AV_CODEC_ID_H263, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -477,7 +477,7 @@ - .compatibility_flags = LQT_FILE_QT_OLD | LQT_FILE_QT | LQT_FILE_MP4 | LQT_FILE_3GP, - }, - { -- .id = CODEC_ID_H263, -+ .id = AV_CODEC_ID_H263, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -492,7 +492,7 @@ - .do_encode = 1, - }, - { -- .id = CODEC_ID_H264, -+ .id = AV_CODEC_ID_H264, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -503,7 +503,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_H263P, -+ .id = AV_CODEC_ID_H263P, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -517,7 +517,7 @@ - .do_encode = 1, - }, - { -- .id = CODEC_ID_H263I, -+ .id = AV_CODEC_ID_H263I, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -528,7 +528,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_SVQ1, -+ .id = AV_CODEC_ID_SVQ1, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -539,7 +539,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_SVQ3, -+ .id = AV_CODEC_ID_SVQ3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -550,7 +550,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_MJPEG, -+ .id = AV_CODEC_ID_MJPEG, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -564,7 +564,7 @@ - .do_encode = 1, - }, - { -- .id = CODEC_ID_MJPEGB, -+ .id = AV_CODEC_ID_MJPEGB, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -578,7 +578,7 @@ - }, - #if LIBAVCODEC_BUILD >= 3346688 - { -- .id = CODEC_ID_TARGA, -+ .id = AV_CODEC_ID_TARGA, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -590,7 +590,7 @@ - #endif - #if LIBAVCODEC_BUILD >= 3347456 - { -- .id = CODEC_ID_TIFF, -+ .id = AV_CODEC_ID_TIFF, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -601,7 +601,7 @@ - }, - #endif - { -- .id = CODEC_ID_8BPS, -+ .id = AV_CODEC_ID_8BPS, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -611,7 +611,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_INDEO3, -+ .id = AV_CODEC_ID_INDEO3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -622,7 +622,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_RPZA, -+ .id = AV_CODEC_ID_RPZA, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -632,7 +632,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_SMC, -+ .id = AV_CODEC_ID_SMC, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -642,7 +642,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_CINEPAK, -+ .id = AV_CODEC_ID_CINEPAK, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -653,7 +653,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_CYUV, -+ .id = AV_CODEC_ID_CYUV, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -664,7 +664,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_QTRLE, -+ .id = AV_CODEC_ID_QTRLE, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -677,7 +677,7 @@ - .encoding_colormodels = (int[]){ BC_RGB888, BC_RGBA8888, LQT_COLORMODEL_NONE }, - }, - { -- .id = CODEC_ID_MSRLE, -+ .id = AV_CODEC_ID_MSRLE, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -687,7 +687,7 @@ - .wav_ids = { LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_DVVIDEO, -+ .id = AV_CODEC_ID_DVVIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -703,7 +703,7 @@ - .image_sizes = image_sizes_dv, - }, - { -- .id = CODEC_ID_DVVIDEO, -+ .id = AV_CODEC_ID_DVVIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -719,7 +719,7 @@ - .image_sizes = image_sizes_dv, - }, - { -- .id = CODEC_ID_DVVIDEO, -+ .id = AV_CODEC_ID_DVVIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -735,7 +735,7 @@ - }, - /* DVCPRO HD (decoding only for now) */ - { -- .id = CODEC_ID_DVVIDEO, -+ .id = AV_CODEC_ID_DVVIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -756,7 +756,7 @@ - // .do_encode = 1 - }, - { -- .id = CODEC_ID_FFVHUFF, -+ .id = AV_CODEC_ID_FFVHUFF, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -769,7 +769,7 @@ - .do_encode = 1 - }, - { -- .id = CODEC_ID_FFV1, -+ .id = AV_CODEC_ID_FFV1, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -785,7 +785,7 @@ - }, - #if LIBAVCODEC_BUILD >= 3352576 - { -- .id = CODEC_ID_DNXHD, -+ .id = AV_CODEC_ID_DNXHD, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -801,7 +801,7 @@ - }, - #endif - { -- .id = CODEC_ID_MPEG2VIDEO, -+ .id = AV_CODEC_ID_MPEG2VIDEO, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -823,7 +823,7 @@ - struct CODECIDMAP codecidmap_a[] = - { - { -- .id = CODEC_ID_MP3, -+ .id = AV_CODEC_ID_MP3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -835,7 +835,7 @@ - .wav_ids = { 0x50, 0x55, LQT_WAV_ID_NONE }, - }, - { -- .id = CODEC_ID_MP2, -+ .id = AV_CODEC_ID_MP2, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -850,7 +850,7 @@ - .compression_id = LQT_COMPRESSION_MP2, - }, - { -- .id = CODEC_ID_AC3, -+ .id = AV_CODEC_ID_AC3, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -865,7 +865,7 @@ - .compression_id = LQT_COMPRESSION_AC3, - }, - { -- .id = CODEC_ID_QDM2, -+ .id = AV_CODEC_ID_QDM2, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -880,7 +880,7 @@ - #if 1 - /* Doesn't work as long as audio chunks are not split into VBR "Samples" */ - { -- .id = CODEC_ID_ALAC, -+ .id = AV_CODEC_ID_ALAC, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -893,7 +893,7 @@ - #if 1 - /* Sounds ugly */ - { -- .id = CODEC_ID_ADPCM_MS, -+ .id = AV_CODEC_ID_ADPCM_MS, - .index = -1, - .encoder = NULL, - .decoder = NULL, -@@ -906,7 +906,7 @@ - #if 1 - /* Sounds ugly */ - { -- .id = CODEC_ID_ADPCM_IMA_WAV, -+ .id = AV_CODEC_ID_ADPCM_IMA_WAV, - .index = -1, - .encoder = NULL, - .decoder = NULL, ---- libquicktime-1.2.4/plugins/ffmpeg/video.c.orig 2016-02-17 08:14:18.585735622 +0000 -+++ libquicktime-1.2.4/plugins/ffmpeg/video.c 2016-02-17 08:14:35.332331900 +0000 -@@ -400,7 +400,7 @@ - codec->reinterpret_pix_fmt = codec->avctx->pix_fmt; - - /* First we try codec-specific colormodel matching. */ -- if(codec->decoder->id == CODEC_ID_DNXHD) -+ if(codec->decoder->id == AV_CODEC_ID_DNXHD) - { - /* FFMpeg supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 for DNxHD, which - we sometimes interpret as AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10. */ -@@ -438,7 +438,7 @@ - quicktime_ffmpeg_video_codec_t *codec = vtrack->codec->priv; - codec->avctx->pix_fmt = lqt_ffmpeg_get_ffmpeg_colormodel(vtrack->stream_cmodel); - -- if (codec->encoder->id == CODEC_ID_DNXHD) -+ if (codec->encoder->id == AV_CODEC_ID_DNXHD) - { - /* FFMpeg's DNxHD encoder only supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 - and doesn't know anything about AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10 -@@ -728,13 +728,13 @@ - - /* Set extradata: It's done differently for each codec */ - -- if(codec->decoder->id == CODEC_ID_SVQ3) -+ if(codec->decoder->id == AV_CODEC_ID_SVQ3) - { - extradata = trak->mdia.minf.stbl.stsd.table[0].table_raw + 4; - extradata_size = trak->mdia.minf.stbl.stsd.table[0].table_raw_size - 4; - - } -- else if(codec->decoder->id == CODEC_ID_H264) -+ else if(codec->decoder->id == AV_CODEC_ID_H264) - { - user_atom = quicktime_stsd_get_user_atom(trak, "avcC", &user_atom_len); - -@@ -753,7 +753,7 @@ - } - - } -- else if(codec->decoder->id == CODEC_ID_MPEG4) -+ else if(codec->decoder->id == AV_CODEC_ID_MPEG4) - { - if(trak->mdia.minf.stbl.stsd.table[0].has_esds) - { -@@ -947,15 +947,15 @@ - } - #endif - } -- if(codec->decoder->id == CODEC_ID_DVVIDEO) -+ if(codec->decoder->id == AV_CODEC_ID_DVVIDEO) - { - if(vtrack->stream_cmodel == BC_YUV420P) - vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_DVPAL; - vtrack->interlace_mode = LQT_INTERLACE_BOTTOM_FIRST; - vtrack->ci.id = LQT_COMPRESSION_DV; - } -- else if((codec->decoder->id == CODEC_ID_MPEG4) || -- (codec->decoder->id == CODEC_ID_H264)) -+ else if((codec->decoder->id == AV_CODEC_ID_MPEG4) || -+ (codec->decoder->id == AV_CODEC_ID_H264)) - { - if(vtrack->stream_cmodel == BC_YUV420P) - vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_MPEG2; -@@ -1299,13 +1299,13 @@ - { - if(vtrack->stream_cmodel == BC_YUV420P) - { -- if(codec->encoder->id == CODEC_ID_MPEG4) -+ if(codec->encoder->id == AV_CODEC_ID_MPEG4) - { - vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_MPEG2; - /* enable interlaced encoding */ - vtrack->interlace_mode = LQT_INTERLACE_NONE; - } -- else if(codec->encoder->id == CODEC_ID_DVVIDEO) -+ else if(codec->encoder->id == AV_CODEC_ID_DVVIDEO) - { - vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_DVPAL; - } -@@ -1340,7 +1340,7 @@ - codec->avctx->sample_aspect_ratio.num = pixel_width; - codec->avctx->sample_aspect_ratio.den = pixel_height; - /* Use global headers for mp4v */ -- if(codec->encoder->id == CODEC_ID_MPEG4) -+ if(codec->encoder->id == AV_CODEC_ID_MPEG4) - { - if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML))) - { -@@ -1364,12 +1364,12 @@ - } - #endif - } -- else if((codec->encoder->id == CODEC_ID_MSMPEG4V3) && (trak->strl) && -+ else if((codec->encoder->id == AV_CODEC_ID_MSMPEG4V3) && (trak->strl) && - !strncmp(trak->strl->strf.bh.biCompression, "DIV3", 4)) - { - strncpy(trak->strl->strh.fccHandler, "div3", 4); - } -- else if((codec->encoder->id == CODEC_ID_H263) && -+ else if((codec->encoder->id == AV_CODEC_ID_H263) && - (file->file_type & (LQT_FILE_MP4|LQT_FILE_3GP))) - { - uint8_t d263_data[] = -@@ -1383,7 +1383,7 @@ - strncpy(trak->mdia.minf.stbl.stsd.table[0].format, - "s263", 4); - } -- else if(codec->encoder->id == CODEC_ID_FFVHUFF) -+ else if(codec->encoder->id == AV_CODEC_ID_FFVHUFF) - { - if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML))) - { -@@ -1391,7 +1391,7 @@ - codec->write_global_header = 1; - } - } -- else if(codec->encoder->id == CODEC_ID_QTRLE) -+ else if(codec->encoder->id == AV_CODEC_ID_QTRLE) - { - if(vtrack->stream_cmodel == BC_RGBA8888) - { -@@ -1402,11 +1402,11 @@ - vtrack->track->mdia.minf.stbl.stsd.table[0].depth = 32; - } - } -- else if(codec->encoder->id == CODEC_ID_DVVIDEO) -+ else if(codec->encoder->id == AV_CODEC_ID_DVVIDEO) - { - set_dv_fourcc(width, height, vtrack->stream_cmodel, trak); - } -- else if(codec->encoder->id == CODEC_ID_DNXHD) -+ else if(codec->encoder->id == AV_CODEC_ID_DNXHD) - { - if(vtrack->interlace_mode != LQT_INTERLACE_NONE) - { -@@ -1558,12 +1558,12 @@ - - #endif - -- if(!was_initialized && codec->encoder->id == CODEC_ID_DNXHD) -+ if(!was_initialized && codec->encoder->id == AV_CODEC_ID_DNXHD) - setup_avid_atoms(file, vtrack, codec->buffer, bytes_encoded); - - if(bytes_encoded) - { -- if (pts == AV_NOPTS_VALUE || (codec->encoder->id == CODEC_ID_DNXHD && pts == 0)) -+ if (pts == AV_NOPTS_VALUE || (codec->encoder->id == AV_CODEC_ID_DNXHD && pts == 0)) - { - /* Some codecs don't bother generating presentation timestamps. - FFMpeg's DNxHD encoder doesn't even bother to set it to AV_NOPTS_VALUE. */ -@@ -1590,13 +1590,13 @@ - - if(codec->write_global_header && !codec->global_header_written) - { -- if(codec->encoder->id == CODEC_ID_FFVHUFF) -+ if(codec->encoder->id == AV_CODEC_ID_FFVHUFF) - { - quicktime_user_atoms_add_atom(&trak->mdia.minf.stbl.stsd.table[0].user_atoms, - "glbl", - codec->avctx->extradata, codec->avctx->extradata_size ); - } -- else if(codec->encoder->id == CODEC_ID_MPEG4) -+ else if(codec->encoder->id == AV_CODEC_ID_MPEG4) - { - int advanced = 0; - if(codec->avctx->max_b_frames || -@@ -1903,18 +1903,18 @@ - codec_base->encode_video = lqt_ffmpeg_encode_video; - codec_base->set_pass = set_pass_ffmpeg; - -- if(encoder->id == CODEC_ID_MPEG4) -+ if(encoder->id == AV_CODEC_ID_MPEG4) - { - codec_base->writes_compressed = writes_compressed_mpeg4; - codec_base->init_compressed = init_compressed_mpeg4; - codec_base->write_packet = write_packet_mpeg4; - } -- else if(encoder->id == CODEC_ID_MPEG2VIDEO) -+ else if(encoder->id == AV_CODEC_ID_MPEG2VIDEO) - { - codec_base->writes_compressed = writes_compressed_imx; - codec_base->init_compressed = init_compressed_imx; - } -- else if(encoder->id == CODEC_ID_DVVIDEO) -+ else if(encoder->id == AV_CODEC_ID_DVVIDEO) - { - codec_base->init_compressed = init_compressed_dv; - } -@@ -1922,7 +1922,7 @@ - } - if(decoder) - { -- if(decoder->id == CODEC_ID_H264) -+ if(decoder->id == AV_CODEC_ID_H264) - codec_base->read_packet = read_packet_h264; - codec_base->decode_video = lqt_ffmpeg_decode_video; - } ---- libquicktime-1.2.4/plugins/ffmpeg/audio.c.orig 2016-02-17 08:17:57.421481934 +0000 -+++ libquicktime-1.2.4/plugins/ffmpeg/audio.c 2016-02-17 08:18:05.254782305 +0000 -@@ -626,7 +626,7 @@ - { - /* If the codec is mp3, make sure to decode the very last frame */ - -- if((codec->avctx->codec_id == CODEC_ID_MP3) && -+ if((codec->avctx->codec_id == AV_CODEC_ID_MP3) && - (codec->bytes_in_chunk_buffer >= 4)) - { - if(!mpa_decode_header(&mph, codec->chunk_buffer, (const mpa_header*)0)) -@@ -695,7 +695,7 @@ - - /* Some really broken mp3 files have the header bytes split across 2 chunks */ - -- if(codec->avctx->codec_id == CODEC_ID_MP3) -+ if(codec->avctx->codec_id == AV_CODEC_ID_MP3) - { - if(codec->bytes_in_chunk_buffer < 4) - { -@@ -806,7 +806,7 @@ - - if(bytes_decoded < 0) - { -- if(codec->avctx->codec_id == CODEC_ID_MP3) -+ if(codec->avctx->codec_id == AV_CODEC_ID_MP3) - { - /* For mp3, bytes_decoded < 0 means, that the frame should be muted */ - memset(&codec->sample_buffer[track_map->channels * (codec->sample_buffer_end - -@@ -866,8 +866,8 @@ - quicktime_audio_map_t *track_map = &file->atracks[track]; - quicktime_ffmpeg_audio_codec_t *codec = track_map->codec->priv; - -- if((codec->decoder->id == CODEC_ID_MP2) || -- (codec->decoder->id == CODEC_ID_MP3)) -+ if((codec->decoder->id == AV_CODEC_ID_MP2) || -+ (codec->decoder->id == AV_CODEC_ID_MP3)) - { - mpa_header h; - uint32_t header; -@@ -909,7 +909,7 @@ - else - track_map->ci.bitrate = h.bitrate; - } -- else if(codec->decoder->id == CODEC_ID_AC3) -+ else if(codec->decoder->id == AV_CODEC_ID_AC3) - { - a52_header h; - uint8_t * ptr; -@@ -986,7 +986,7 @@ - #endif - /* Some codecs need extra stuff */ - -- if(codec->decoder->id == CODEC_ID_ALAC) -+ if(codec->decoder->id == AV_CODEC_ID_ALAC) - { - header = quicktime_wave_get_user_atom(track_map->track, "alac", &header_len); - if(header) -@@ -995,7 +995,7 @@ - codec->avctx->extradata_size = header_len; - } - } -- if(codec->decoder->id == CODEC_ID_QDM2) -+ if(codec->decoder->id == AV_CODEC_ID_QDM2) - { - header = quicktime_wave_get_user_atom(track_map->track, "QDCA", &header_len); - if(header) -@@ -1495,9 +1495,9 @@ - codec_base->decode_audio = lqt_ffmpeg_decode_audio; - codec_base->set_parameter = set_parameter; - -- if((decoder->id == CODEC_ID_MP3) || (decoder->id == CODEC_ID_MP2)) -+ if((decoder->id == AV_CODEC_ID_MP3) || (decoder->id == AV_CODEC_ID_MP2)) - codec_base->read_packet = read_packet_mpa; -- else if(decoder->id == CODEC_ID_AC3) -+ else if(decoder->id == AV_CODEC_ID_AC3) - { - codec_base->write_packet = write_packet_ac3; - codec_base->read_packet = read_packet_ac3; diff --git a/libraries/libquicktime/libquicktime.SlackBuild b/libraries/libquicktime/libquicktime.SlackBuild index 522d29632b..dd9518e9e6 100644 --- a/libraries/libquicktime/libquicktime.SlackBuild +++ b/libraries/libquicktime/libquicktime.SlackBuild @@ -80,10 +80,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -# Fix compatibility with ffmpeg 4.x -patch -p1 -i $CWD/libquicktime-1.2.4-ffmpeg2.patch -patch -p1 -i $CWD/libquicktime-ffmpeg3.patch -patch -p1 -i $CWD/libquicktime-1.2.4-ffmpeg4.patch +# Upstream seems to have dropped ffmpeg support # Fix compiling against newer faad2 patch -p1 -i $CWD/libquicktime-1.2.4-faad2.patch @@ -101,6 +98,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-gpl \ --with-libdv \ + --without-ffmpeg \ --build=$ARCH-slackware-linux make diff --git a/libraries/libsoup3/README b/libraries/libsoup3/README deleted file mode 100644 index dbdd7128d3..0000000000 --- a/libraries/libsoup3/README +++ /dev/null @@ -1,6 +0,0 @@ -Soup is an HTTP client/server library implementation in C. It uses -GObjects and the glib main loop to integrate well with GTK+ -applications, and has a synchronous API suitable for use in threaded -applications. - -NOTE: This package can co-exist with libsoup package in Slackware. diff --git a/libraries/libsoup3/libsoup3.SlackBuild b/libraries/libsoup3/libsoup3.SlackBuild deleted file mode 100644 index 82082c5eca..0000000000 --- a/libraries/libsoup3/libsoup3.SlackBuild +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/bash - -# Slackware build script for libsoup3 - -# Copyright 2022 Willy Sudiarto Raharjo -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# 20220422 bkw: Modified by SlackBuilds.org: fix PRINT_PACKAGE_NAME. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=libsoup3 -SRCNAM=libsoup -VERSION=${VERSION:-3.2.2} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ - -mkdir build -cd build - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - meson .. \ - --buildtype=release \ - --infodir=/usr/info \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --mandir=/usr/man \ - --prefix=/usr \ - -Dtests=FALSE \ - -Dsysprof="disabled" \ - -Dstrip=true \ - -Ddocs="disabled" \ - --sysconfdir=/etc - ninja - DESTDIR=$PKG ninja install -cd .. - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING NEWS README docs examples $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/libsoup3/libsoup3.info b/libraries/libsoup3/libsoup3.info deleted file mode 100644 index 9f0aa03a19..0000000000 --- a/libraries/libsoup3/libsoup3.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="libsoup3" -VERSION="3.2.2" -HOMEPAGE="https://gitlab.gnome.org/GNOME/libsoup" -DOWNLOAD="https://gitlab.gnome.org/GNOME/libsoup/-/archive/3.2.2/libsoup-3.2.2.tar.bz2" -MD5SUM="1078d82408992f610f2b65355953fb03" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Willy Sudiarto Raharjo" -EMAIL="willysr@slackbuilds.org" diff --git a/libraries/libsoup3/slack-desc b/libraries/libsoup3/slack-desc deleted file mode 100644 index 2567a528e2..0000000000 --- a/libraries/libsoup3/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -libsoup3: libsoup3 (an HTTP client/server library) -libsoup3: -libsoup3: Soup is an HTTP client/server library implementation in C. It uses -libsoup3: GObjects and the glib main loop to integrate well with GTK+ -libsoup3: applications, and has a synchronous API suitable for use in threaded -libsoup3: applications. -libsoup3: -libsoup3: -libsoup3: -libsoup3: -libsoup3: diff --git a/libraries/libvirt-python/libvirt-python.SlackBuild b/libraries/libvirt-python/libvirt-python.SlackBuild index 29b5253476..39b56678cc 100644 --- a/libraries/libvirt-python/libvirt-python.SlackBuild +++ b/libraries/libvirt-python/libvirt-python.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libvirt-python -# Copyright 2013-2021 Robby Workman, Tuscaloosa, Alabama, USA +# Copyright 2013-2022 Robby Workman, Tuscaloosa, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libvirt-python -VERSION=${VERSION:-8.1.0} +VERSION=${VERSION:-8.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/libraries/libvirt-python/libvirt-python.info b/libraries/libvirt-python/libvirt-python.info index 89796886bd..dc04cff21b 100644 --- a/libraries/libvirt-python/libvirt-python.info +++ b/libraries/libvirt-python/libvirt-python.info @@ -1,8 +1,8 @@ PRGNAM="libvirt-python" -VERSION="8.1.0" +VERSION="8.10.0" HOMEPAGE="https://libvirt.org" -DOWNLOAD="https://libvirt.org/sources/python/libvirt-python-8.1.0.tar.gz" -MD5SUM="dbb1ab179303700aefa20f831b645ee2" +DOWNLOAD="https://libvirt.org/sources/python/libvirt-python-8.10.0.tar.gz" +MD5SUM="a94593c9f169a47e4413c739dd538218" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libvirt" diff --git a/libraries/libvirt/823a62ec.patch b/libraries/libvirt/823a62ec.patch deleted file mode 100644 index 5fcc644d3e..0000000000 --- a/libraries/libvirt/823a62ec.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 823a62ec8aac4fb75e6e281164f3eb56ae47597c Mon Sep 17 00:00:00 2001 -From: Boris Fiuczynski -Date: Tue, 1 Mar 2022 18:47:59 +0100 -Subject: [PATCH] qemu: segmentation fault in virtqemud executing - qemuDomainUndefineFlags - -Commit 5adfb3472342741c443ac91dee0abb18b5a3d038 causes a segmentation fault. - -Stack trace of thread 664419: - #0 0x000003ff62ec553c in qemuDomainUndefineFlags (dom=0x3ff6c002810, flags=) at ../src/qemu/qemu_driver.c:6618 - #1 0x000003ff876a7e5c in virDomainUndefineFlags (domain=domain@entry=0x3ff6c002810, flags=) at ../src/libvirt-domain.c:6519 - #2 0x000002aa2b64a808 in remoteDispatchDomainUndefineFlags (server=0x2aa2c3d7880, msg=0x2aa2c3d2770, args=, rerr=0x3ff8287b950, client=) - at src/remote/remote_daemon_dispatch_stubs.h:13080 - #3 remoteDispatchDomainUndefineFlagsHelper (server=0x2aa2c3d7880, client=, msg=0x2aa2c3d2770, rerr=0x3ff8287b950, args=, ret=0x0) - at src/remote/remote_daemon_dispatch_stubs.h:13059 - #4 0x000003ff8758bbf4 in virNetServerProgramDispatchCall (msg=0x2aa2c3d2770, client=0x2aa2c3e3050, server=0x2aa2c3d7880, prog=0x2aa2c3d8010) - at ../src/rpc/virnetserverprogram.c:428 - #5 virNetServerProgramDispatch (prog=0x2aa2c3d8010, server=server@entry=0x2aa2c3d7880, client=0x2aa2c3e3050, msg=0x2aa2c3d2770) at ../src/rpc/virnetserverprogram.c:302 - #6 0x000003ff8758c260 in virNetServerProcessMsg (msg=, prog=, client=, srv=0x2aa2c3d7880) at ../src/rpc/virnetserver.c:140 - #7 virNetServerHandleJob (jobOpaque=0x2aa2c3e2d30, opaque=0x2aa2c3d7880) at ../src/rpc/virnetserver.c:160 - #8 0x000003ff874c49aa in virThreadPoolWorker (opaque=) at ../src/util/virthreadpool.c:164 - #9 0x000003ff874c3f62 in virThreadHelper (data=) at ../src/util/virthread.c:256 - #10 0x000003ff86c1cf8c in start_thread () from /lib64/libc.so.6 - #11 0x000003ff86c9650e in thread_start () from /lib64/libc.so.6 - -Signed-off-by: Boris Fiuczynski -Reviewed-by: Jim Fehlig -Reviewed-by: Michal Privoznik ---- - src/qemu/qemu_driver.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c -index bcd9bdb436..8337eed510 100644 ---- a/src/qemu/qemu_driver.c -+++ b/src/qemu/qemu_driver.c -@@ -6615,7 +6615,7 @@ qemuDomainUndefineFlags(virDomainPtr dom, - } - } - -- if (vm->def->os.loader->nvram) { -+ if (vm->def->os.loader && vm->def->os.loader->nvram) { - nvram_path = g_strdup(vm->def->os.loader->nvram); - } else if (vm->def->os.firmware == VIR_DOMAIN_OS_DEF_FIRMWARE_EFI) { - qemuDomainNVRAMPathFormat(cfg, vm->def, &nvram_path); --- -GitLab - diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild index 032b2fe58a..5f8bf7ae90 100644 --- a/libraries/libvirt/libvirt.SlackBuild +++ b/libraries/libvirt/libvirt.SlackBuild @@ -10,8 +10,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libvirt -VERSION=${VERSION:-8.1.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-8.10.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,14 +74,12 @@ sed -i "s|prefix / 'lib' / 'sysctl.d'|sysconfdir / 'sysctl.d'|" src/remote/meson patch -p1 < $CWD/use-virtgroup-in-polkit-rules.diff sed -i -e "s,@VIRTGROUP@,$VIRTGROUP,g" src/remote/libvirtd.rules -patch -p1 < $CWD/823a62ec.patch - # Since 5.10: "configure: error: Build directory must be different from source directory" mkdir -p build cd build CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ - meson .. \ + meson setup .. \ --buildtype=release \ --infodir=/usr/info \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -104,7 +102,6 @@ cd build -Ddriver_vz=disabled \ -Dsecdriver_apparmor=disabled \ -Dsecdriver_selinux=disabled \ - -Dstorage_sheepdog=disabled \ -Dstorage_vstorage=disabled \ -Ddtrace=disabled \ -Dstrip=true \ diff --git a/libraries/libvirt/libvirt.info b/libraries/libvirt/libvirt.info index 8c4818291e..133e7994f0 100644 --- a/libraries/libvirt/libvirt.info +++ b/libraries/libvirt/libvirt.info @@ -1,8 +1,8 @@ PRGNAM="libvirt" -VERSION="8.1.0" +VERSION="8.10.0" HOMEPAGE="http://libvirt.org" -DOWNLOAD="https://libvirt.org/sources/libvirt-8.1.0.tar.xz" -MD5SUM="db2ab9f064a611dbeea3156cf26a2ed1" +DOWNLOAD="https://libvirt.org/sources/libvirt-8.10.0.tar.xz" +MD5SUM="47feb4bed510cb7ed8fdc5be6b9d6d04" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="yajl" diff --git a/libraries/podofo/XRefStrParObj-deprecated.patch b/libraries/podofo/XRefStrParObj-deprecated.patch deleted file mode 100644 index d2a74b68b5..0000000000 --- a/libraries/podofo/XRefStrParObj-deprecated.patch +++ /dev/null @@ -1,61 +0,0 @@ -diff -Naur podofo-0.9.6.orig/src/base/PdfXRefStreamParserObject.h podofo-0.9.6/src/base/PdfXRefStreamParserObject.h ---- podofo-0.9.6.orig/src/base/PdfXRefStreamParserObject.h 2014-06-06 22:13:22.000000000 +0000 -+++ podofo-0.9.6/src/base/PdfXRefStreamParserObject.h 2020-05-03 02:26:01.119538387 +0000 -@@ -47,8 +47,11 @@ - * an XRef stream object. - * - * It is mainly here to make PdfParser more modular. -+ * This is only marked PODOFO_API for the benefit of the tests, -+ * the class is for internal use only. It is deprecated, so -+ * don't ever rely on it (i.e. externally or in PoDoFo tools). - */ --class PdfXRefStreamParserObject : public PdfParserObject { -+class PODOFO_DEPRECATED PODOFO_API PdfXRefStreamParserObject : public PdfParserObject { - public: - - /** Parse the object data from the given file handle starting at -diff -Naur podofo-0.9.6.orig/src/base/podofoapi.h podofo-0.9.6/src/base/podofoapi.h ---- podofo-0.9.6.orig/src/base/podofoapi.h 2017-10-27 06:38:19.000000000 +0000 -+++ podofo-0.9.6/src/base/podofoapi.h 2020-05-03 02:27:03.874537513 +0000 -@@ -173,9 +173,22 @@ - - /* Set up some other compiler-specific but not platform-specific macros */ - --#if defined(__GNUC__) -- /* gcc will issue a warning if a function or variable so annotated is used */ -- #define PODOFO_DEPRECATED __attribute__((deprecated)) -+#ifdef __GNU__ -+ #define PODOFO_HAS_GCC_ATTRIBUTE_DEPRECATED 1 -+#elif defined(__has_attribute) -+ #if __has_attribute(__deprecated__) -+ #define PODOFO_HAS_GCC_ATTRIBUTE_DEPRECATED 1 -+ #endif -+#endif -+ -+#ifdef PODOFO_HAS_GCC_ATTRIBUTE_DEPRECATED -+ /* gcc (or compat. clang) will issue a warning if a function or variable so annotated is used */ -+ #define PODOFO_DEPRECATED __attribute__((__deprecated__)) -+#else -+ #define PODOFO_DEPRECATED -+#endif -+ -+#ifdef __GNU__ - /* gcc can do some additional optimisations on functions annotated as pure. - * See the documentation on __attribute__((pure)) in the gcc docs. */ - #define PODOFO_PURE_FUNCTION __attribute__((pure)) -@@ -185,9 +198,12 @@ - * (see CODINGSTYLE.txt) .*/ - #define PODOFO_NOTHROW __attribute__((nothrow)) - #else -- #define PODOFO_DEPRECATED -- #define PODOFO_PURE_FUNCTION -- #define PODOFO_NOTHROW __declspec(nothrow) -+ #define PODOFO_PURE_FUNCTION -+ #ifdef _MSC_VER -+ #define PODOFO_NOTHROW __declspec(nothrow) -+ #else -+ #define PODOFO_NOTHROW -+ #endif - #endif - - // Peter Petrov 27 April 2008 diff --git a/libraries/podofo/gcc12.patch b/libraries/podofo/gcc12.patch new file mode 100644 index 0000000000..1bd71721e3 --- /dev/null +++ b/libraries/podofo/gcc12.patch @@ -0,0 +1,39 @@ +From d0e9f5d503b0cb79516ec9bff989f3d7d625b678 Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Sun, 14 Aug 2022 08:27:13 +0200 +Subject: [PATCH] Fix declaration of operator<< for PoDoFo::PdfString + +Since PdfString is in the PoDoFo namespace, the operator<< for it must +be in the same namespace as well, otherwise it is not found. In +particular, operator<<(std::ostream&) is needed by cppunit as a way to +get the string representation of an arbitrary type, when using +CPPUNIT_ASSERT_EQUAL() on instances of it. + +This used to work with GCC until 11 because of a buggy behaviour. +GCC 12 fixed it [1], causing this test to fail to build with it. + +[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 +--- + test/unit/StringTest.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/test/unit/StringTest.cpp b/test/unit/StringTest.cpp +index a7841f78..b52b7880 100644 +--- a/test/unit/StringTest.cpp ++++ b/test/unit/StringTest.cpp +@@ -29,11 +29,15 @@ using namespace PoDoFo; + // Registers the fixture into the 'registry' + CPPUNIT_TEST_SUITE_REGISTRATION( StringTest ); + ++namespace PoDoFo { ++ + inline std::ostream& operator<<(std::ostream& o, const PdfString& s) + { + return o << s.GetStringUtf8(); + } + ++} ++ + void StringTest::setUp() + { + } diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild index 8484a157da..d425cbd091 100644 --- a/libraries/podofo/podofo.SlackBuild +++ b/libraries/podofo/podofo.SlackBuild @@ -29,8 +29,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=podofo -VERSION=${VERSION:-0.9.6} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.9.8} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -80,12 +80,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -sed -i "s/BINARY_DIR}\/objects\"/BINARY_DIR}\/objects\" || true/" test/TokenizerTest/CMakeLists.txt +# Thanks to chrisretusn on LQ! +patch -p1 < $CWD/gcc12.patch + +sed -i "s/BINARY_DIR}\/objects\"/BINARY_DIR}\/objects\" || true/" test/TokenizerTest/CMakeLists.txt || exit 1 # Fix mandir directory. -sed -i 's|share/man|man|' CMakeLists.txt -# Ref: https://sourceforge.net/p/podofo/tickets/28/ -patch -p1 < $CWD/XRefStrParObj-deprecated.patch +sed -i 's|share/man|man|' CMakeLists.txt || exit 1 mkdir build cd build @@ -96,7 +97,6 @@ cd build -DPODOFO_BUILD_STATIC:BOOL=FALSE \ -DPODOFO_BUILD_SHARED:BOOL=TRUE \ -DPODOFO_USE_VISIBILITY:BOOL=1 \ - -DCMAKE_CXX_STANDARD:STRING=11 \ -DWANT_BOOST:BOOL=1 \ -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX" \ -DCMAKE_BUILD_TYPE=Release .. diff --git a/libraries/podofo/podofo.info b/libraries/podofo/podofo.info index 5a97ef24ef..5d3f34b904 100644 --- a/libraries/podofo/podofo.info +++ b/libraries/podofo/podofo.info @@ -1,8 +1,8 @@ PRGNAM="podofo" -VERSION="0.9.6" +VERSION="0.9.8" HOMEPAGE="http://podofo.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/podofo/podofo-0.9.6.tar.gz" -MD5SUM="46336fc4c4ce4be814bb5fbb4d918334" +DOWNLOAD="http://downloads.sourceforge.net/podofo/podofo-0.9.8.tar.gz" +MD5SUM="f6d3d5f917c7150c44fc6a15848442dd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/libraries/wxsvg/wxsvg.SlackBuild b/libraries/wxsvg/wxsvg.SlackBuild index 0c04a02a7a..8d5fbe29e4 100644 --- a/libraries/wxsvg/wxsvg.SlackBuild +++ b/libraries/wxsvg/wxsvg.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wxsvg -# Copyright 2013-2019 Matteo Bernardini , Pisa, Italy +# Copyright 2013-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wxsvg -VERSION=${VERSION:-1.5.20} +VERSION=${VERSION:-1.5.24} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/libraries/wxsvg/wxsvg.info b/libraries/wxsvg/wxsvg.info index 9b9c1d267b..d5e7a70bc6 100644 --- a/libraries/wxsvg/wxsvg.info +++ b/libraries/wxsvg/wxsvg.info @@ -1,8 +1,8 @@ PRGNAM="wxsvg" -VERSION="1.5.20" +VERSION="1.5.24" HOMEPAGE="https://sourceforge.net/projects/wxsvg/" -DOWNLOAD="https://downloads.sf.net/wxsvg/wxsvg-1.5.20.tar.bz2" -MD5SUM="a56b8c6b29599e1d7404120093072ce0" +DOWNLOAD="https://downloads.sf.net/wxsvg/wxsvg-1.5.24.tar.bz2" +MD5SUM="4f6780ef38bed0f7a7b6bb8d6499f405" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="wxGTK3" diff --git a/misc/xcb-imdkit/README b/misc/xcb-imdkit/README deleted file mode 100644 index a9aaa69367..0000000000 --- a/misc/xcb-imdkit/README +++ /dev/null @@ -1,8 +0,0 @@ -xcb-imdkit is an implementation of the xim protocol in xcb. Compared -with the implementation of IMDkit with Xlib, and xim inside Xlib, it -has a smaller memory footprint, better performance, and is safer on -malformed clients. And not to say it's all asynchronous and it works -with xcb. - -To build this project, you need: libxcb, xcb-util, xcb-util-keysym, -which are all included in a full Slackware installation. diff --git a/misc/xcb-imdkit/slack-desc b/misc/xcb-imdkit/slack-desc deleted file mode 100644 index 73fec52ff7..0000000000 --- a/misc/xcb-imdkit/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -xcb-imdkit: xcb-imdkit (implementation of the xim protocol in xcb) -xcb-imdkit: -xcb-imdkit: xcb-imdkit is an implementation of the xim protocol in xcb. Compared -xcb-imdkit: with the implementation of IMDkit with Xlib, and xim inside Xlib, it -xcb-imdkit: has a smaller memory footprint, better performance, and is safer on -xcb-imdkit: malformed clients. And not to say it's all asynchronous and it works -xcb-imdkit: with xcb. -xcb-imdkit: -xcb-imdkit: Homepage: https://github.com/fcitx/xcb-imdkit -xcb-imdkit: -xcb-imdkit: diff --git a/misc/xcb-imdkit/xcb-imdkit.SlackBuild b/misc/xcb-imdkit/xcb-imdkit.SlackBuild deleted file mode 100644 index e035326e46..0000000000 --- a/misc/xcb-imdkit/xcb-imdkit.SlackBuild +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash - -# Copyright 2022 Wen-Wei Kao (ltlnx), Taichung, Taiwan -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=xcb-imdkit -VERSION=${VERSION:-1.0.4} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -mkdir -p build -cd build - cmake \ - -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_C_FLAGS="${SLKCFLAGS}" \ - -DCMAKE_INSTALL_PREFIX="/usr" \ - -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} .. - make - make install/strip DESTDIR=$PKG -cd .. - -rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSES/* README* $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/misc/xcb-imdkit/xcb-imdkit.info b/misc/xcb-imdkit/xcb-imdkit.info deleted file mode 100644 index 2189981467..0000000000 --- a/misc/xcb-imdkit/xcb-imdkit.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="xcb-imdkit" -VERSION="1.0.4" -HOMEPAGE="https://github.com/fcitx/xcb-imdkit" -DOWNLOAD="https://download.fcitx-im.org/fcitx5/xcb-imdkit/xcb-imdkit-1.0.4.tar.xz" -MD5SUM="c4cda4c3d5630f6338958e55c2d61327" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="ltlnx" -EMAIL="ltlnx.tw@gmail.com" diff --git a/multimedia/dvdstyler/dvdstyler.SlackBuild b/multimedia/dvdstyler/dvdstyler.SlackBuild index 06e3562ed8..8a6f256618 100644 --- a/multimedia/dvdstyler/dvdstyler.SlackBuild +++ b/multimedia/dvdstyler/dvdstyler.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for dvdstyler -# Copyright 2013-2019 Matteo Bernardini , Pisa, Italy +# Copyright 2013-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dvdstyler SPRGNAM=DVDStyler -VERSION=${VERSION:-3.1.2} +VERSION=${VERSION:-3.3b3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/multimedia/dvdstyler/dvdstyler.info b/multimedia/dvdstyler/dvdstyler.info index 0dfb7e863b..581bbad6cb 100644 --- a/multimedia/dvdstyler/dvdstyler.info +++ b/multimedia/dvdstyler/dvdstyler.info @@ -1,8 +1,8 @@ PRGNAM="dvdstyler" -VERSION="3.1.2" +VERSION="3.3b3" HOMEPAGE="http://www.dvdstyler.org/" -DOWNLOAD="http://downloads.sf.net/dvdstyler/DVDStyler-3.1.2.tar.bz2" -MD5SUM="8d5e977900ade9f57ae1e13c2e50b1ac" +DOWNLOAD="http://downloads.sf.net/dvdstyler/DVDStyler-3.3b3.tar.bz2" +MD5SUM="d92cc509cb6c39d74f2ce56d6f686cff" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libavc1394 libmspack libquicktime mjpegtools mpgtx wxsvg" diff --git a/multimedia/gpac/gpac.SlackBuild b/multimedia/gpac/gpac.SlackBuild index 3d47f2be9d..cf901dd523 100644 --- a/multimedia/gpac/gpac.SlackBuild +++ b/multimedia/gpac/gpac.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="gpac" -VERSION=${VERSION:-1.0.1} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/multimedia/gpac/gpac.info b/multimedia/gpac/gpac.info index 9b1adc7085..c0c3c6c726 100644 --- a/multimedia/gpac/gpac.info +++ b/multimedia/gpac/gpac.info @@ -1,8 +1,8 @@ PRGNAM="gpac" -VERSION="1.0.1" +VERSION="2.0.0" HOMEPAGE="http://gpac.wp.mines-telecom.fr" -DOWNLOAD="https://github.com/gpac/gpac/archive/v1.0.1/gpac-1.0.1.tar.gz" -MD5SUM="52f6711e43a8d271ebec0c2ea2afab4a" +DOWNLOAD="https://github.com/gpac/gpac/archive/v2.0.0/gpac-2.0.0.tar.gz" +MD5SUM="8e412a155f558f71609c26a282e682b3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.SlackBuild b/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.SlackBuild index 5fdcb0305a..12998094ba 100644 --- a/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.SlackBuild +++ b/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.SlackBuild @@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gst-plugins-bad-nonfree -VERSION=${VERSION:-1.18.5} +VERSION=${VERSION:-1.20.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.info b/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.info index 43340d39f2..75949728c2 100644 --- a/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.info +++ b/multimedia/gst-plugins-bad-nonfree/gst-plugins-bad-nonfree.info @@ -1,8 +1,8 @@ PRGNAM="gst-plugins-bad-nonfree" -VERSION="1.18.5" +VERSION="1.20.2" HOMEPAGE="https://gstreamer.freedesktop.org/" -DOWNLOAD="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.18.5.tar.xz" -MD5SUM="4ab1c19c3cf1ba79c20c65f6be78e7fd" +DOWNLOAD="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.20.2.tar.xz" +MD5SUM="1c537891ea5c412f5e71a632e9e6d96c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/multimedia/gst-plugins-ugly/gst-plugins-ugly.SlackBuild b/multimedia/gst-plugins-ugly/gst-plugins-ugly.SlackBuild index d5d9e11406..23e7855262 100644 --- a/multimedia/gst-plugins-ugly/gst-plugins-ugly.SlackBuild +++ b/multimedia/gst-plugins-ugly/gst-plugins-ugly.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gst-plugins-ugly -VERSION=${VERSION:-1.18.5} +VERSION=${VERSION:-1.20.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -90,8 +90,7 @@ cd build --localstatedir=/var \ --mandir=/usr/man \ --prefix=/usr \ - --sysconfdir=/etc \ - -Dexamples=disabled + --sysconfdir=/etc "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install cd .. diff --git a/multimedia/gst-plugins-ugly/gst-plugins-ugly.info b/multimedia/gst-plugins-ugly/gst-plugins-ugly.info index 5a55a8aa0f..de6daf1f92 100644 --- a/multimedia/gst-plugins-ugly/gst-plugins-ugly.info +++ b/multimedia/gst-plugins-ugly/gst-plugins-ugly.info @@ -1,8 +1,8 @@ PRGNAM="gst-plugins-ugly" -VERSION="1.18.5" +VERSION="1.20.2" HOMEPAGE="https://gstreamer.freedesktop.org/" -DOWNLOAD="https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.18.5.tar.xz" -MD5SUM="049f90b7a3a72e241ad47564b5cd7a7a" +DOWNLOAD="https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.20.2.tar.xz" +MD5SUM="62dcd0cb786ea10cc34c9927aa656aac" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild b/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild index e7dc3721c7..184c0d3092 100644 --- a/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild +++ b/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild @@ -78,6 +78,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/ruby-3.2.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/multimedia/mkvtoolnix/ruby-3.2.patch b/multimedia/mkvtoolnix/ruby-3.2.patch new file mode 100644 index 0000000000..2dd5e2e08f --- /dev/null +++ b/multimedia/mkvtoolnix/ruby-3.2.patch @@ -0,0 +1,382 @@ +From ab6455f68c597ede3d6959597a38f2ecbc198011 Mon Sep 17 00:00:00 2001 +From: Moritz Bunkus +Date: Mon, 2 Jan 2023 22:27:27 +0100 +Subject: [PATCH] build system: fix compatibility with Ruby 3.2.0 + +Several deprecated functions were removed: `Dir.exists?`, +`File.exists?` & `FileTest.exists?`. Instead of those +`FileTest.exist?` must be used (without the `s`). See the release +notes for Ruby 3.2.0 as well as the issue for removing the functions: + +https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/ +https://bugs.ruby-lang.org/issues/17391 +--- + NEWS.md | 9 +++++++++ + Rakefile | 12 ++++++------ + .../file_list_to_nsi_uninstaller_instructions.rb | 2 +- + rake.d/compilation_database.rb | 4 ++-- + rake.d/config.rb | 4 ++-- + rake.d/helpers.rb | 10 +++++----- + rake.d/online_file.rb | 4 ++-- + rake.d/tarball.rb | 2 +- + tests/test-0382split_chapters.rb | 2 +- + tests/test-0532chapter_generation_when_appending.rb | 2 +- + tests/test-0533chapter_generation_interval.rb | 2 +- + ...34chapter_generation_when_appending_audio_only.rb | 2 +- + ...est-0535chapter_generation_interval_audio_only.rb | 2 +- + tests/test.d/simple_test.rb | 6 +++--- + tests/test.d/test.rb | 6 +++--- + tools/development/update_translations.rb | 4 ++-- + 16 files changed, 41 insertions(+), 32 deletions(-) + +diff --git a/NEWS.md b/NEWS.md +index 1b67afb44..80a7bceb8 100644 +--- a/NEWS.md ++++ b/NEWS.md +@@ -1,3 +1,12 @@ ++# Version ? ++ ++## Bug fixes ++ ++* build system: fixed compatibility with Ruby 3.2.0 by using `FileTest.exist?` ++ instead of `File.exists?`, `Dir.exists?` & `FileTest.exists?` which were ++ removed in that release. ++ ++ + # Version 73.0.0 "25 or 6 to 4" 2023-01-02 + + ## New features and enhancements +diff --git a/Rakefile b/Rakefile +index 8bf87d647..89cf8f1cd 100644 +--- a/Rakefile ++++ b/Rakefile +@@ -277,7 +277,7 @@ def define_default_task + targets << ($run_unit_tests ? 'tests:run_unit' : 'tests:unit') if $have_gtest + + # The tags file -- but only if it exists already +- if File.exists?("TAGS") ++ if FileTest.exist?("TAGS") + targets << "TAGS" if !c(:ETAGS).empty? + targets << "BROWSE" if !c(:EBROWSE).empty? + end +@@ -454,7 +454,7 @@ end + rule '.1' => '.xml' do |t| + filter = lambda do |code, lines| + if (0 == code) && lines.any? { |line| /^error|parser error/i.match(line) } +- File.unlink(t.name) if File.exists?(t.name) ++ File.unlink(t.name) if FileTest.exist?(t.name) + result = 1 + puts lines.join('') + +@@ -668,7 +668,7 @@ EOT + if $po4a_cfg + desc "Update the man pages' translation files" + task :manpages do +- FileUtils.touch($po4a_pot) if !FileTest.exists?($po4a_pot) ++ FileUtils.touch($po4a_pot) if !FileTest.exist?($po4a_pot) + + runq "po4a", "#{$po4a_cfg} (update PO/POT)", "#{c(:PO4A)} #{$flags[:po4a]} --no-translations ${po4a_cfg}" + $all_man_po_files.each do |po_file| +@@ -822,8 +822,8 @@ if $po4a_cfg + po4a_sources += $available_languages[:manpages].map { |language| "doc/man/po4a/po/#{language}.po" } + + file $po4a_stamp => po4a_sources do |t| +- File.unlink($po4a_stamp) if FileTest.exists?($po4a_stamp) +- FileUtils.touch($po4a_pot) if !FileTest.exists?($po4a_pot) ++ File.unlink($po4a_stamp) if FileTest.exist?($po4a_stamp) ++ FileUtils.touch($po4a_pot) if !FileTest.exist?($po4a_pot) + + runq "po4a", "#{$po4a_cfg}", "#{c(:PO4A)} #{$flags[:po4a]} #{$po4a_cfg}", :filter_output => po4a_output_filter + runq_touch $po4a_stamp +@@ -1054,7 +1054,7 @@ task :clean do + + remove_files_by_patterns patterns + +- if Dir.exists? $dependency_dir ++ if FileTest.exist? $dependency_dir + puts_vaction "rm -rf", :target => "#{$dependency_dir}" + FileUtils.rm_rf $dependency_dir + end +diff --git a/packaging/windows/file_list_to_nsi_uninstaller_instructions.rb b/packaging/windows/file_list_to_nsi_uninstaller_instructions.rb +index 045f59aca..d62cb5713 100755 +--- a/packaging/windows/file_list_to_nsi_uninstaller_instructions.rb ++++ b/packaging/windows/file_list_to_nsi_uninstaller_instructions.rb +@@ -7,7 +7,7 @@ fail "Missing file list name" if ARGV.empty? + + config = read_config + file_name = ARGV[0] +-file_name = "#{config['file_list_dir']}/#{file_name}.txt" if !FileTest.exists?(file_name) ++file_name = "#{config['file_list_dir']}/#{file_name}.txt" if !FileTest.exist?(file_name) + files = IO.readlines(file_name).map { |file| file.chomp.gsub(%r{^\.}, '').gsub(%r{^/}, '').gsub(%r{/}, '\\') } + dirs = {} + +diff --git a/rake.d/compilation_database.rb b/rake.d/compilation_database.rb +index 67f05b143..00ef35406 100644 +--- a/rake.d/compilation_database.rb ++++ b/rake.d/compilation_database.rb +@@ -8,7 +8,7 @@ module Mtx + end + + def self.read +- return {} unless FileTest.exists?(@file_name) ++ return {} unless FileTest.exist?(@file_name) + + Hash[ + *JSON.parse(IO.readlines(@file_name).join("")). +@@ -19,7 +19,7 @@ module Mtx + + def self.write + return if @compilation_commands.empty? +- return if !FileTest.exists?(@file_name) && !c?(:BUILD_COMPILATION_DATABASE) ++ return if !FileTest.exist?(@file_name) && !c?(:BUILD_COMPILATION_DATABASE) + + entries = self.read.merge(@compilation_commands).values.sort_by { |e| e["file"] } + File.open(@file_name, "w") do |f| +diff --git a/rake.d/config.rb b/rake.d/config.rb +index 1869e4eac..c3b0d3811 100644 +--- a/rake.d/config.rb ++++ b/rake.d/config.rb +@@ -13,10 +13,10 @@ end + def read_build_config + dir = File.dirname(__FILE__) + '/..' + +- fail "build-config not found: please run ./configure" unless File.exists?("#{dir}/build-config") ++ fail "build-config not found: please run ./configure" unless FileTest.exist?("#{dir}/build-config") + + config = read_config_file("#{dir}/build-config") +- config = config.merge(read_config_file("#{dir}/build-config.local")) if File.exists?("#{dir}/build-config.local") ++ config = config.merge(read_config_file("#{dir}/build-config.local")) if FileTest.exist?("#{dir}/build-config.local") + + config + end +diff --git a/rake.d/helpers.rb b/rake.d/helpers.rb +index 97041d8fc..bdabc7730 100644 +--- a/rake.d/helpers.rb ++++ b/rake.d/helpers.rb +@@ -181,7 +181,7 @@ def import_dependencies + Dir.glob("#{$dependency_dir}/*.dep").each do |file_name| + lines = IO.readlines(file_name).collect(&:chomp) + target = lines.shift +- file target => lines.select { |dep_name| File.exists? dep_name } ++ file target => lines.select { |dep_name| FileTest.exist? dep_name } + end + end + +@@ -211,7 +211,7 @@ def install_data(destination, *files) + end + + def remove_files_by_patterns patterns +- patterns.collect { |pattern| FileList[pattern].to_a }.flatten.uniq.select { |file_name| File.exists? file_name }.each do |file_name| ++ patterns.collect { |pattern| FileList[pattern].to_a }.flatten.uniq.select { |file_name| FileTest.exist? file_name }.each do |file_name| + puts_vaction "rm", :target => file_name + File.unlink file_name + end +@@ -254,7 +254,7 @@ def check_version required, actual + end + + def ensure_file file_name, content = "" +- if FileTest.exists?(file_name) ++ if FileTest.exist?(file_name) + current_content = IO.readlines(file_name).join("\n") + return if current_content == content + end +@@ -267,7 +267,7 @@ def update_version_number_include + current_version = nil + wanted_version = c(:PACKAGE_VERSION) + +- if FileTest.exists?($version_header_name) ++ if FileTest.exist?($version_header_name) + lines = IO.readlines($version_header_name) + + if !lines.empty? && %r{#define.*?"([0-9.]+)"}.match(lines[0]) +@@ -352,7 +352,7 @@ def update_qrc_worker qrc + double_size = size * 2 + double_file = "share/icons/#{double_size}x#{double_size}/#{base_name}.png" + +- next unless FileTest.exists?(double_file) ++ next unless FileTest.exist?(double_file) + + add_node.call(double_file, 'alias' => name_alias) + seen[file.gsub(%r{.*/icons}, 'icons')] = true +diff --git a/rake.d/online_file.rb b/rake.d/online_file.rb +index 7daf5dc97..f5219ebec 100644 +--- a/rake.d/online_file.rb ++++ b/rake.d/online_file.rb +@@ -9,7 +9,7 @@ module Mtx::OnlineFile + file_name ||= url.gsub(%r{.*/}, '') + file_name = "tmp/#{file_name}" + +- if !FileTest.exists?(file_name) ++ if !FileTest.exist?(file_name) + @@to_unlink << file_name + + runq "wget", url, "wget --quiet -O #{file_name} #{url}" +@@ -30,7 +30,7 @@ module Mtx::OnlineFile + return if c?(:KEEP_DOWNLOADED_FILES) + + @@to_unlink. +- select { |fn| FileTest.exists? fn }. ++ select { |fn| FileTest.exist? fn }. + each { |fn| File.unlink fn } + end + end +diff --git a/rake.d/tarball.rb b/rake.d/tarball.rb +index c9cc3fd82..6b840b772 100644 +--- a/rake.d/tarball.rb ++++ b/rake.d/tarball.rb +@@ -1,6 +1,6 @@ + def create_source_tarball suffix = "" + tarball = "#{Dir.pwd}/../mkvtoolnix-#{c(:PACKAGE_VERSION)}#{suffix}.tar.xz" +- fail "#{tarball} does already exist" if FileTest.exists?(tarball) ++ fail "#{tarball} does already exist" if FileTest.exist?(tarball) + + Dir.mktmpdir do |dir| + clone_dir = "#{dir}/mkvtoolnix-#{c(:PACKAGE_VERSION)}" +diff --git a/tests/test-0382split_chapters.rb b/tests/test-0382split_chapters.rb +index db2ae297f..0319a73a8 100644 +--- a/tests/test-0382split_chapters.rb ++++ b/tests/test-0382split_chapters.rb +@@ -7,7 +7,7 @@ avi = "data/avi/v-h264-aac.avi" + chapters = "data/text/chapters-v-h264-aac.txt" + + def hash_results max +- ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ File.exists?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' ++ ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ FileTest.exist?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' + end + + test "chapters-in-mkv: numbers 1 & 7" do +diff --git a/tests/test-0532chapter_generation_when_appending.rb b/tests/test-0532chapter_generation_when_appending.rb +index a36cf9c65..4f396dda1 100755 +--- a/tests/test-0532chapter_generation_when_appending.rb ++++ b/tests/test-0532chapter_generation_when_appending.rb +@@ -5,7 +5,7 @@ file = "data/avi/v-h264-aac.avi" + describe "mkvmerge / generate chapter »when-appending«" + + def hash_results max +- ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ File.exists?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' ++ ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ FileTest.exist?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' + end + + test_merge "#{file} + #{file} + #{file}", :args => "--generate-chapters when-appending" +diff --git a/tests/test-0533chapter_generation_interval.rb b/tests/test-0533chapter_generation_interval.rb +index e584915a7..b2210642c 100755 +--- a/tests/test-0533chapter_generation_interval.rb ++++ b/tests/test-0533chapter_generation_interval.rb +@@ -5,7 +5,7 @@ file = "data/avi/v-h264-aac.avi" + describe "mkvmerge / generate chapter »interval«" + + def hash_results max +- ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ File.exists?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' ++ ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ FileTest.exist?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' + end + + test_merge "#{file} + #{file} + #{file}", :args => "--generate-chapters interval:30s" +diff --git a/tests/test-0534chapter_generation_when_appending_audio_only.rb b/tests/test-0534chapter_generation_when_appending_audio_only.rb +index 2a3dbc7d3..8984cb31f 100755 +--- a/tests/test-0534chapter_generation_when_appending_audio_only.rb ++++ b/tests/test-0534chapter_generation_when_appending_audio_only.rb +@@ -5,7 +5,7 @@ file = "data/simple/v.mp3" + describe "mkvmerge / generate chapter »when-appending« without video tracks" + + def hash_results max +- ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ File.exists?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' ++ ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ FileTest.exist?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' + end + + test_merge "#{file} + #{file} + #{file}", :args => "--generate-chapters when-appending" +diff --git a/tests/test-0535chapter_generation_interval_audio_only.rb b/tests/test-0535chapter_generation_interval_audio_only.rb +index 7fa7270b6..3d3c96ed6 100755 +--- a/tests/test-0535chapter_generation_interval_audio_only.rb ++++ b/tests/test-0535chapter_generation_interval_audio_only.rb +@@ -5,7 +5,7 @@ file = "data/simple/v.mp3" + describe "mkvmerge / generate chapter »interval« without video tracks" + + def hash_results max +- ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ File.exists?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' ++ ( (1..max).collect { |i| hash_file(sprintf("%s-%02d", tmp, i)) } + [ FileTest.exist?(sprintf("%s-%02d", tmp, max + 1)) ? 'bad' : 'ok' ]).join '+' + end + + test_merge "#{file} + #{file} + #{file}", :args => "--generate-chapters interval:30s" +diff --git a/tests/test.d/simple_test.rb b/tests/test.d/simple_test.rb +index 1ba6ea167..7490d2738 100644 +--- a/tests/test.d/simple_test.rb ++++ b/tests/test.d/simple_test.rb +@@ -85,7 +85,7 @@ class SimpleTest + end + + def clean_tmp +- File.unlink(@tmp) if @tmp && File.exists?(@tmp) && !ENV["KEEP_TMPFILES"].nil? && (ENV["KEEP_TMPFILES"] != "1") ++ File.unlink(@tmp) if @tmp && FileTest.exist?(@tmp) && !ENV["KEEP_TMPFILES"].nil? && (ENV["KEEP_TMPFILES"] != "1") + @tmp = nil + end + +@@ -106,7 +106,7 @@ class SimpleTest + re = %r{^#{self.tmp_name_prefix}} + Dir.entries($temp_dir).each do |entry| + file = "#{$temp_dir}/#{entry}" +- File.unlink(file) if re.match(file) and File.exists?(file) ++ File.unlink(file) if re.match(file) and FileTest.exist?(file) + end + end + +@@ -326,7 +326,7 @@ class SimpleTest + command = "../src/mkvpropedit --engage no_variable_data #{file_name} #{args.first}" + *result = self.sys command, :exit_code => options[:exit_code], :no_result => options[:no_result] + +- self.sys "../src/tools/ebml_validator -M #{file_name}", dont_record_command: true if FileTest.exists?("../src/tools/ebml_validator") ++ self.sys "../src/tools/ebml_validator -M #{file_name}", dont_record_command: true if FileTest.exist?("../src/tools/ebml_validator") + + return *result + end +diff --git a/tests/test.d/test.rb b/tests/test.d/test.rb +index 88384dd49..f9053d310 100644 +--- a/tests/test.d/test.rb ++++ b/tests/test.d/test.rb +@@ -25,7 +25,7 @@ class Test + re = /^#{self.tmp_name_prefix}/ + Dir.entries($temp_dir).each do |entry| + file = "#{$temp_dir}/#{entry}" +- File.unlink(file) if re.match(file) and File.exists?(file) ++ File.unlink(file) if re.match(file) and FileTest.exist?(file) + end + end + +@@ -84,7 +84,7 @@ class Test + output = hash_file @tmp + + if erase +- File.unlink(@tmp) if File.exists?(@tmp) && (ENV["KEEP_TMPFILES"] != "1") ++ File.unlink(@tmp) if FileTest.exist?(@tmp) && (ENV["KEEP_TMPFILES"] != "1") + @debug_commands << "rm #{@tmp}" + @tmp = nil + end +@@ -111,7 +111,7 @@ class Test + command = "../src/mkvpropedit --engage no_variable_data #{file_name} #{args.shift}" + *result = sys command, retcode + +- sys "../src/tools/ebml_validator -M #{file_name}", :dont_record_command => true if FileTest.exists?("../src/tools/ebml_validator") ++ sys "../src/tools/ebml_validator -M #{file_name}", :dont_record_command => true if FileTest.exist?("../src/tools/ebml_validator") + + return *result + end +diff --git a/tools/development/update_translations.rb b/tools/development/update_translations.rb +index fc7e4d7e4..6f5bad185 100755 +--- a/tools/development/update_translations.rb ++++ b/tools/development/update_translations.rb +@@ -106,11 +106,11 @@ module AddPo + base ||= '' + target = "#{$po_dir}/qt/qt#{base}_#{language}.ts" + +- if !FileTest.exists?(target) && /^([a-z]+)_[a-z]+/i.match(language) ++ if !FileTest.exist?(target) && /^([a-z]+)_[a-z]+/i.match(language) + target = "#{$po_dir}/qt/qt#{base}_#{$1}.ts" + end + +- fail "target file does not exist yet: #{target} (wrong language?)" if !FileTest.exists?(target) ++ fail "target file does not exist yet: #{target} (wrong language?)" if !FileTest.exist?(target) + + File.open(target, "w") { |file| file.puts content.map(&:chomp).join("\n") } + File.unlink file_name +-- +GitLab + diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg-0.10.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg-0.10.patch deleted file mode 100644 index ea737c8b09..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg-0.10.patch +++ /dev/null @@ -1,15 +0,0 @@ -http://bugs.gentoo.org/401287 - ---- filter/filter_pp.c -+++ filter/filter_pp.c -@@ -38,8 +38,8 @@ - - /* FIXME: these use the filter ID as an index--the ID can grow - * arbitrarily large, so this needs to be fixed */ --static pp_mode_t *mode[100]; --static pp_context_t *context[100]; -+static pp_mode *mode[100]; -+static pp_context *context[100]; - static int width[100], height[100]; - static int pre[100]; - diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg-0.11.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg-0.11.patch deleted file mode 100644 index 871d073fea..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg-0.11.patch +++ /dev/null @@ -1,303 +0,0 @@ -Fix build with ffmpeg 0.11. -https://bugs.gentoo.org/show_bug.cgi?id=419551 -Author: Brennan Shacklett - -diff -urN transcode-1.1.7-orig/encode/encode_lavc.c transcode-1.1.7/encode/encode_lavc.c ---- transcode-1.1.7-orig/encode/encode_lavc.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/encode/encode_lavc.c 2012-07-03 10:47:03.528009149 -0700 -@@ -114,6 +114,7 @@ - - AVFrame ff_venc_frame; - AVCodecContext ff_vcontext; -+ AVDictionary ** ff_opts; - - AVCodec *ff_vcodec; - -@@ -1036,14 +1037,10 @@ - SET_FLAG(pd, mv0); - SET_FLAG(pd, cbp); - SET_FLAG(pd, qpel); -- SET_FLAG(pd, alt); -- SET_FLAG(pd, vdpart); - SET_FLAG(pd, naq); - SET_FLAG(pd, ilme); - SET_FLAG(pd, ildct); - SET_FLAG(pd, aic); -- SET_FLAG(pd, aiv); -- SET_FLAG(pd, umv); - SET_FLAG(pd, psnr); - SET_FLAG(pd, trell); - SET_FLAG(pd, gray); -@@ -1064,6 +1061,18 @@ - pd->ff_vcontext.flags |= CODEC_FLAG_INTERLACED_DCT; - pd->ff_vcontext.flags |= CODEC_FLAG_INTERLACED_ME; - } -+ if (pd->confdata.flags.alt) { -+ av_dict_set(pd->ff_opts, "alternate_scan", "1", 0); -+ } -+ if (pd->confdata.flags.vdpart) { -+ av_dict_set(pd->ff_opts, "data_partitioning", "1", 0); -+ } -+ if (pd->confdata.flags.umv) { -+ av_dict_set(pd->ff_opts, "umv", "1", 0); -+ } -+ if (pd->confdata.flags.aiv) { -+ av_dict_set(pd->ff_opts, "aiv", "1", 0); -+ } - } - - #undef SET_FLAG -@@ -1184,18 +1193,18 @@ - { "mv0", PAUX(flags.mv0), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0 }, - { "cbp", PAUX(flags.cbp), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD }, - { "qpel", PAUX(flags.qpel), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL }, -- { "alt", PAUX(flags.alt), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_ALT_SCAN }, -+ { "alt", PAUX(flags.alt), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "ilme", PAUX(flags.ilme), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME }, - { "ildct", PAUX(flags.ildct), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_DCT }, - { "naq", PAUX(flags.naq), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_NORMALIZE_AQP }, -- { "vdpart", PAUX(flags.vdpart), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART }, -+ { "vdpart", PAUX(flags.vdpart), TCCONF_TYPE_FLAG, 0, 0, 1 }, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - { "aic", PAUX(flags.aic), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIC }, - #else - { "aic", PAUX(flags.aic), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED }, - #endif -- { "aiv", PAUX(flags.aiv), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIV }, -- { "umv", PAUX(flags.umv), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_UMV }, -+ { "aiv", PAUX(flags.aiv), TCCONF_TYPE_FLAG, 0, 0, 1 }, -+ { "umv", PAUX(flags.umv), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "psnr", PAUX(flags.psnr), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PSNR }, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - { "trell", PAUX(flags.trell), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT }, -@@ -1387,7 +1396,7 @@ - pd->confdata.thread_count, - (pd->confdata.thread_count > 1) ?"s" :""); - } -- avcodec_thread_init(&pd->ff_vcontext, pd->confdata.thread_count); -+ pd->ff_vcontext.thread_count = pd->confdata.thread_count; - - pd->ff_vcodec = avcodec_find_encoder(FF_VCODEC_ID(pd)); - if (pd->ff_vcodec == NULL) { -@@ -1397,11 +1406,11 @@ - } - - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open(&pd->ff_vcontext, pd->ff_vcodec); -+ ret = avcodec_open2(&pd->ff_vcontext, pd->ff_vcodec, pd->ff_opts); - TC_UNLOCK_LIBAVCODEC; - - if (ret < 0) { -- tc_log_error(MOD_NAME, "avcodec_open() failed"); -+ tc_log_error(MOD_NAME, "avcodec_open2() failed"); - goto failed; - } - /* finally, pass up the extradata, if any */ -diff -urN transcode-1.1.7-orig/export/export_ffmpeg.c transcode-1.1.7/export/export_ffmpeg.c ---- transcode-1.1.7-orig/export/export_ffmpeg.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/export/export_ffmpeg.c 2012-07-03 13:15:23.918019415 -0700 -@@ -122,6 +122,7 @@ - static AVFrame *lavc_convert_frame = NULL; - - static AVCodec *lavc_venc_codec = NULL; -+static AVDictionary **lavc_venc_opts = NULL; - static AVFrame *lavc_venc_frame = NULL; - static AVCodecContext *lavc_venc_context; - static avi_t *avifile = NULL; -@@ -180,7 +181,7 @@ - - - /* START: COPIED FROM ffmpeg-0.5_p22846(ffmpeg.c, cmdutils.c) */ --#include -+#include - #include - #include - -@@ -470,7 +471,6 @@ - } - - TC_LOCK_LIBAVCODEC; -- avcodec_init(); - avcodec_register_all(); - TC_UNLOCK_LIBAVCODEC; - -@@ -634,7 +634,7 @@ - lavc_param_rc_max_rate = 2516; - lavc_param_rc_buffer_size = 224 * 8; - lavc_param_rc_buffer_aggressivity = 99; -- lavc_param_scan_offset = CODEC_FLAG_SVCD_SCAN_OFFSET; -+ lavc_param_scan_offset = 1; - - break; - -@@ -674,7 +674,7 @@ - - lavc_param_rc_buffer_size = 224 * 8; - lavc_param_rc_buffer_aggressivity = 99; -- lavc_param_scan_offset = CODEC_FLAG_SVCD_SCAN_OFFSET; -+ lavc_param_scan_offset = 1; - - break; - -@@ -887,7 +887,7 @@ - lavc_venc_context->thread_count); - } - -- avcodec_thread_init(lavc_venc_context, lavc_param_threads); -+ lavc_venc_context->thread_count = lavc_param_threads; - - if (lavc_param_intra_matrix) { - char *tmp; -@@ -1065,15 +1065,10 @@ - lavc_venc_context->flags |= lavc_param_closedgop; - lavc_venc_context->flags |= lavc_param_trunc; - lavc_venc_context->flags |= lavc_param_aic; -- lavc_venc_context->flags |= lavc_param_umv; - lavc_venc_context->flags |= lavc_param_v4mv; -- lavc_venc_context->flags |= lavc_param_data_partitioning; - lavc_venc_context->flags |= lavc_param_cbp; - lavc_venc_context->flags |= lavc_param_mv0; - lavc_venc_context->flags |= lavc_param_qp_rd; -- lavc_venc_context->flags |= lavc_param_scan_offset; -- lavc_venc_context->flags |= lavc_param_ss; -- lavc_venc_context->flags |= lavc_param_alt; - lavc_venc_context->flags |= lavc_param_ilme; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_venc_context->flags |= lavc_param_trell; -@@ -1203,7 +1198,6 @@ - - lavc_venc_context->me_method = ME_ZERO + lavc_param_vme; - -- - /* FIXME: transcode itself contains "broken ffmpeg default settings", thus we need to override them! */ - if (lavc_param_video_preset) { - avcodec_opts[AVMEDIA_TYPE_VIDEO] = lavc_venc_context; -@@ -1241,20 +1235,39 @@ - } - } - -+ if (lavc_param_scan_offset) { -+ av_dict_set(lavc_venc_opts, "scan_offset", "1", 0); -+ } -+ -+ if (lavc_param_ss) { -+ av_dict_set(lavc_venc_opts, "structured_slices", "1", 0); -+ } -+ -+ if (lavc_param_alt) { -+ av_dict_set(lavc_venc_opts, "alternate_scan", "1", 0); -+ } -+ -+ if (lavc_param_umv) { -+ av_dict_set(lavc_venc_opts, "umv", "1", 0); -+ } -+ -+ if (lavc_param_data_partitioning) { -+ av_dict_set(lavc_venc_opts, "vdpart", "1", 0); -+ } - - //-- open codec -- - //---------------- - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open(lavc_venc_context, lavc_venc_codec); -+ ret = avcodec_open2(lavc_venc_context, lavc_venc_codec, lavc_venc_opts); - TC_UNLOCK_LIBAVCODEC; - if (ret < 0) { - tc_log_warn(MOD_NAME, "could not open FFMPEG codec"); - return TC_EXPORT_ERROR; - } - -- if (lavc_venc_context->codec->encode == NULL) { -+ if (av_codec_is_encoder(lavc_venc_context->codec) == 0) { - tc_log_warn(MOD_NAME, "could not open FFMPEG codec " -- "(lavc_venc_context->codec->encode == NULL)"); -+ "(av_codec_is_encoder(lavc_venc_context->codec) == 0)"); - return TC_EXPORT_ERROR; - } - -diff -urN transcode-1.1.7-orig/export/ffmpeg_cfg.c transcode-1.1.7/export/ffmpeg_cfg.c ---- transcode-1.1.7-orig/export/ffmpeg_cfg.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/export/ffmpeg_cfg.c 2012-07-03 10:09:25.011003254 -0700 -@@ -160,9 +160,9 @@ - {"vcelim", &lavc_param_chroma_elim_threshold, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99}, - {"vpsize", &lavc_param_packet_size, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 100000000}, - {"vstrict", &lavc_param_strict, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99}, -- {"vdpart", &lavc_param_data_partitioning, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART}, -+ {"vdpart", &lavc_param_data_partitioning, TCCONF_TYPE_FLAG, 0, 0, 1}, - // {"keyint", &lavc_param_keyint, TCCONF_TYPE_INT, 0, 0, 0}, -- {"gray", &lavc_param_gray, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART}, -+ {"gray", &lavc_param_gray, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GRAY}, - {"mpeg_quant", &lavc_param_mpeg_quant, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"vi_qfactor", &lavc_param_vi_qfactor, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, -31.0, 31.0}, - {"vi_qoffset", &lavc_param_vi_qoffset, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 31.0}, -@@ -211,7 +211,7 @@ - #else - {"aic", &lavc_param_aic, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED}, - #endif -- {"umv", &lavc_param_umv, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_UMV}, -+ {"umv", &lavc_param_umv, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"ibias", &lavc_param_ibias, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512}, - {"pbias", &lavc_param_pbias, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512}, - {"coder", &lavc_param_coder, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10}, -@@ -223,9 +223,9 @@ - {"nr", &lavc_param_noise_reduction, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000000}, - {"qprd", &lavc_param_qp_rd, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QP_RD}, - {"threads", &lavc_param_threads, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 16}, -- {"ss", &lavc_param_ss, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_SLICE_STRUCT}, -- {"svcd_sof", &lavc_param_scan_offset, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_SVCD_SCAN_OFFSET}, -- {"alt", &lavc_param_alt, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_ALT_SCAN}, -+ {"ss", &lavc_param_ss, TCCONF_TYPE_FLAG, 0, 0, 1}, -+ {"svcd_sof", &lavc_param_scan_offset, TCCONF_TYPE_FLAG, 0, 0, 1}, -+ {"alt", &lavc_param_alt, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"ilme", &lavc_param_ilme, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME}, - {"inter_threshold", &lavc_param_inter_threshold, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1000000, 1000000}, - {"sc_threshold", &lavc_param_sc_threshold, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1000000, 1000000}, -diff -urN transcode-1.1.7-orig/import/decode_lavc.c transcode-1.1.7/import/decode_lavc.c ---- transcode-1.1.7-orig/import/decode_lavc.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/import/decode_lavc.c 2012-07-03 10:21:46.085005182 -0700 -@@ -181,7 +181,7 @@ - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_dec_context->error_resilience = 2; - #else -- lavc_dec_context->error_recognition = 2; -+ lavc_dec_context->err_recognition = 2; - #endif - lavc_dec_context->error_concealment = 3; - lavc_dec_context->workaround_bugs = FF_BUG_AUTODETECT; -diff -urN transcode-1.1.7-orig/import/import_ffmpeg.c transcode-1.1.7/import/import_ffmpeg.c ---- transcode-1.1.7-orig/import/import_ffmpeg.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/import/import_ffmpeg.c 2012-07-03 10:19:36.936004841 -0700 -@@ -314,7 +314,7 @@ - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_dec_context->error_resilience = 2; - #else -- lavc_dec_context->error_recognition = 2; -+ lavc_dec_context->err_recognition = 2; - #endif - lavc_dec_context->error_concealment = 3; - lavc_dec_context->workaround_bugs = FF_BUG_AUTODETECT; -diff -urN transcode-1.1.7-orig/import/probe_ffmpeg.c transcode-1.1.7/import/probe_ffmpeg.c ---- transcode-1.1.7-orig/import/probe_ffmpeg.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/import/probe_ffmpeg.c 2012-07-03 10:41:42.782008306 -0700 -@@ -99,8 +99,8 @@ - - TC_INIT_LIBAVCODEC; - -- ret = av_open_input_file(&lavf_dmx_context, ipipe->name, -- NULL, 0, NULL); -+ ret = avformat_open_input(&lavf_dmx_context, ipipe->name, -+ NULL, NULL); - if (ret != 0) { - tc_log_error(__FILE__, "unable to open '%s'" - " (libavformat failure)", -diff -urN transcode-1.1.7-orig/libtc/tcavcodec.h transcode-1.1.7/libtc/tcavcodec.h ---- transcode-1.1.7-orig/libtc/tcavcodec.h 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/libtc/tcavcodec.h 2012-07-03 10:34:43.648007213 -0700 -@@ -53,7 +53,6 @@ - - #define TC_INIT_LIBAVCODEC do { \ - TC_LOCK_LIBAVCODEC; \ -- avcodec_init(); \ - avcodec_register_all(); \ - TC_UNLOCK_LIBAVCODEC; \ - } while (0) diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg.patch deleted file mode 100644 index be7a6cbaeb..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg.patch +++ /dev/null @@ -1,51 +0,0 @@ ---- encode/encode_lavc.c -+++ encode/encode_lavc.c -@@ -955,8 +955,6 @@ - /* - * context *transcode* (not libavcodec) defaults - */ -- pd->ff_vcontext.mb_qmin = 2; -- pd->ff_vcontext.mb_qmax = 31; - pd->ff_vcontext.max_qdiff = 3; - pd->ff_vcontext.max_b_frames = 0; - pd->ff_vcontext.me_range = 0; -@@ -1116,8 +1114,6 @@ - // handled by transcode core - // { "vqmax", PCTX(qmax), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 }, - // handled by transcode core -- { "mbqmin", PCTX(mb_qmin), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 }, -- { "mbqmax", PCTX(mb_qmax), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 }, - { "lmin", PAUX(lmin), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 }, - { "lmax", PAUX(lmax), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 }, - { "vqdiff", PCTX(max_qdiff), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31 }, ---- export/ffmpeg_cfg.c -+++ export/ffmpeg_cfg.c -@@ -34,8 +34,6 @@ - //int lavc_param_vqscale = 0; - //int lavc_param_vqmin = 2; - //int lavc_param_vqmax = 31; --int lavc_param_mb_qmin = 2; --int lavc_param_mb_qmax = 31; - int lavc_param_lmin = 2; - int lavc_param_lmax = 31; - int lavc_param_vqdiff = 3; -@@ -143,8 +141,6 @@ - // {"vqscale", &lavc_param_vqscale, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, - // {"vqmin", &lavc_param_vqmin, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, - // {"vqmax", &lavc_param_vqmax, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, -- {"mbqmin", &lavc_param_mb_qmin, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, -- {"mbqmax", &lavc_param_mb_qmax, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, - {"lmin", &lavc_param_lmin, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0}, - {"lmax", &lavc_param_lmax, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0}, - {"vqdiff", &lavc_param_vqdiff, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, ---- export/ffmpeg_cfg.h -+++ export/ffmpeg_cfg.h -@@ -13,8 +13,6 @@ - //extern int lavc_param_vqscale; - //extern int lavc_param_vqmin; - //extern int lavc_param_vqmax; --extern int lavc_param_mb_qmin; --extern int lavc_param_mb_qmax; - extern int lavc_param_lmin; - extern int lavc_param_lmax; - extern int lavc_param_vqdiff; diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg2.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg2.patch deleted file mode 100644 index 9a770a6a0d..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg2.patch +++ /dev/null @@ -1,557 +0,0 @@ -Fix build with ffmpeg-2.0. -Fix segfaults introduced by wrong usage of the av_dict API. -Fix forgotten parts in the libav9 patch. - -Index: transcode-1.1.7/encode/encode_lavc.c -=================================================================== ---- transcode-1.1.7.orig/encode/encode_lavc.c -+++ transcode-1.1.7/encode/encode_lavc.c -@@ -74,6 +74,9 @@ struct tclavcconfigdata_ { - int lmin; - int lmax; - int me_method; -+ int luma_elim_threshold; -+ int chroma_elim_threshold; -+ int quantizer_noise_shaping; - - /* same as above for flags */ - struct { -@@ -114,7 +117,7 @@ struct tclavcprivatedata_ { - - AVFrame ff_venc_frame; - AVCodecContext ff_vcontext; -- AVDictionary ** ff_opts; -+ AVDictionary * ff_opts; - - AVCodec *ff_vcodec; - -@@ -165,6 +168,7 @@ static const TCCodecID tc_lavc_codecs_ou - TC_CODEC_ERROR - }; - -+#if LIBAVCODEC_VERSION_MAJOR < 55 - static const enum CodecID tc_lavc_internal_codecs[] = { - CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG4, - CODEC_ID_H263I, CODEC_ID_H263P, -@@ -177,6 +181,20 @@ static const enum CodecID tc_lavc_intern - CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, - CODEC_ID_NONE - }; -+#else -+static const enum AVCodecID tc_lavc_internal_codecs[] = { -+ AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO, AV_CODEC_ID_MPEG4, -+ AV_CODEC_ID_H263I, AV_CODEC_ID_H263P, -+ AV_CODEC_ID_H264, -+ AV_CODEC_ID_WMV1, AV_CODEC_ID_WMV2, -+ AV_CODEC_ID_RV10, -+ AV_CODEC_ID_HUFFYUV, AV_CODEC_ID_FFV1, -+ AV_CODEC_ID_DVVIDEO, -+ AV_CODEC_ID_MJPEG, AV_CODEC_ID_LJPEG, -+ AV_CODEC_ID_MSMPEG4V2, AV_CODEC_ID_MSMPEG4V3, -+ AV_CODEC_ID_NONE -+}; -+#endif - - static const TCFormatID tc_lavc_formats[] = { TC_FORMAT_ERROR }; - -@@ -938,7 +956,11 @@ static int tc_lavc_settings_from_vob(TCL - static void tc_lavc_config_defaults(TCLavcPrivateData *pd) - { - /* first of all reinitialize lavc data */ -+#if LIBAVCODEC_VERSION_MAJOR < 55 - avcodec_get_context_defaults(&pd->ff_vcontext); -+#else -+ avcodec_get_context_defaults3(&pd->ff_vcontext, NULL); -+#endif - - pd->confdata.thread_count = 1; - -@@ -976,8 +998,8 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.mpeg_quant = 0; - pd->ff_vcontext.rc_initial_cplx = 0.0; - pd->ff_vcontext.rc_qsquish = 1.0; -- pd->ff_vcontext.luma_elim_threshold = 0; -- pd->ff_vcontext.chroma_elim_threshold = 0; -+ pd->confdata.luma_elim_threshold = 0; -+ pd->confdata.chroma_elim_threshold = 0; - pd->ff_vcontext.strict_std_compliance = 0; - pd->ff_vcontext.dct_algo = FF_DCT_AUTO; - pd->ff_vcontext.idct_algo = FF_IDCT_AUTO; -@@ -1001,7 +1023,7 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.intra_quant_bias = FF_DEFAULT_QUANT_BIAS; - pd->ff_vcontext.inter_quant_bias = FF_DEFAULT_QUANT_BIAS; - pd->ff_vcontext.noise_reduction = 0; -- pd->ff_vcontext.quantizer_noise_shaping = 0; -+ pd->confdata.quantizer_noise_shaping = 0; - pd->ff_vcontext.flags = 0; - } - -@@ -1033,7 +1055,6 @@ static void tc_lavc_dispatch_settings(TC - - pd->ff_vcontext.flags = 0; - SET_FLAG(pd, mv0); -- SET_FLAG(pd, cbp); - SET_FLAG(pd, qpel); - SET_FLAG(pd, naq); - SET_FLAG(pd, ilme); -@@ -1060,17 +1081,29 @@ static void tc_lavc_dispatch_settings(TC - pd->ff_vcontext.flags |= CODEC_FLAG_INTERLACED_ME; - } - if (pd->confdata.flags.alt) { -- av_dict_set(pd->ff_opts, "alternate_scan", "1", 0); -+ av_dict_set(&(pd->ff_opts), "alternate_scan", "1", 0); - } - if (pd->confdata.flags.vdpart) { -- av_dict_set(pd->ff_opts, "data_partitioning", "1", 0); -+ av_dict_set(&(pd->ff_opts), "data_partitioning", "1", 0); - } - if (pd->confdata.flags.umv) { -- av_dict_set(pd->ff_opts, "umv", "1", 0); -+ av_dict_set(&(pd->ff_opts), "umv", "1", 0); - } - if (pd->confdata.flags.aiv) { -- av_dict_set(pd->ff_opts, "aiv", "1", 0); -+ av_dict_set(&(pd->ff_opts), "aiv", "1", 0); - } -+ if (pd->confdata.flags.cbp) { -+ av_dict_set(&(pd->ff_opts), "mpv_flags", "+cbp_rd", 0); -+ } -+ -+ char buf[1024]; -+#define set_dict_opt(val, opt) \ -+ snprintf(buf, sizeof(buf), "%i", pd->confdata.val);\ -+ av_dict_set(&(pd->ff_opts), opt, buf, 0) -+ -+ set_dict_opt(luma_elim_threshold, "luma_elim_threshold"); -+ set_dict_opt(chroma_elim_threshold, "chroma_elim_threshold"); -+ set_dict_opt(quantizer_noise_shaping, "quantizer_noise_shaping"); - } - - #undef SET_FLAG -@@ -1155,8 +1188,8 @@ static int tc_lavc_read_config(TCLavcPri - { "vrc_init_cplx", PCTX(rc_initial_cplx), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 9999999.0 }, - // { "vrc_init_occupancy", }, // not yet supported - { "vqsquish", PCTX(rc_qsquish), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 99.0 }, -- { "vlelim", PCTX(luma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, -- { "vcelim", PCTX(chroma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, -+ { "vlelim", PAUX(luma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, -+ { "vcelim", PAUX(chroma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, - { "vstrict", PCTX(strict_std_compliance), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, - { "vpsize", PCTX(rtp_payload_size), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 100000000 }, - { "dct", PCTX(dct_algo), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10 }, -@@ -1182,12 +1215,12 @@ static int tc_lavc_read_config(TCLavcPri - { "ibias", PCTX(intra_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, - { "pbias", PCTX(inter_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, - { "nr", PCTX(noise_reduction), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000000}, -- { "qns", PCTX(quantizer_noise_shaping), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 3 }, -+ { "qns", PAUX(quantizer_noise_shaping), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 3 }, - { "inter_matrix_file", inter_matrix_file, TCCONF_TYPE_STRING, 0, 0, 0 }, - { "intra_matrix_file", intra_matrix_file, TCCONF_TYPE_STRING, 0, 0, 0 }, - - { "mv0", PAUX(flags.mv0), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0 }, -- { "cbp", PAUX(flags.cbp), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD }, -+ { "cbp", PAUX(flags.cbp), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "qpel", PAUX(flags.qpel), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL }, - { "alt", PAUX(flags.alt), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "ilme", PAUX(flags.ilme), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME }, -@@ -1350,6 +1383,8 @@ static int tc_lavc_configure(TCModuleIns - - pd = self->userdata; - -+ pd->ff_opts = NULL; -+ - pd->flush_flag = vob->encoder_flush; - - /* FIXME: move into core? */ -@@ -1402,7 +1437,7 @@ static int tc_lavc_configure(TCModuleIns - } - - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open2(&pd->ff_vcontext, pd->ff_vcodec, pd->ff_opts); -+ ret = avcodec_open2(&pd->ff_vcontext, pd->ff_vcodec, &(pd->ff_opts)); - TC_UNLOCK_LIBAVCODEC; - - if (ret < 0) { -Index: transcode-1.1.7/export/export_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/export/export_ffmpeg.c -+++ transcode-1.1.7/export/export_ffmpeg.c -@@ -122,7 +122,7 @@ static uint8_t *img_buffer = - static AVFrame *lavc_convert_frame = NULL; - - static AVCodec *lavc_venc_codec = NULL; --static AVDictionary **lavc_venc_opts = NULL; -+static AVDictionary *lavc_venc_opts = NULL; - static AVFrame *lavc_venc_frame = NULL; - static AVCodecContext *lavc_venc_context; - static avi_t *avifile = NULL; -@@ -486,7 +486,7 @@ MOD_init - codec->name, codec->fourCC, codec->comments); - } - -- lavc_venc_context = avcodec_alloc_context(); -+ lavc_venc_context = avcodec_alloc_context3(lavc_venc_codec); - lavc_venc_frame = avcodec_alloc_frame(); - - lavc_convert_frame= avcodec_alloc_frame(); -@@ -838,8 +838,13 @@ MOD_init - lavc_venc_context->rc_strategy = lavc_param_vrc_strategy; - lavc_venc_context->b_frame_strategy = lavc_param_vb_strategy; - lavc_venc_context->b_quant_offset = lavc_param_vb_qoffset; -- lavc_venc_context->luma_elim_threshold= lavc_param_luma_elim_threshold; -- lavc_venc_context->chroma_elim_threshold= lavc_param_chroma_elim_threshold; -+ -+ char buf[1024]; -+#define set_dict_opt(val, opt) \ -+ snprintf(buf, sizeof(buf), "%i", val); \ -+ av_dict_set(&lavc_venc_opts, opt, buf, 0) -+ set_dict_opt(lavc_param_luma_elim_threshold, "luma_elim_threshold"); -+ set_dict_opt(lavc_param_chroma_elim_threshold, "chroma_elim_threshold"); - lavc_venc_context->rtp_payload_size = lavc_param_packet_size; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - if (lavc_param_packet_size) -@@ -870,7 +875,7 @@ MOD_init - lavc_venc_context->context_model = lavc_param_context; - lavc_venc_context->scenechange_threshold= lavc_param_sc_threshold; - lavc_venc_context->noise_reduction = lavc_param_noise_reduction; -- lavc_venc_context->inter_threshold = lavc_param_inter_threshold; -+ set_dict_opt(lavc_param_inter_threshold, "inter_threshold"); - lavc_venc_context->intra_dc_precision = lavc_param_intra_dc_precision; - lavc_venc_context->skip_top = lavc_param_skip_top; - lavc_venc_context->skip_bottom = lavc_param_skip_bottom; -@@ -1066,9 +1071,11 @@ MOD_init - lavc_venc_context->flags |= lavc_param_trunc; - lavc_venc_context->flags |= lavc_param_aic; - lavc_venc_context->flags |= lavc_param_v4mv; -- lavc_venc_context->flags |= lavc_param_cbp; -+ if(lavc_param_cbp) -+ av_dict_set(&lavc_venc_opts, "mpv_flags", "+cbp_rd", 0); - lavc_venc_context->flags |= lavc_param_mv0; -- lavc_venc_context->flags |= lavc_param_qp_rd; -+ if(lavc_param_qp_rd) -+ av_dict_set(&lavc_venc_opts, "mpv_flags", "+qp_rd", 0); - lavc_venc_context->flags |= lavc_param_ilme; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_venc_context->flags |= lavc_param_trell; -@@ -1238,29 +1245,29 @@ MOD_init - } - - if (lavc_param_scan_offset) { -- av_dict_set(lavc_venc_opts, "scan_offset", "1", 0); -+ av_dict_set(&lavc_venc_opts, "scan_offset", "1", 0); - } - - if (lavc_param_ss) { -- av_dict_set(lavc_venc_opts, "structured_slices", "1", 0); -+ av_dict_set(&lavc_venc_opts, "structured_slices", "1", 0); - } - - if (lavc_param_alt) { -- av_dict_set(lavc_venc_opts, "alternate_scan", "1", 0); -+ av_dict_set(&lavc_venc_opts, "alternate_scan", "1", 0); - } - - if (lavc_param_umv) { -- av_dict_set(lavc_venc_opts, "umv", "1", 0); -+ av_dict_set(&lavc_venc_opts, "umv", "1", 0); - } - - if (lavc_param_data_partitioning) { -- av_dict_set(lavc_venc_opts, "vdpart", "1", 0); -+ av_dict_set(&lavc_venc_opts, "vdpart", "1", 0); - } - - //-- open codec -- - //---------------- - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open2(lavc_venc_context, lavc_venc_codec, lavc_venc_opts); -+ ret = avcodec_open2(lavc_venc_context, lavc_venc_codec, &lavc_venc_opts); - TC_UNLOCK_LIBAVCODEC; - if (ret < 0) { - tc_log_warn(MOD_NAME, "could not open FFMPEG codec"); -Index: transcode-1.1.7/export/ffmpeg_cfg.c -=================================================================== ---- transcode-1.1.7.orig/export/ffmpeg_cfg.c -+++ transcode-1.1.7/export/ffmpeg_cfg.c -@@ -214,10 +214,10 @@ TCConfigEntry lavcopts_conf[]={ - {"context", &lavc_param_context, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10}, - {"intra_matrix", &lavc_param_intra_matrix, TCCONF_TYPE_STRING, 0, 0, 0}, - {"inter_matrix", &lavc_param_inter_matrix, TCCONF_TYPE_STRING, 0, 0, 0}, -- {"cbp", &lavc_param_cbp, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD}, -+ {"cbp", &lavc_param_cbp, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"mv0", &lavc_param_mv0, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0}, - {"nr", &lavc_param_noise_reduction, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000000}, -- {"qprd", &lavc_param_qp_rd, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QP_RD}, -+ {"qprd", &lavc_param_qp_rd, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"threads", &lavc_param_threads, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 16}, - {"ss", &lavc_param_ss, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"svcd_sof", &lavc_param_scan_offset, TCCONF_TYPE_FLAG, 0, 0, 1}, -Index: transcode-1.1.7/export/aud_aux.c -=================================================================== ---- transcode-1.1.7.orig/export/aud_aux.c -+++ transcode-1.1.7/export/aud_aux.c -@@ -326,10 +326,18 @@ static int tc_audio_init_ffmpeg(vob_t *vob, int o_codec) - - switch (o_codec) { - case 0x50: -+#if LIBAVCODEC_VERSION_MAJOR < 55 - codeid = CODEC_ID_MP2; -+#else -+ codeid = AV_CODEC_ID_MP2; -+#endif - break; - case 0x2000: -+#if LIBAVCODEC_VERSION_MAJOR < 55 - codeid = CODEC_ID_AC3; -+#else -+ codeid = AV_CODEC_ID_AC3; -+#endif - break; - default: - tc_warn("cannot init ffmpeg with %x", o_codec); -@@ -346,7 +346,7 @@ static int tc_audio_init_ffmpeg(vob_t *v - - //-- set parameters (bitrate, channels and sample-rate) -- - //-------------------------------------------------------- -- avcodec_get_context_defaults(&mpa_ctx); -+ avcodec_get_context_defaults3(&mpa_ctx, mpa_codec); - #if LIBAVCODEC_VERSION_MAJOR < 53 - mpa_ctx.codec_type = CODEC_TYPE_AUDIO; - #else -@@ -359,7 +359,7 @@ static int tc_audio_init_ffmpeg(vob_t *v - //-- open codec -- - //---------------- - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open(&mpa_ctx, mpa_codec); -+ ret = avcodec_open2(&mpa_ctx, mpa_codec, NULL); - TC_UNLOCK_LIBAVCODEC; - if (ret < 0) { - tc_warn("tc_audio_init_ffmpeg: could not open %s codec !", -@@ -371,7 +371,12 @@ static int tc_audio_init_ffmpeg(vob_t *vob, int o_codec) - TC_UNLOCK_LIBAVCODEC; - if (ret < 0) { - tc_warn("tc_audio_init_ffmpeg: could not open %s codec !", -- (codeid == CODEC_ID_MP2) ?"mpa" :"ac3"); -+#if LIBAVCODEC_VERSION_MAJOR < 55 -+ (codeid == CODEC_ID_MP2) -+#else -+ (codeid == AV_CODEC_ID_MP2) -+#endif -+ ?"mpa" :"ac3"); - return(TC_EXPORT_ERROR); - } - -Index: transcode-1.1.7/import/import_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/import/import_ffmpeg.c -+++ transcode-1.1.7/import/import_ffmpeg.c -@@ -58,6 +58,7 @@ struct ffmpeg_codec { - }; - - // fourCC to ID mapping taken from MPlayer's codecs.conf -+#if LIBAVCODEC_VERSION_MAJOR < 55 - static struct ffmpeg_codec ffmpeg_codecs[] = { - {CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, "mp41", - {"MP41", "DIV1", ""}}, -@@ -106,6 +107,56 @@ static struct ffmpeg_codec ffmpeg_codecs[] = { - {CODEC_ID_RAWVIDEO, TC_CODEC_YUV422P, "raw", - {"Y42B", ""}}, - {0, TC_CODEC_UNKNOWN, NULL, {""}}}; -+#else -+static struct ffmpeg_codec ffmpeg_codecs[] = { -+ {AV_CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, "mp41", -+ {"MP41", "DIV1", ""}}, -+ {AV_CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, "mp42", -+ {"MP42", "DIV2", ""}}, -+ {AV_CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, "msmpeg4", -+ {"DIV3", "DIV5", "AP41", "MPG3", "MP43", ""}}, -+ {AV_CODEC_ID_MPEG4, TC_CODEC_DIVX4, "mpeg4", -+ {"DIVX", "XVID", "MP4S", "M4S2", "MP4V", "UMP4", "DX50", ""}}, -+ {AV_CODEC_ID_MJPEG, TC_CODEC_MJPEG, "mjpeg", -+ {"MJPG", "AVRN", "AVDJ", "JPEG", "MJPA", "JFIF", ""}}, -+ {AV_CODEC_ID_MPEG1VIDEO, TC_CODEC_MPG1, "mpeg1video", -+ {"MPG1", ""}}, -+ {AV_CODEC_ID_DVVIDEO, TC_CODEC_DV, "dvvideo", -+ {"DVSD", ""}}, -+ {AV_CODEC_ID_WMV1, TC_CODEC_WMV1, "wmv1", -+ {"WMV1", ""}}, -+ {AV_CODEC_ID_WMV2, TC_CODEC_WMV2, "wmv2", -+ {"WMV2", ""}}, -+ {AV_CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, "hfyu", -+ {"HFYU", ""}}, -+ {AV_CODEC_ID_H263I, TC_CODEC_H263I, "h263i", -+ {"I263", ""}}, -+ {AV_CODEC_ID_H263P, TC_CODEC_H263P, "h263p", -+ {"H263", "U263", "VIV1", ""}}, -+ {AV_CODEC_ID_H264, TC_CODEC_H264, "h264", -+ {"H264", "h264", "X264", "x264", "avc1", ""}}, -+ {AV_CODEC_ID_RV10, TC_CODEC_RV10, "rv10", -+ {"RV10", "RV13", ""}}, -+ {AV_CODEC_ID_SVQ1, TC_CODEC_SVQ1, "svq1", -+ {"SVQ1", ""}}, -+ {AV_CODEC_ID_SVQ3, TC_CODEC_SVQ3, "svq3", -+ {"SVQ3", ""}}, -+ {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, "mpeg2video", -+ {"MPG2", ""}}, -+ {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG, "mpeg2video", -+ {"MPG2", ""}}, -+ {AV_CODEC_ID_ASV1, TC_CODEC_ASV1, "asv1", -+ {"ASV1", ""}}, -+ {AV_CODEC_ID_ASV2, TC_CODEC_ASV2, "asv2", -+ {"ASV2", ""}}, -+ {AV_CODEC_ID_FFV1, TC_CODEC_FFV1, "ffv1", -+ {"FFV1", ""}}, -+ {AV_CODEC_ID_RAWVIDEO, TC_CODEC_YUV420P, "raw", -+ {"I420", "IYUV", ""}}, -+ {AV_CODEC_ID_RAWVIDEO, TC_CODEC_YUV422P, "raw", -+ {"Y42B", ""}}, -+ {0, TC_CODEC_UNKNOWN, NULL, {""}}}; -+#endif - - #define BUFFER_SIZE SIZE_RGB_FRAME - -@@ -302,7 +302,7 @@ do_avi: - - // Set these to the expected values so that ffmpeg's decoder can - // properly detect interlaced input. -- lavc_dec_context = avcodec_alloc_context(); -+ lavc_dec_context = avcodec_alloc_context3(lavc_dec_codec); - if (lavc_dec_context == NULL) { - tc_log_error(MOD_NAME, "Could not allocate enough memory."); - return TC_IMPORT_ERROR; -@@ -324,6 +375,7 @@ do_avi: - // XXX: some codecs need extra data - switch (codec->id) - { -+#if LIBAVCODEC_VERSION_MAJOR < 55 - case CODEC_ID_MJPEG: extra_data_size = 28; break; - case CODEC_ID_LJPEG: extra_data_size = 28; break; - case CODEC_ID_HUFFYUV: extra_data_size = 1000; break; -@@ -331,6 +383,15 @@ do_avi: - case CODEC_ID_ASV2: extra_data_size = 8; break; - case CODEC_ID_WMV1: extra_data_size = 4; break; - case CODEC_ID_WMV2: extra_data_size = 4; break; -+#else -+ case AV_CODEC_ID_MJPEG: extra_data_size = 28; break; -+ case AV_CODEC_ID_LJPEG: extra_data_size = 28; break; -+ case AV_CODEC_ID_HUFFYUV: extra_data_size = 1000; break; -+ case AV_CODEC_ID_ASV1: extra_data_size = 8; break; -+ case AV_CODEC_ID_ASV2: extra_data_size = 8; break; -+ case AV_CODEC_ID_WMV1: extra_data_size = 4; break; -+ case AV_CODEC_ID_WMV2: extra_data_size = 4; break; -+#endif - default: extra_data_size = 0; break; - } - -@@ -344,7 +344,7 @@ do_avi: - } - - TC_LOCK_LIBAVCODEC; -- ret = avcodec_open(lavc_dec_context, lavc_dec_codec); -+ ret = avcodec_open2(lavc_dec_context, lavc_dec_codec, NULL); - TC_UNLOCK_LIBAVCODEC; - if (ret < 0) { - tc_log_warn(MOD_NAME, "Could not initialize the '%s' codec.", -@@ -360,7 +421,11 @@ do_avi: - frame_size = x_dim*y_dim + 2*UV_PLANE_SIZE(IMG_YUV_DEFAULT,x_dim,y_dim); - - // we adapt the color space -+#if LIBAVCODEC_VERSION_MAJOR < 55 - if(codec->id == CODEC_ID_MJPEG) { -+#else -+ if(codec->id == AV_CODEC_ID_MJPEG) { -+#endif - enable_levels_filter(); - } - break; -@@ -434,7 +499,11 @@ do_dv: - } - - // we adapt the color space -+#if LIBAVCODEC_VERSION_MAJOR < 55 - if(codec->id == CODEC_ID_MJPEG) { -+#else -+ if(codec->id == AV_CODEC_ID_MJPEG) { -+#endif - enable_levels_filter(); - } - -@@ -504,13 +573,25 @@ MOD_decode { - int bkey = 0; - - // check for keyframes -+#if LIBAVCODEC_VERSION_MAJOR < 55 - if (codec->id == CODEC_ID_MSMPEG4V3) { -+#else -+ if (codec->id == AV_CODEC_ID_MSMPEG4V3) { -+#endif - if (divx3_is_key(buffer)) bkey = 1; - } -+#if LIBAVCODEC_VERSION_MAJOR < 55 - else if (codec->id == CODEC_ID_MPEG4) { -+#else -+ else if (codec->id == AV_CODEC_ID_MPEG4) { -+#endif - if (mpeg4_is_key(buffer, bytes_read)) bkey = 1; - } -+#if LIBAVCODEC_VERSION_MAJOR < 55 - else if (codec->id == CODEC_ID_MJPEG) { -+#else -+ else if (codec->id == AV_CODEC_ID_MJPEG) { -+#endif - bkey = 1; - } - ---- a/import/decode_lavc.c -+++ b/import/decode_lavc.c -@@ -57,6 +57,7 @@ struct ffmpeg_codec { - }; - - // fourCC to ID mapping taken from MPlayer's codecs.conf -+#if LIBAVCODEC_VERSION_MAJOR < 55 - static struct ffmpeg_codec ffmpeg_codecs[] = { - {CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, "mp41", - {"MP41", "DIV1", ""}}, -@@ -91,6 +92,42 @@ static struct ffmpeg_codec ffmpeg_codecs[] = { - {CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, "mpeg2video", - {"MPG2", ""}}, - {0, TC_CODEC_UNKNOWN, NULL, {""}}}; -+#else -+static struct ffmpeg_codec ffmpeg_codecs[] = { -+ {AV_CODEC_ID_MSMPEG4V1, TC_CODEC_ERROR, "mp41", -+ {"MP41", "DIV1", ""}}, -+ {AV_CODEC_ID_MSMPEG4V2, TC_CODEC_MP42, "mp42", -+ {"MP42", "DIV2", ""}}, -+ {AV_CODEC_ID_MSMPEG4V3, TC_CODEC_DIVX3, "msmpeg4", -+ {"DIV3", "DIV5", "AP41", "MPG3", "MP43", ""}}, -+ {AV_CODEC_ID_MPEG4, TC_CODEC_DIVX4, "mpeg4", -+ {"DIVX", "XVID", "MP4S", "M4S2", "MP4V", "UMP4", "DX50", ""}}, -+ {AV_CODEC_ID_MJPEG, TC_CODEC_MJPEG, "mjpeg", -+ {"MJPG", "AVRN", "AVDJ", "JPEG", "MJPA", "JFIF", ""}}, -+ {AV_CODEC_ID_MPEG1VIDEO, TC_CODEC_MPEG1VIDEO, "mpeg1video", -+ {"MPG1", ""}}, -+ {AV_CODEC_ID_DVVIDEO, TC_CODEC_DV, "dvvideo", -+ {"DVSD", ""}}, -+ {AV_CODEC_ID_WMV1, TC_CODEC_WMV1, "wmv1", -+ {"WMV1", ""}}, -+ {AV_CODEC_ID_WMV2, TC_CODEC_WMV2, "wmv2", -+ {"WMV2", ""}}, -+ {AV_CODEC_ID_HUFFYUV, TC_CODEC_HUFFYUV, "hfyu", -+ {"HFYU", ""}}, -+ {AV_CODEC_ID_H263I, TC_CODEC_H263I, "h263i", -+ {"I263", ""}}, -+ {AV_CODEC_ID_H263P, TC_CODEC_H263P, "h263p", -+ {"H263", "U263", "VIV1", ""}}, -+ {AV_CODEC_ID_RV10, TC_CODEC_RV10, "rv10", -+ {"RV10", "RV13", ""}}, -+ {AV_CODEC_ID_SVQ1, TC_CODEC_SVQ1, "svq1", -+ {"SVQ1", ""}}, -+ {AV_CODEC_ID_SVQ3, TC_CODEC_SVQ3, "svq3", -+ {"SVQ3", ""}}, -+ {AV_CODEC_ID_MPEG2VIDEO, TC_CODEC_MPEG2, "mpeg2video", -+ {"MPG2", ""}}, -+ {0, TC_CODEC_UNKNOWN, NULL, {""}}}; -+#endif - - - static struct ffmpeg_codec *find_ffmpeg_codec_id(unsigned int transcode_id) diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg24.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg24.patch deleted file mode 100644 index 57a91774ab..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg24.patch +++ /dev/null @@ -1,18 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=520190 - -Index: transcode-1.1.7/import/probe_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/import/probe_ffmpeg.c -+++ transcode-1.1.7/import/probe_ffmpeg.c -@@ -120,7 +120,11 @@ void probe_ffmpeg(info_t *ipipe) - - translate_info(lavf_dmx_context, ipipe->probe_info); - -+#if LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(53,25,0) -+ avformat_close_input(&lavf_dmx_context); -+#else - av_close_input_file(lavf_dmx_context); -+#endif - return; - } - diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg29.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg29.patch deleted file mode 100644 index 7901fc3cc3..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg29.patch +++ /dev/null @@ -1,352 +0,0 @@ -Index: transcode-1.1.7/encode/encode_lavc.c -=================================================================== ---- transcode-1.1.7.orig/encode/encode_lavc.c -+++ transcode-1.1.7/encode/encode_lavc.c -@@ -233,7 +233,7 @@ static void pre_encode_video_yuv420p(TCL - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - } - -@@ -247,7 +247,7 @@ static void pre_encode_video_yuv420p_huf - IMG_YUV_DEFAULT, - pd->ff_vcontext.width, pd->ff_vcontext.height); - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV422P, -+ AV_PIX_FMT_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(src, IMG_YUV_DEFAULT, - pd->ff_venc_frame.data, IMG_YUV422P, -@@ -263,7 +263,7 @@ static void pre_encode_video_yuv422p(TCL - IMG_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(src, IMG_YUV422P, - pd->ff_venc_frame.data, IMG_YUV420P, -@@ -275,7 +275,7 @@ static void pre_encode_video_yuv422p_huf - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf, -- PIX_FMT_YUV422P, -+ AV_PIX_FMT_YUV422P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - - } -@@ -285,7 +285,7 @@ static void pre_encode_video_rgb24(TCLav - vframe_list_t *vframe) - { - avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf, -- PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUV420P, - pd->ff_vcontext.width, pd->ff_vcontext.height); - ac_imgconvert(&vframe->video_buf, IMG_RGB_DEFAULT, - pd->ff_venc_frame.data, IMG_YUV420P, -@@ -610,21 +610,21 @@ static int tc_lavc_set_pix_fmt(TCLavcPri - case CODEC_YUV: - if (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) { - pd->tc_pix_fmt = TC_CODEC_YUV422P; -- pd->ff_vcontext.pix_fmt = PIX_FMT_YUV422P; -+ pd->ff_vcontext.pix_fmt = AV_PIX_FMT_YUV422P; - pd->pre_encode_video = pre_encode_video_yuv420p_huffyuv; - } else { - pd->tc_pix_fmt = TC_CODEC_YUV420P; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ420P -- : PIX_FMT_YUV420P; -+ ? AV_PIX_FMT_YUVJ420P -+ : AV_PIX_FMT_YUV420P; - pd->pre_encode_video = pre_encode_video_yuv420p; - } - break; - case CODEC_YUV422: - pd->tc_pix_fmt = TC_CODEC_YUV422P; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ422P -- : PIX_FMT_YUV422P; -+ ? AV_PIX_FMT_YUVJ422P -+ : AV_PIX_FMT_YUV422P; - if (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) { - pd->pre_encode_video = pre_encode_video_yuv422p_huffyuv; - } else { -@@ -634,10 +634,10 @@ static int tc_lavc_set_pix_fmt(TCLavcPri - case CODEC_RGB: - pd->tc_pix_fmt = TC_CODEC_RGB; - pd->ff_vcontext.pix_fmt = (TC_VCODEC_ID(pd) == TC_CODEC_HUFFYUV) -- ? PIX_FMT_YUV422P -+ ? AV_PIX_FMT_YUV422P - : (TC_VCODEC_ID(pd) == TC_CODEC_MJPEG) -- ? PIX_FMT_YUVJ420P -- : PIX_FMT_YUV420P; -+ ? AV_PIX_FMT_YUVJ420P -+ : AV_PIX_FMT_YUV420P; - pd->pre_encode_video = pre_encode_video_rgb24; - break; - default: -@@ -1390,7 +1390,7 @@ static int tc_lavc_configure(TCModuleIns - /* FIXME: move into core? */ - TC_INIT_LIBAVCODEC; - -- avcodec_get_frame_defaults(&pd->ff_venc_frame); -+ av_frame_unref(&pd->ff_venc_frame); - /* - * auxiliary config data needs to be blanked too - * before any other operation -@@ -1523,6 +1523,8 @@ static int tc_lavc_encode_video(TCModule - vframe_list_t *outframe) - { - TCLavcPrivateData *pd = NULL; -+ AVPacket pkt; -+ int ret, got_packet = 0; - - TC_MODULE_SELF_CHECK(self, "encode_video"); - -@@ -1537,12 +1539,15 @@ static int tc_lavc_encode_video(TCModule - - pd->pre_encode_video(pd, inframe); - -+ av_init_packet(&pkt); -+ pkt.data = outframe->video_buf; -+ pkt.size = inframe->video_size; -+ - TC_LOCK_LIBAVCODEC; -- outframe->video_len = avcodec_encode_video(&pd->ff_vcontext, -- outframe->video_buf, -- inframe->video_size, -- &pd->ff_venc_frame); -+ ret = avcodec_encode_video2(&pd->ff_vcontext, &pkt, -+ &pd->ff_venc_frame, &got_packet); - TC_UNLOCK_LIBAVCODEC; -+ outframe->video_len = ret ? ret : pkt.size; - - if (outframe->video_len < 0) { - tc_log_warn(MOD_NAME, "encoder error: size (%i)", -Index: transcode-1.1.7/export/export_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/export/export_ffmpeg.c -+++ transcode-1.1.7/export/export_ffmpeg.c -@@ -250,9 +250,9 @@ int opt_default(const char *opt, const c - for(type=0; type= 0; type++){ - /* GLUE: +if */ - if (type == AVMEDIA_TYPE_VIDEO) { -- const AVOption *o2 = av_find_opt(avcodec_opts[0], opt, NULL, opt_types[type], opt_types[type]); -- if(o2) -- ret = av_set_string3(avcodec_opts[type], opt, arg, 1, &o); -+ o = av_opt_find(avcodec_opts[0], opt, NULL, opt_types[type], opt_types[type]); -+ if(o) -+ ret = av_opt_set(avcodec_opts[type], opt, arg, 0); - /* GLUE: +if */ - } - } -@@ -267,7 +267,10 @@ int opt_default(const char *opt, const c - if(opt[0] == 'a') - ret = av_set_string3(avcodec_opts[AVMEDIA_TYPE_AUDIO], opt+1, arg, 1, &o); - else */ if(opt[0] == 'v') -- ret = av_set_string3(avcodec_opts[AVMEDIA_TYPE_VIDEO], opt+1, arg, 1, &o); -+ { -+ o = av_opt_find(avcodec_opts[AVMEDIA_TYPE_VIDEO], opt+1, NULL, 0, 0); -+ ret = av_opt_set(avcodec_opts[AVMEDIA_TYPE_VIDEO], opt+1, arg, 0); -+ } - /* GLUE: disabling - else if(opt[0] == 's') - ret = av_set_string3(avcodec_opts[AVMEDIA_TYPE_SUBTITLE], opt+1, arg, 1, &o); -@@ -487,10 +490,10 @@ MOD_init - } - - lavc_venc_context = avcodec_alloc_context3(lavc_venc_codec); -- lavc_venc_frame = avcodec_alloc_frame(); -+ lavc_venc_frame = av_frame_alloc(); - -- lavc_convert_frame= avcodec_alloc_frame(); -- size = avpicture_get_size(PIX_FMT_RGB24, vob->ex_v_width, vob->ex_v_height); -+ lavc_convert_frame= av_frame_alloc(); -+ size = avpicture_get_size(AV_PIX_FMT_RGB24, vob->ex_v_width, vob->ex_v_height); - enc_buffer = tc_malloc(size); - - if (lavc_venc_context == NULL || !enc_buffer || !lavc_convert_frame) { -@@ -1114,7 +1117,7 @@ MOD_init - lavc_venc_context->prediction_method = lavc_param_prediction_method; - - if(is_huffyuv) -- lavc_venc_context->pix_fmt = PIX_FMT_YUV422P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUV422P; - else - { - switch(pix_fmt) -@@ -1123,18 +1126,18 @@ MOD_init - case CODEC_RGB: - { - if(is_mjpeg) -- lavc_venc_context->pix_fmt = PIX_FMT_YUVJ420P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUVJ420P; - else -- lavc_venc_context->pix_fmt = PIX_FMT_YUV420P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUV420P; - break; - } - - case CODEC_YUV422: - { - if(is_mjpeg) -- lavc_venc_context->pix_fmt = PIX_FMT_YUVJ422P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUVJ422P; - else -- lavc_venc_context->pix_fmt = PIX_FMT_YUV422P; -+ lavc_venc_context->pix_fmt = AV_PIX_FMT_YUV422P; - break; - } - -@@ -1596,6 +1599,8 @@ MOD_encode - - int out_size; - const char pict_type_char[5]= {'?', 'I', 'P', 'B', 'S'}; -+ AVPacket pkt; -+ int ret, got_packet = 0; - - if (param->flag == TC_VIDEO) { - -@@ -1620,7 +1625,7 @@ MOD_encode - YUV_INIT_PLANES(src, param->buffer, IMG_YUV_DEFAULT, - lavc_venc_context->width, lavc_venc_context->height); - avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer, -- PIX_FMT_YUV422P, lavc_venc_context->width, -+ AV_PIX_FMT_YUV422P, lavc_venc_context->width, - lavc_venc_context->height); - /* FIXME: can't use tcv_convert (see decode_lavc.c) */ - ac_imgconvert(src, IMG_YUV_DEFAULT, -@@ -1650,7 +1655,7 @@ MOD_encode - lavc_venc_context->width, - lavc_venc_context->height); - avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer, -- PIX_FMT_YUV420P, lavc_venc_context->width, -+ AV_PIX_FMT_YUV420P, lavc_venc_context->width, - lavc_venc_context->height); - ac_imgconvert(src, IMG_YUV422P, - lavc_venc_frame->data, IMG_YUV420P, -@@ -1661,7 +1666,7 @@ MOD_encode - - case CODEC_RGB: - avpicture_fill((AVPicture *)lavc_venc_frame, img_buffer, -- PIX_FMT_YUV420P, lavc_venc_context->width, -+ AV_PIX_FMT_YUV420P, lavc_venc_context->width, - lavc_venc_context->height); - ac_imgconvert(¶m->buffer, IMG_RGB_DEFAULT, - lavc_venc_frame->data, IMG_YUV420P, -@@ -1674,13 +1679,17 @@ MOD_encode - return TC_EXPORT_ERROR; - } - -+ av_init_packet(&pkt); -+ pkt.data = enc_buffer; -+ pkt.size = size; - - TC_LOCK_LIBAVCODEC; -- out_size = avcodec_encode_video(lavc_venc_context, -- enc_buffer, size, -- lavc_venc_frame); -+ ret = avcodec_encode_video2(lavc_venc_context, &pkt, -+ lavc_venc_frame, &got_packet); - TC_UNLOCK_LIBAVCODEC; - -+ out_size = ret ? ret : pkt.size; -+ - if (out_size < 0) { - tc_log_warn(MOD_NAME, "encoder error: size (%d)", out_size); - return TC_EXPORT_ERROR; -Index: transcode-1.1.7/import/decode_lavc.c -=================================================================== ---- transcode-1.1.7.orig/import/decode_lavc.c -+++ transcode-1.1.7/import/decode_lavc.c -@@ -327,8 +327,8 @@ void decode_lavc(decode_t *decode) - - // Convert avcodec image to the requested YUV or RGB format - switch (lavc_dec_context->pix_fmt) { -- case PIX_FMT_YUVJ420P: -- case PIX_FMT_YUV420P: -+ case AV_PIX_FMT_YUVJ420P: -+ case AV_PIX_FMT_YUV420P: - // Remove "dead space" at right edge of planes, if any - if (picture.linesize[0] != lavc_dec_context->width) { - int y; -@@ -352,7 +352,7 @@ void decode_lavc(decode_t *decode) - pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT, - lavc_dec_context->width, lavc_dec_context->height); - break; -- case PIX_FMT_YUV411P: -+ case AV_PIX_FMT_YUV411P: - if (picture.linesize[0] != lavc_dec_context->width) { - int y; - for (y = 0; y < lavc_dec_context->height; y++) { -@@ -371,8 +371,8 @@ void decode_lavc(decode_t *decode) - pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT, - lavc_dec_context->width, lavc_dec_context->height); - break; -- case PIX_FMT_YUVJ422P: -- case PIX_FMT_YUV422P: -+ case AV_PIX_FMT_YUVJ422P: -+ case AV_PIX_FMT_YUV422P: - if (picture.linesize[0] != lavc_dec_context->width) { - int y; - for (y = 0; y < lavc_dec_context->height; y++) { -@@ -391,8 +391,8 @@ void decode_lavc(decode_t *decode) - pix_fmt==TC_CODEC_YUV420P ? IMG_YUV420P : IMG_RGB_DEFAULT, - lavc_dec_context->width, lavc_dec_context->height); - break; -- case PIX_FMT_YUVJ444P: -- case PIX_FMT_YUV444P: -+ case AV_PIX_FMT_YUVJ444P: -+ case AV_PIX_FMT_YUV444P: - if (picture.linesize[0] != lavc_dec_context->width) { - int y; - for (y = 0; y < lavc_dec_context->height; y++) { -Index: transcode-1.1.7/import/import_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/import/import_ffmpeg.c -+++ transcode-1.1.7/import/import_ffmpeg.c -@@ -661,8 +661,8 @@ retry: - - // Convert avcodec image to our internal YUV or RGB format - switch (lavc_dec_context->pix_fmt) { -- case PIX_FMT_YUVJ420P: -- case PIX_FMT_YUV420P: -+ case AV_PIX_FMT_YUVJ420P: -+ case AV_PIX_FMT_YUV420P: - src_fmt = IMG_YUV420P; - YUV_INIT_PLANES(src_planes, frame, src_fmt, - lavc_dec_context->width, lavc_dec_context->height); -@@ -693,7 +693,7 @@ retry: - } - break; - -- case PIX_FMT_YUV411P: -+ case AV_PIX_FMT_YUV411P: - src_fmt = IMG_YUV411P; - YUV_INIT_PLANES(src_planes, frame, src_fmt, - lavc_dec_context->width, lavc_dec_context->height); -@@ -721,8 +721,8 @@ retry: - } - break; - -- case PIX_FMT_YUVJ422P: -- case PIX_FMT_YUV422P: -+ case AV_PIX_FMT_YUVJ422P: -+ case AV_PIX_FMT_YUV422P: - src_fmt = IMG_YUV422P; - YUV_INIT_PLANES(src_planes, frame, src_fmt, - lavc_dec_context->width, lavc_dec_context->height); -@@ -750,8 +750,8 @@ retry: - } - break; - -- case PIX_FMT_YUVJ444P: -- case PIX_FMT_YUV444P: -+ case AV_PIX_FMT_YUVJ444P: -+ case AV_PIX_FMT_YUV444P: - src_fmt = IMG_YUV444P; - YUV_INIT_PLANES(src_planes, frame, src_fmt, - lavc_dec_context->width, lavc_dec_context->height); diff --git a/multimedia/transcode/transcode-1.1.7-ffmpeg4.patch b/multimedia/transcode/transcode-1.1.7-ffmpeg4.patch deleted file mode 100644 index 9ad765e1c3..0000000000 --- a/multimedia/transcode/transcode-1.1.7-ffmpeg4.patch +++ /dev/null @@ -1,508 +0,0 @@ -Index: transcode-1.1.7/encode/encode_lavc.c -=================================================================== ---- transcode-1.1.7.orig/encode/encode_lavc.c -+++ transcode-1.1.7/encode/encode_lavc.c -@@ -77,6 +77,13 @@ struct tclavcconfigdata_ { - int luma_elim_threshold; - int chroma_elim_threshold; - int quantizer_noise_shaping; -+ int inter_quant_bias; -+ int intra_quant_bias; -+ int scenechange_factor; -+ int rc_strategy; -+ float rc_initial_cplx; -+ float rc_qsquish; -+ float border_masking; - - /* same as above for flags */ - struct { -@@ -684,7 +691,7 @@ static int tc_lavc_init_multipass(TCLavc - switch (vob->divxmultipass) { - case 1: - CAN_DO_MULTIPASS(multipass_flag); -- pd->ff_vcontext.flags |= CODEC_FLAG_PASS1; -+ pd->ff_vcontext.flags |= AV_CODEC_FLAG_PASS1; - pd->stats_file = fopen(vob->divxlogfile, "w"); - if (pd->stats_file == NULL) { - tc_log_error(MOD_NAME, "could not create 2pass log file" -@@ -694,7 +701,7 @@ static int tc_lavc_init_multipass(TCLavc - break; - case 2: - CAN_DO_MULTIPASS(multipass_flag); -- pd->ff_vcontext.flags |= CODEC_FLAG_PASS2; -+ pd->ff_vcontext.flags |= AV_CODEC_FLAG_PASS2; - pd->stats_file = fopen(vob->divxlogfile, "r"); - if (pd->stats_file == NULL){ - tc_log_error(MOD_NAME, "could not open 2pass log file \"%s\"" -@@ -723,7 +730,7 @@ static int tc_lavc_init_multipass(TCLavc - break; - case 3: - /* fixed qscale :p */ -- pd->ff_vcontext.flags |= CODEC_FLAG_QSCALE; -+ pd->ff_vcontext.flags |= AV_CODEC_FLAG_QSCALE; - pd->ff_venc_frame.quality = vob->divxbitrate; - break; - } -@@ -970,7 +977,7 @@ static void tc_lavc_config_defaults(TCLa - pd->confdata.rc_buffer_size = 0; - pd->confdata.lmin = 2; - pd->confdata.lmax = 31; -- pd->confdata.me_method = ME_EPZS; -+ pd->confdata.me_method = 0; - - memset(&pd->confdata.flags, 0, sizeof(pd->confdata.flags)); - pd->confdata.turbo_setup = 0; -@@ -983,12 +990,12 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.me_range = 0; - pd->ff_vcontext.mb_decision = 0; - pd->ff_vcontext.scenechange_threshold = 0; -- pd->ff_vcontext.scenechange_factor = 1; -+ pd->confdata.scenechange_factor = 1; - pd->ff_vcontext.b_frame_strategy = 0; - pd->ff_vcontext.b_sensitivity = 40; - pd->ff_vcontext.brd_scale = 0; - pd->ff_vcontext.bidir_refine = 0; -- pd->ff_vcontext.rc_strategy = 2; -+ pd->confdata.rc_strategy = 2; - pd->ff_vcontext.b_quant_factor = 1.25; - pd->ff_vcontext.i_quant_factor = 0.8; - pd->ff_vcontext.b_quant_offset = 1.25; -@@ -996,8 +1003,8 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.qblur = 0.5; - pd->ff_vcontext.qcompress = 0.5; - pd->ff_vcontext.mpeg_quant = 0; -- pd->ff_vcontext.rc_initial_cplx = 0.0; -- pd->ff_vcontext.rc_qsquish = 1.0; -+ pd->confdata.rc_initial_cplx = 0.0; -+ pd->confdata.rc_qsquish = 1.0; - pd->confdata.luma_elim_threshold = 0; - pd->confdata.chroma_elim_threshold = 0; - pd->ff_vcontext.strict_std_compliance = 0; -@@ -1008,7 +1015,7 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.temporal_cplx_masking = 0.0; - pd->ff_vcontext.spatial_cplx_masking = 0.0; - pd->ff_vcontext.p_masking = 0.0; -- pd->ff_vcontext.border_masking = 0.0; -+ pd->confdata.border_masking = 0.0; - pd->ff_vcontext.me_pre_cmp = 0; - pd->ff_vcontext.me_cmp = 0; - pd->ff_vcontext.me_sub_cmp = 0; -@@ -1020,8 +1027,6 @@ static void tc_lavc_config_defaults(TCLa - pd->ff_vcontext.pre_me = 1; - pd->ff_vcontext.me_subpel_quality = 8; - pd->ff_vcontext.refs = 1; -- pd->ff_vcontext.intra_quant_bias = FF_DEFAULT_QUANT_BIAS; -- pd->ff_vcontext.inter_quant_bias = FF_DEFAULT_QUANT_BIAS; - pd->ff_vcontext.noise_reduction = 0; - pd->confdata.quantizer_noise_shaping = 0; - pd->ff_vcontext.flags = 0; -@@ -1044,19 +1049,19 @@ static void tc_lavc_config_defaults(TCLa - */ - static void tc_lavc_dispatch_settings(TCLavcPrivateData *pd) - { -+ char buf[1024]; - /* some translation... */ - pd->ff_vcontext.bit_rate_tolerance = pd->confdata.vrate_tolerance * 1000; - pd->ff_vcontext.rc_min_rate = pd->confdata.rc_min_rate * 1000; - pd->ff_vcontext.rc_max_rate = pd->confdata.rc_max_rate * 1000; - pd->ff_vcontext.rc_buffer_size = pd->confdata.rc_buffer_size * 1024; -- pd->ff_vcontext.lmin = (int)(FF_QP2LAMBDA * pd->confdata.lmin + 0.5); -- pd->ff_vcontext.lmax = (int)(FF_QP2LAMBDA * pd->confdata.lmax + 0.5); -- pd->ff_vcontext.me_method = ME_ZERO + pd->confdata.me_method; -+ snprintf(buf, sizeof(buf), "%i", (int)(FF_QP2LAMBDA * pd->confdata.lmin + 0.5)); -+ av_dict_set(&(pd->ff_opts), "lmin", buf, 0); -+ snprintf(buf, sizeof(buf), "%i", (int)(FF_QP2LAMBDA * pd->confdata.lmax + 0.5)); -+ av_dict_set(&(pd->ff_opts), "lmax", buf, 0); - - pd->ff_vcontext.flags = 0; -- SET_FLAG(pd, mv0); - SET_FLAG(pd, qpel); -- SET_FLAG(pd, naq); - SET_FLAG(pd, ilme); - SET_FLAG(pd, ildct); - SET_FLAG(pd, aic); -@@ -1077,8 +1082,8 @@ static void tc_lavc_dispatch_settings(TC - } - if (pd->interlacing.active) { - /* enforce interlacing */ -- pd->ff_vcontext.flags |= CODEC_FLAG_INTERLACED_DCT; -- pd->ff_vcontext.flags |= CODEC_FLAG_INTERLACED_ME; -+ pd->ff_vcontext.flags |= AV_CODEC_FLAG_INTERLACED_DCT; -+ pd->ff_vcontext.flags |= AV_CODEC_FLAG_INTERLACED_ME; - } - if (pd->confdata.flags.alt) { - av_dict_set(&(pd->ff_opts), "alternate_scan", "1", 0); -@@ -1095,15 +1100,31 @@ static void tc_lavc_dispatch_settings(TC - if (pd->confdata.flags.cbp) { - av_dict_set(&(pd->ff_opts), "mpv_flags", "+cbp_rd", 0); - } -+ if (pd->confdata.flags.mv0) { -+ av_dict_set(&(pd->ff_opts), "mpv_flags", "+mv0", 0); -+ } -+ if (pd->confdata.flags.naq) { -+ av_dict_set(&(pd->ff_opts), "mpv_flags", "+naq", 0); -+ } - -- char buf[1024]; - #define set_dict_opt(val, opt) \ - snprintf(buf, sizeof(buf), "%i", pd->confdata.val);\ - av_dict_set(&(pd->ff_opts), opt, buf, 0) -+#define set_dict_float_opt(val, opt) \ -+ snprintf(buf, sizeof(buf), "%f", pd->confdata.val);\ -+ av_dict_set(&(pd->ff_opts), opt, buf, 0) - - set_dict_opt(luma_elim_threshold, "luma_elim_threshold"); - set_dict_opt(chroma_elim_threshold, "chroma_elim_threshold"); - set_dict_opt(quantizer_noise_shaping, "quantizer_noise_shaping"); -+ set_dict_opt(inter_quant_bias, "pbias"); -+ set_dict_opt(intra_quant_bias, "ibias"); -+ set_dict_opt(me_method, "me_method"); -+ set_dict_opt(scenechange_factor, "sc_factor"); -+ set_dict_opt(rc_strategy, "rc_strategy"); -+ set_dict_float_opt(rc_initial_cplx, "rc_init_cplx"); -+ set_dict_float_opt(rc_qsquish, "qsquish"); -+ set_dict_float_opt(border_masking, "border_mask"); - } - - #undef SET_FLAG -@@ -1159,12 +1180,12 @@ static int tc_lavc_read_config(TCLavcPri - { "lmin", PAUX(lmin), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 }, - { "lmax", PAUX(lmax), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 }, - { "vqdiff", PCTX(max_qdiff), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31 }, -- { "vmax_b_frames", PCTX(max_b_frames), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, FF_MAX_B_FRAMES }, -+ { "vmax_b_frames", PCTX(max_b_frames), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, INT_MAX }, - { "vme", PAUX(me_method), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 16, }, - { "me_range", PCTX(me_range), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 16000 }, - { "mbd", PCTX(mb_decision), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 3 }, - { "sc_threshold", PCTX(scenechange_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1000000, 1000000 }, -- { "sc_factor", PCTX(scenechange_factor), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 16 }, -+ { "sc_factor", PAUX(scenechange_factor), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 16 }, - { "vb_strategy", PCTX(b_frame_strategy), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10 }, - { "b_sensitivity", PCTX(b_sensitivity), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 100 }, - { "brd_scale", PCTX(brd_scale), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10 }, -@@ -1175,7 +1196,7 @@ static int tc_lavc_read_config(TCLavcPri - { "vrc_maxrate", PAUX(rc_max_rate), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 24000000 }, - { "vrc_minrate", PAUX(rc_min_rate), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 24000000 }, - { "vrc_buf_size", PAUX(rc_buffer_size), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 4, 24000000 }, -- { "vrc_strategy", PCTX(rc_strategy), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2 }, -+ { "vrc_strategy", PAUX(rc_strategy), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2 }, - { "vb_qfactor", PCTX(b_quant_factor), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, -31.0, 31.0 }, - { "vi_qfactor", PCTX(i_quant_factor), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, -31.0, 31.0 }, - { "vb_qoffset", PCTX(b_quant_offset), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 31.0 }, -@@ -1185,9 +1206,9 @@ static int tc_lavc_read_config(TCLavcPri - { "mpeg_quant", PCTX(mpeg_quant), TCCONF_TYPE_FLAG, 0, 0, 1 }, - // { "vrc_eq", }, // not yet supported - { "vrc_override", rc_override_buf, TCCONF_TYPE_STRING, 0, 0, 0 }, -- { "vrc_init_cplx", PCTX(rc_initial_cplx), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 9999999.0 }, -+ { "vrc_init_cplx", PAUX(rc_initial_cplx), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 9999999.0 }, - // { "vrc_init_occupancy", }, // not yet supported -- { "vqsquish", PCTX(rc_qsquish), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 99.0 }, -+ { "vqsquish", PAUX(rc_qsquish), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 99.0 }, - { "vlelim", PAUX(luma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, - { "vcelim", PAUX(chroma_elim_threshold), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, - { "vstrict", PCTX(strict_std_compliance), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99 }, -@@ -1199,7 +1220,7 @@ static int tc_lavc_read_config(TCLavcPri - { "tcplx_mask", PCTX(temporal_cplx_masking), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0 }, - { "scplx_mask", PCTX(spatial_cplx_masking), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0 }, - { "p_mask", PCTX(p_masking), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0 }, -- { "border_mask", PCTX(border_masking), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0 }, -+ { "border_mask", PAUX(border_masking), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0 }, - { "pred", PCTX(prediction_method), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 4 }, - { "precmp", PCTX(me_pre_cmp), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000 }, - { "cmp", PCTX(me_cmp), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000 }, -@@ -1212,37 +1233,37 @@ static int tc_lavc_read_config(TCLavcPri - { "pre_me", PCTX(pre_me), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000}, - { "subq", PCTX(me_subpel_quality), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 8 }, - { "refs", PCTX(refs), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 8 }, -- { "ibias", PCTX(intra_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, -- { "pbias", PCTX(inter_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, -+ { "ibias", PAUX(intra_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, -+ { "pbias", PAUX(inter_quant_bias), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512 }, - { "nr", PCTX(noise_reduction), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000000}, - { "qns", PAUX(quantizer_noise_shaping), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 3 }, - { "inter_matrix_file", inter_matrix_file, TCCONF_TYPE_STRING, 0, 0, 0 }, - { "intra_matrix_file", intra_matrix_file, TCCONF_TYPE_STRING, 0, 0, 0 }, - -- { "mv0", PAUX(flags.mv0), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0 }, -+ { "mv0", PAUX(flags.mv0), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "cbp", PAUX(flags.cbp), TCCONF_TYPE_FLAG, 0, 0, 1 }, -- { "qpel", PAUX(flags.qpel), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL }, -+ { "qpel", PAUX(flags.qpel), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_QPEL }, - { "alt", PAUX(flags.alt), TCCONF_TYPE_FLAG, 0, 0, 1 }, -- { "ilme", PAUX(flags.ilme), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME }, -- { "ildct", PAUX(flags.ildct), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_DCT }, -- { "naq", PAUX(flags.naq), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_NORMALIZE_AQP }, -+ { "ilme", PAUX(flags.ilme), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_INTERLACED_ME }, -+ { "ildct", PAUX(flags.ildct), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_INTERLACED_DCT }, -+ { "naq", PAUX(flags.naq), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "vdpart", PAUX(flags.vdpart), TCCONF_TYPE_FLAG, 0, 0, 1 }, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - { "aic", PAUX(flags.aic), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIC }, - #else -- { "aic", PAUX(flags.aic), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED }, -+ { "aic", PAUX(flags.aic), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_AC_PRED }, - #endif - { "aiv", PAUX(flags.aiv), TCCONF_TYPE_FLAG, 0, 0, 1 }, - { "umv", PAUX(flags.umv), TCCONF_TYPE_FLAG, 0, 0, 1 }, -- { "psnr", PAUX(flags.psnr), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PSNR }, -+ { "psnr", PAUX(flags.psnr), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_PSNR }, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - { "trell", PAUX(flags.trell), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT }, - #else - { "trell", PCTX(trellis), TCCONF_TYPE_FLAG, 0, 0, 1 }, - #endif -- { "gray", PAUX(flags.gray), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GRAY }, -- { "v4mv", PAUX(flags.v4mv), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_4MV }, -- { "closedgop", PAUX(flags.closedgop), TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP }, -+ { "gray", PAUX(flags.gray), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_GRAY }, -+ { "v4mv", PAUX(flags.v4mv), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_4MV }, -+ { "closedgop", PAUX(flags.closedgop), TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_CLOSED_GOP }, - - // { "turbo", PAUX(turbo_setup), TCCONF_TYPE_FLAG, 0, 0, 1 }, // not yet supported - /* End of the config file */ -Index: transcode-1.1.7/export/export_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/export/export_ffmpeg.c -+++ transcode-1.1.7/export/export_ffmpeg.c -@@ -831,14 +831,11 @@ MOD_init - - lavc_venc_context->bit_rate = vob->divxbitrate * 1000; - lavc_venc_context->bit_rate_tolerance = lavc_param_vrate_tolerance * 1000; -- lavc_venc_context->lmin= (int)(FF_QP2LAMBDA * lavc_param_lmin + 0.5); -- lavc_venc_context->lmax= (int)(FF_QP2LAMBDA * lavc_param_lmax + 0.5); - lavc_venc_context->max_qdiff = lavc_param_vqdiff; - lavc_venc_context->qcompress = lavc_param_vqcompress; - lavc_venc_context->qblur = lavc_param_vqblur; - lavc_venc_context->max_b_frames = lavc_param_vmax_b_frames; - lavc_venc_context->b_quant_factor = lavc_param_vb_qfactor; -- lavc_venc_context->rc_strategy = lavc_param_vrc_strategy; - lavc_venc_context->b_frame_strategy = lavc_param_vb_strategy; - lavc_venc_context->b_quant_offset = lavc_param_vb_qoffset; - -@@ -846,8 +843,23 @@ MOD_init - #define set_dict_opt(val, opt) \ - snprintf(buf, sizeof(buf), "%i", val); \ - av_dict_set(&lavc_venc_opts, opt, buf, 0) -+#define set_dict_float_opt(val, opt) \ -+ snprintf(buf, sizeof(buf), "%f", val); \ -+ av_dict_set(&lavc_venc_opts, opt, buf, 0) - set_dict_opt(lavc_param_luma_elim_threshold, "luma_elim_threshold"); - set_dict_opt(lavc_param_chroma_elim_threshold, "chroma_elim_threshold"); -+ set_dict_opt((int)(FF_QP2LAMBDA * lavc_param_lmin + 0.5), "lmin"); -+ set_dict_opt((int)(FF_QP2LAMBDA * lavc_param_lmax + 0.5), "lmax"); -+ set_dict_opt(lavc_param_vrc_strategy, "rc_strategy"); -+ set_dict_float_opt(lavc_param_rc_qsquish, "qsquish"); -+ set_dict_float_opt(lavc_param_rc_qmod_amp, "rc_qmod_amp"); -+ set_dict_opt(lavc_param_rc_qmod_freq, "rc_qmod_freq"); -+ set_dict_opt(lavc_param_rc_eq, "rc_eq"); -+ set_dict_opt(lavc_param_vme, "me_method"); -+ set_dict_opt(lavc_param_ibias, "ibias"); -+ set_dict_opt(lavc_param_pbias, "pbias"); -+ set_dict_float_opt(lavc_param_rc_buffer_aggressivity, "rc_buf_aggressivity"); -+ set_dict_float_opt(lavc_param_rc_initial_cplx, "rc_init_cplx"); - lavc_venc_context->rtp_payload_size = lavc_param_packet_size; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - if (lavc_param_packet_size) -@@ -856,15 +868,9 @@ MOD_init - lavc_venc_context->strict_std_compliance= lavc_param_strict; - lavc_venc_context->i_quant_factor = lavc_param_vi_qfactor; - lavc_venc_context->i_quant_offset = lavc_param_vi_qoffset; -- lavc_venc_context->rc_qsquish = lavc_param_rc_qsquish; -- lavc_venc_context->rc_qmod_amp = lavc_param_rc_qmod_amp; -- lavc_venc_context->rc_qmod_freq = lavc_param_rc_qmod_freq; -- lavc_venc_context->rc_eq = lavc_param_rc_eq; - lavc_venc_context->rc_max_rate = lavc_param_rc_max_rate * 1000; - lavc_venc_context->rc_min_rate = lavc_param_rc_min_rate * 1000; - lavc_venc_context->rc_buffer_size = lavc_param_rc_buffer_size * 1024; -- lavc_venc_context->rc_buffer_aggressivity= lavc_param_rc_buffer_aggressivity; -- lavc_venc_context->rc_initial_cplx = lavc_param_rc_initial_cplx; - lavc_venc_context->debug = lavc_param_debug; - lavc_venc_context->last_predictor_count= lavc_param_last_pred; - lavc_venc_context->pre_me = lavc_param_pre_me; -@@ -872,8 +878,6 @@ MOD_init - lavc_venc_context->pre_dia_size = lavc_param_pre_dia_size; - lavc_venc_context->me_subpel_quality = lavc_param_me_subpel_quality; - lavc_venc_context->me_range = lavc_param_me_range; -- lavc_venc_context->intra_quant_bias = lavc_param_ibias; -- lavc_venc_context->inter_quant_bias = lavc_param_pbias; - lavc_venc_context->coder_type = lavc_param_coder; - lavc_venc_context->context_model = lavc_param_context; - lavc_venc_context->scenechange_threshold= lavc_param_sc_threshold; -@@ -1079,6 +1083,8 @@ MOD_init - lavc_venc_context->flags |= lavc_param_mv0; - if(lavc_param_qp_rd) - av_dict_set(&lavc_venc_opts, "mpv_flags", "+qp_rd", 0); -+ if (lavc_param_normalize_aqp) -+ av_dict_set(&lavc_venc_opts, "mpv_flags", "+naq", 0); - lavc_venc_context->flags |= lavc_param_ilme; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_venc_context->flags |= lavc_param_trell; -@@ -1087,9 +1093,7 @@ MOD_init - #endif - - if (lavc_param_gray) -- lavc_venc_context->flags |= CODEC_FLAG_GRAY; -- if (lavc_param_normalize_aqp) -- lavc_venc_context->flags |= CODEC_FLAG_NORMALIZE_AQP; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_GRAY; - - switch(vob->encode_fields) { - case TC_ENCODE_FIELDS_TOP_FIRST: -@@ -1107,9 +1111,9 @@ MOD_init - } - - lavc_venc_context->flags |= interlacing_active ? -- CODEC_FLAG_INTERLACED_DCT : 0; -+ AV_CODEC_FLAG_INTERLACED_DCT : 0; - lavc_venc_context->flags |= interlacing_active ? -- CODEC_FLAG_INTERLACED_ME : 0; -+ AV_CODEC_FLAG_INTERLACED_ME : 0; - - lavc_venc_context->flags |= lavc_param_psnr; - do_psnr = lavc_param_psnr; -@@ -1156,7 +1160,7 @@ MOD_init - "encoding."); - return TC_EXPORT_ERROR; - } -- lavc_venc_context->flags |= CODEC_FLAG_PASS1; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_PASS1; - stats_file = fopen(vob->divxlogfile, "w"); - if (stats_file == NULL){ - tc_log_warn(MOD_NAME, "Could not create 2pass log file \"%s\".", -@@ -1170,7 +1174,7 @@ MOD_init - "encoding."); - return TC_EXPORT_ERROR; - } -- lavc_venc_context->flags |= CODEC_FLAG_PASS2; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_PASS2; - stats_file= fopen(vob->divxlogfile, "r"); - if (stats_file==NULL){ - tc_log_warn(MOD_NAME, "Could not open 2pass log file \"%s\" for " -@@ -1201,12 +1205,11 @@ MOD_init - break; - case 3: - /* fixed qscale :p */ -- lavc_venc_context->flags |= CODEC_FLAG_QSCALE; -+ lavc_venc_context->flags |= AV_CODEC_FLAG_QSCALE; - lavc_venc_frame->quality = vob->divxbitrate; - break; - } - -- lavc_venc_context->me_method = ME_ZERO + lavc_param_vme; - - /* FIXME: transcode itself contains "broken ffmpeg default settings", thus we need to override them! */ - if (lavc_param_video_preset && strcmp(lavc_param_video_preset, "none")) { -Index: transcode-1.1.7/export/ffmpeg_cfg.c -=================================================================== ---- transcode-1.1.7.orig/export/ffmpeg_cfg.c -+++ transcode-1.1.7/export/ffmpeg_cfg.c -@@ -93,8 +93,8 @@ int lavc_param_last_pred= 0; - int lavc_param_pre_me= 1; - int lavc_param_me_subpel_quality= 8; - int lavc_param_me_range=0; --int lavc_param_ibias=FF_DEFAULT_QUANT_BIAS; --int lavc_param_pbias=FF_DEFAULT_QUANT_BIAS; -+int lavc_param_ibias=0; -+int lavc_param_pbias=0; - int lavc_param_coder=0; - int lavc_param_context=0; - char *lavc_param_intra_matrix = NULL; -@@ -136,7 +136,7 @@ TCConfigEntry lavcopts_conf[]={ - {"vratetol", &lavc_param_vrate_tolerance, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 4, 24000000}, - {"vhq", &lavc_param_mb_decision, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"mbd", &lavc_param_mb_decision, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 9}, -- {"v4mv", &lavc_param_v4mv, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_4MV}, -+ {"v4mv", &lavc_param_v4mv, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_4MV}, - {"vme", &lavc_param_vme, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 5}, - // {"vqscale", &lavc_param_vqscale, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, - // {"vqmin", &lavc_param_vqmin, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31}, -@@ -147,7 +147,7 @@ TCConfigEntry lavcopts_conf[]={ - {"vqcomp", &lavc_param_vqcompress, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0}, - {"vqblur", &lavc_param_vqblur, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 1.0}, - {"vb_qfactor", &lavc_param_vb_qfactor, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, -31.0, 31.0}, -- {"vmax_b_frames", &lavc_param_vmax_b_frames, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, FF_MAX_B_FRAMES}, -+ {"vmax_b_frames", &lavc_param_vmax_b_frames, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, INT_MAX}, - // {"vpass", &lavc_param_vpass, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2}, - {"vrc_strategy", &lavc_param_vrc_strategy, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2}, - {"vb_strategy", &lavc_param_vb_strategy, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 10}, -@@ -158,7 +158,7 @@ TCConfigEntry lavcopts_conf[]={ - {"vstrict", &lavc_param_strict, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -99, 99}, - {"vdpart", &lavc_param_data_partitioning, TCCONF_TYPE_FLAG, 0, 0, 1}, - // {"keyint", &lavc_param_keyint, TCCONF_TYPE_INT, 0, 0, 0}, -- {"gray", &lavc_param_gray, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GRAY}, -+ {"gray", &lavc_param_gray, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_GRAY}, - {"mpeg_quant", &lavc_param_mpeg_quant, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"vi_qfactor", &lavc_param_vi_qfactor, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, -31.0, 31.0}, - {"vi_qoffset", &lavc_param_vi_qoffset, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.0, 31.0}, -@@ -184,7 +184,7 @@ TCConfigEntry lavcopts_conf[]={ - {"pred", &lavc_param_prediction_method, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 20}, - {"format", &lavc_param_format, TCCONF_TYPE_STRING, 0, 0, 0}, - {"debug", &lavc_param_debug, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 100000000}, -- {"psnr", &lavc_param_psnr, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PSNR}, -+ {"psnr", &lavc_param_psnr, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_PSNR}, - {"precmp", &lavc_param_me_pre_cmp, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000}, - {"cmp", &lavc_param_me_cmp, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000}, - {"subcmp", &lavc_param_me_sub_cmp, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000}, -@@ -192,9 +192,9 @@ TCConfigEntry lavcopts_conf[]={ - {"ildctcmp", &lavc_param_ildct_cmp, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 2000}, - {"predia", &lavc_param_pre_dia_size, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -2000, 2000}, - {"dia", &lavc_param_dia_size, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -2000, 2000}, -- {"qpel", &lavc_param_qpel, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL}, -+ {"qpel", &lavc_param_qpel, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_QPEL}, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) -- {"trell", &lavc_param_trell, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT}, -+ {"trell", &lavc_param_trell, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_TRELLIS_QUANT}, - #else - {"trell", &lavc_param_trell, TCCONF_TYPE_FLAG, 0, 0, 1}, - #endif -@@ -203,9 +203,9 @@ TCConfigEntry lavcopts_conf[]={ - {"subq", &lavc_param_me_subpel_quality, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 8}, - {"me_range", &lavc_param_me_range, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 16000}, - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) -- {"aic", &lavc_param_aic, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIC}, -+ {"aic", &lavc_param_aic, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_H263P_AIC}, - #else -- {"aic", &lavc_param_aic, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED}, -+ {"aic", &lavc_param_aic, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_AC_PRED}, - #endif - {"umv", &lavc_param_umv, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"ibias", &lavc_param_ibias, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -512, 512}, -@@ -215,20 +215,20 @@ TCConfigEntry lavcopts_conf[]={ - {"intra_matrix", &lavc_param_intra_matrix, TCCONF_TYPE_STRING, 0, 0, 0}, - {"inter_matrix", &lavc_param_inter_matrix, TCCONF_TYPE_STRING, 0, 0, 0}, - {"cbp", &lavc_param_cbp, TCCONF_TYPE_FLAG, 0, 0, 1}, -- {"mv0", &lavc_param_mv0, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0}, -+ {"mv0", &lavc_param_mv0, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"nr", &lavc_param_noise_reduction, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000000}, - {"qprd", &lavc_param_qp_rd, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"threads", &lavc_param_threads, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 16}, - {"ss", &lavc_param_ss, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"svcd_sof", &lavc_param_scan_offset, TCCONF_TYPE_FLAG, 0, 0, 1}, - {"alt", &lavc_param_alt, TCCONF_TYPE_FLAG, 0, 0, 1}, -- {"ilme", &lavc_param_ilme, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME}, -+ {"ilme", &lavc_param_ilme, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_INTERLACED_ME}, - {"inter_threshold", &lavc_param_inter_threshold, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1000000, 1000000}, - {"sc_threshold", &lavc_param_sc_threshold, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1000000, 1000000}, - {"top", &lavc_param_top, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, -1, 1}, -- {"gmc", &lavc_param_gmc, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GMC}, -- {"trunc", &lavc_param_trunc, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRUNCATED}, -- {"closedgop", &lavc_param_closedgop, TCCONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP}, -+ {"gmc", &lavc_param_gmc, TCCONF_TYPE_FLAG, 0, 0, 1}, -+ {"trunc", &lavc_param_trunc, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_TRUNCATED}, -+ {"closedgop", &lavc_param_closedgop, TCCONF_TYPE_FLAG, 0, 0, AV_CODEC_FLAG_CLOSED_GOP}, - {"intra_dc_precision", &lavc_param_intra_dc_precision, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 16}, - {"skip_top", &lavc_param_skip_top, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000}, - {"skip_bottom", &lavc_param_skip_bottom, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 0, 1000}, -Index: transcode-1.1.7/import/import_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/import/import_ffmpeg.c -+++ transcode-1.1.7/import/import_ffmpeg.c -@@ -361,7 +361,7 @@ do_avi: - lavc_dec_context->width = x_dim; - lavc_dec_context->height = y_dim; - -- if (vob->decolor) lavc_dec_context->flags |= CODEC_FLAG_GRAY; -+ if (vob->decolor) lavc_dec_context->flags |= AV_CODEC_FLAG_GRAY; - #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) - lavc_dec_context->error_resilience = 2; - #else diff --git a/multimedia/transcode/transcode-1.1.7-libav-10.patch b/multimedia/transcode/transcode-1.1.7-libav-10.patch deleted file mode 100644 index 1f4a24039d..0000000000 --- a/multimedia/transcode/transcode-1.1.7-libav-10.patch +++ /dev/null @@ -1,36 +0,0 @@ -fix building w/libav-10 - -https://wiki.libav.org/Migration/10 - ---- a/filter/filter_resample.c -+++ b/filter/filter_resample.c -@@ -37,6 +37,7 @@ - #include "libtc/optstr.h" - #include "libtc/tcavcodec.h" - #include "libtc/tcmodule-plugin.h" -+#include - - - typedef struct { -@@ -45,7 +46,7 @@ typedef struct { - - int bytes_per_sample; - -- ReSampleContext *resample_ctx; -+ AVAudioResampleContext *resample_ctx; - } ResamplePrivateData; - - static const char resample_help[] = "" ---- a/import/probe_ffmpeg.c -+++ b/import/probe_ffmpeg.c -@@ -51,8 +51,8 @@ static void translate_info(const AVFormatContext *ctx, ProbeInfo *info) - info->bitrate = st->codec->bit_rate / 1000; - info->width = st->codec->width; - info->height = st->codec->height; -- if (st->r_frame_rate.num > 0 && st->r_frame_rate.den > 0) { -- info->fps = av_q2d(st->r_frame_rate); -+ if (st->avg_frame_rate.num > 0 && st->avg_frame_rate.den > 0) { -+ info->fps = av_q2d(st->avg_frame_rate); - } else { - /* watch out here */ - info->fps = 1.0/av_q2d(st->codec->time_base); diff --git a/multimedia/transcode/transcode-1.1.7-libav-9.patch b/multimedia/transcode/transcode-1.1.7-libav-9.patch deleted file mode 100644 index 3989d3d83a..0000000000 --- a/multimedia/transcode/transcode-1.1.7-libav-9.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- import/probe_ffmpeg.c.original 2013-04-22 20:04:51.058081388 +0200 -+++ import/probe_ffmpeg.c 2013-04-22 20:05:25.744081897 +0200 -@@ -109,7 +109,7 @@ void probe_ffmpeg(info_t *ipipe) - return; - } - -- ret = av_find_stream_info(lavf_dmx_context); -+ ret = avformat_find_stream_info(lavf_dmx_context, NULL); - if (ret < 0) { - tc_log_error(__FILE__, "unable to fetch informations from '%s'" - " (libavformat failure)", ---- import/decode_lavc.c.original 2013-04-22 20:06:17.260082652 +0200 -+++ import/decode_lavc.c 2013-04-22 20:07:47.564083975 +0200 -@@ -170,7 +170,7 @@ void decode_lavc(decode_t *decode) - - // Set these to the expected values so that ffmpeg's decoder can - // properly detect interlaced input. -- lavc_dec_context = avcodec_alloc_context(); -+ lavc_dec_context = avcodec_alloc_context3(NULL); - if (lavc_dec_context == NULL) { - tc_log_error(__FILE__, "Could not allocate enough memory."); - goto decoder_error; -@@ -186,7 +186,7 @@ void decode_lavc(decode_t *decode) - lavc_dec_context->error_concealment = 3; - lavc_dec_context->workaround_bugs = FF_BUG_AUTODETECT; - -- if (avcodec_open(lavc_dec_context, lavc_dec_codec) < 0) { -+ if (avcodec_open2(lavc_dec_context, lavc_dec_codec, NULL) < 0) { - tc_log_error(__FILE__, "Could not initialize the '%s' codec.", - codec->name); - goto decoder_error; diff --git a/multimedia/transcode/transcode-1.1.7-preset-force.patch b/multimedia/transcode/transcode-1.1.7-preset-force.patch deleted file mode 100644 index 0d1da8b4f6..0000000000 --- a/multimedia/transcode/transcode-1.1.7-preset-force.patch +++ /dev/null @@ -1,28 +0,0 @@ -Do not force using a preset. Do not try to open non-existant preset by default. - -Index: transcode-1.1.7/export/export_ffmpeg.c -=================================================================== ---- transcode-1.1.7.orig/export/export_ffmpeg.c -+++ transcode-1.1.7/export/export_ffmpeg.c -@@ -1206,7 +1206,7 @@ MOD_init - lavc_venc_context->me_method = ME_ZERO + lavc_param_vme; - - /* FIXME: transcode itself contains "broken ffmpeg default settings", thus we need to override them! */ -- if (lavc_param_video_preset) { -+ if (lavc_param_video_preset && strcmp(lavc_param_video_preset, "none")) { - avcodec_opts[AVMEDIA_TYPE_VIDEO] = lavc_venc_context; - video_codec_name = av_strdup(ffmpeg_codec_name(codec->name)); - -Index: transcode-1.1.7/export/ffmpeg_cfg.c -=================================================================== ---- transcode-1.1.7.orig/export/ffmpeg_cfg.c -+++ transcode-1.1.7/export/ffmpeg_cfg.c -@@ -124,7 +124,7 @@ int lavc_param_gmc = 0; - //int lavc_param_atag = 0; - //int lavc_param_abitrate = 224; - --char *lavc_param_video_preset = "medium"; -+char *lavc_param_video_preset = "none"; - char *lavc_param_ffmpeg_datadir = "/usr/share/ffmpeg"; - - TCConfigEntry lavcopts_conf[]={ diff --git a/multimedia/transcode/transcode-1.1.7-preset-free.patch b/multimedia/transcode/transcode-1.1.7-preset-free.patch deleted file mode 100644 index 00494b94ba..0000000000 --- a/multimedia/transcode/transcode-1.1.7-preset-free.patch +++ /dev/null @@ -1,34 +0,0 @@ -Fix invalid free when preset file not found -https://bugs.gentoo.org/show_bug.cgi?id=322945 -Author: Brennan Shacklett - -diff -urN transcode-1.1.7-orig/export/export_ffmpeg.c transcode-1.1.7/export/export_ffmpeg.c ---- transcode-1.1.7-orig/export/export_ffmpeg.c 2011-11-19 08:50:27.000000000 -0800 -+++ transcode-1.1.7/export/export_ffmpeg.c 2012-07-03 20:07:05.669083945 -0700 -@@ -321,7 +321,7 @@ - } - - if(!f){ -- fprintf(stderr, "File for preset '%s' not found\n", arg); -+ tc_log_error(MOD_NAME, "File for preset '%s' not found", arg); - av_exit(1); - } - -@@ -1207,7 +1207,7 @@ - /* FIXME: transcode itself contains "broken ffmpeg default settings", thus we need to override them! */ - if (lavc_param_video_preset) { - avcodec_opts[AVMEDIA_TYPE_VIDEO] = lavc_venc_context; -- video_codec_name = ffmpeg_codec_name(codec->name); -+ video_codec_name = av_strdup(ffmpeg_codec_name(codec->name)); - - const char *preset_start = lavc_param_video_preset; - while (preset_start) { -@@ -1225,6 +1225,8 @@ - if (opt_preset("vpre", preset_name) != 0) { - tc_log_warn(MOD_NAME, "Parsing ffmpeg preset '%s' failed", preset_name); - } -+ av_free(video_codec_name); -+ video_codec_name = NULL; - if (verbose) { - int i; - tc_log_info(MOD_NAME, "After parsing preset '%s', %i options are overridden:", preset_name, opt_name_count); diff --git a/multimedia/transcode/transcode.SlackBuild b/multimedia/transcode/transcode.SlackBuild index d9a7341eb2..5f02f16f62 100644 --- a/multimedia/transcode/transcode.SlackBuild +++ b/multimedia/transcode/transcode.SlackBuild @@ -79,18 +79,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix building with newer ffmpeg -patch -p0 -i $CWD/transcode-1.1.7-ffmpeg.patch -patch -p0 -i $CWD/transcode-1.1.7-ffmpeg-0.10.patch -patch -p1 -i $CWD/transcode-1.1.7-ffmpeg-0.11.patch -patch -p1 -i $CWD/transcode-1.1.7-preset-free.patch -patch -p0 -i $CWD/transcode-1.1.7-libav-9.patch -patch -p1 -i $CWD/transcode-1.1.7-libav-10.patch -patch -p1 -i $CWD/transcode-1.1.7-preset-force.patch -patch -p1 -i $CWD/transcode-1.1.7-ffmpeg2.patch -patch -p1 -i $CWD/transcode-1.1.7-ffmpeg24.patch -patch -p1 -i $CWD/transcode-1.1.7-ffmpeg29.patch -patch -p1 -i $CWD/transcode-1.1.7-ffmpeg4.patch # Fix building with imagemagick 7.x patch -p1 -i $CWD/transcode-1.1.7-imagemagick7.patch patch -p1 -i $CWD/transcode-1.1.7-gcc10.patch @@ -100,6 +88,7 @@ autoreconf -vif export MAGICKCORE_QUANTUM_DEPTH=32 +# unfortunately ffmpeg >= 5.x breaks compatibility and no patches are available... CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -109,6 +98,8 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --mandir=/usr/man \ + --disable-ffmpeg \ + --enable-alsa \ --enable-alsa \ --enable-v4l \ --enable-libv4lconvert \ diff --git a/multimedia/xjadeo/ffmpeg-5.1.patch b/multimedia/xjadeo/ffmpeg-5.1.patch new file mode 100644 index 0000000000..4fa4d6d3cc --- /dev/null +++ b/multimedia/xjadeo/ffmpeg-5.1.patch @@ -0,0 +1,105 @@ +From 973f0046cf0dad1a5c5d847aaa02c8bfb21b5804 Mon Sep 17 00:00:00 2001 +From: Robin Gareus +Date: Fri, 2 Sep 2022 10:26:12 +0200 +Subject: [PATCH] ffmpeg 5.1 compat -- closes #51 + +--- + src/xjadeo/ffcompat.h | 11 +++++++++++ + src/xjadeo/xjadeo.c | 28 +++++++++++----------------- + 2 files changed, 22 insertions(+), 17 deletions(-) + +diff --git a/src/xjadeo/ffcompat.h b/src/xjadeo/ffcompat.h +index b60baad..4aadde9 100644 +--- a/src/xjadeo/ffcompat.h ++++ b/src/xjadeo/ffcompat.h +@@ -151,5 +151,16 @@ register_codecs_compat () + #endif + } + ++static inline void ++maybe_avcodec_flush_buffers(AVCodecContext *avctx) ++{ ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 26, 100) ++ if (avctx->codec->flush) { ++ avcodec_flush_buffers(avctx); ++ } ++#else ++ avcodec_flush_buffers(avctx); ++#endif ++} + + #endif /* FFCOMPAT_H */ +diff --git a/src/xjadeo/xjadeo.c b/src/xjadeo/xjadeo.c +index d626f92..a8807f3 100644 +--- a/src/xjadeo/xjadeo.c ++++ b/src/xjadeo/xjadeo.c +@@ -575,9 +575,7 @@ static int seek_frame (AVPacket *packet, int64_t framenumber) { + seek = av_seek_frame (pFormatCtx, videoStream, fidx[framenumber].seekpts, AVSEEK_FLAG_BACKWARD); + } + +- if (pCodecCtx->codec->flush) { +- avcodec_flush_buffers (pCodecCtx); +- } ++ maybe_avcodec_flush_buffers (pCodecCtx); + + if (seek < 0) { + if (!want_quiet) +@@ -915,9 +913,7 @@ static int index_frames () { + error |= 16; + break; + } +- if (pCodecCtx->codec->flush) { +- avcodec_flush_buffers (pCodecCtx); +- } ++ maybe_avcodec_flush_buffers (pCodecCtx); + + int err = 0; + int bailout = 100; +@@ -1053,9 +1049,7 @@ static int index_frames () { + printf("NOBYTE 2\n"); + break; + } +- if (pCodecCtx->codec->flush) { +- avcodec_flush_buffers (pCodecCtx); +- } ++ maybe_avcodec_flush_buffers (pCodecCtx); + + int64_t pts = AV_NOPTS_VALUE; + while (!got_pic) { +@@ -1118,9 +1112,7 @@ static int index_frames () { + } else { + av_seek_frame (pFormatCtx, videoStream, fidx[i].seekpts, AVSEEK_FLAG_BACKWARD); + } +- if (pCodecCtx->codec->flush) { +- avcodec_flush_buffers (pCodecCtx); +- } ++ maybe_avcodec_flush_buffers (pCodecCtx); + while (!got_pic) { + + if (av_read_frame (pFormatCtx, &packet) < 0) { +@@ -1192,9 +1184,7 @@ static int index_frames () { + } + + av_seek_frame (pFormatCtx, videoStream, 0, AVSEEK_FLAG_BACKWARD); +- if (pCodecCtx->codec->flush) { +- avcodec_flush_buffers (pCodecCtx); +- } ++ maybe_avcodec_flush_buffers (pCodecCtx); + if (!error) { + scan_complete = 1; + } +@@ -1271,8 +1261,12 @@ static void clear_info () { + + int open_movie (char* file_name) { + int i; +- AVCodec *pCodec; +- AVStream *av_stream; ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 0, 100) ++ AVCodec* pCodec; ++#else ++ AVCodec const* pCodec; ++#endif ++ AVStream* av_stream; + + if (pFrameFMT) { + close_movie (); diff --git a/multimedia/xjadeo/ffmpeg-5.patch b/multimedia/xjadeo/ffmpeg-5.patch new file mode 100644 index 0000000000..c54e9bab56 --- /dev/null +++ b/multimedia/xjadeo/ffmpeg-5.patch @@ -0,0 +1,25 @@ +From 69877e30c86771d2a99d9820cbc8d96415bb3395 Mon Sep 17 00:00:00 2001 +From: Robin Gareus +Date: Sat, 23 Apr 2022 02:32:54 +0200 +Subject: [PATCH] Fix ffmpeg compatibility + +--- + src/xjadeo/ffcompat.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/xjadeo/ffcompat.h b/src/xjadeo/ffcompat.h +index 6c71292..b60baad 100644 +--- a/src/xjadeo/ffcompat.h ++++ b/src/xjadeo/ffcompat.h +@@ -75,8 +75,10 @@ static inline void av_packet_unref (AVPacket *pkt) + #if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51, 63, 100) + static inline int av_image_get_buffer_size (enum AVPixelFormat pix_fmt, int width, int height, int align) + { +- return avpicture_get_size (pix_fmt, width, height) ++ return avpicture_get_size (pix_fmt, width, height); + } ++#else ++#include + #endif + + #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 2, 0) diff --git a/multimedia/xjadeo/xjadeo.SlackBuild b/multimedia/xjadeo/xjadeo.SlackBuild index 8811d28851..6f616ec317 100644 --- a/multimedia/xjadeo/xjadeo.SlackBuild +++ b/multimedia/xjadeo/xjadeo.SlackBuild @@ -5,7 +5,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xjadeo -VERSION=${VERSION:-0.8.10} +VERSION=${VERSION:-0.8.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -59,6 +59,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/ffmpeg-5.patch +patch -p1 < $CWD/ffmpeg-5.1.patch + # libporttime is included in libportmidi sed -i 's/-lporttime//g' configure diff --git a/multimedia/xjadeo/xjadeo.info b/multimedia/xjadeo/xjadeo.info index 6ce604dac1..a5449a6a69 100644 --- a/multimedia/xjadeo/xjadeo.info +++ b/multimedia/xjadeo/xjadeo.info @@ -1,8 +1,8 @@ PRGNAM="xjadeo" -VERSION="0.8.10" +VERSION="0.8.11" HOMEPAGE="http://xjadeo.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/xjadeo/xjadeo-0.8.10.tar.gz" -MD5SUM="a064aeb351682a7303c60c747591eb3a" +DOWNLOAD="http://downloads.sourceforge.net/xjadeo/xjadeo-0.8.11.tar.gz" +MD5SUM="b0ecd39d526e819c583e5ea51c9b25f7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="liblo" diff --git a/network/MEGAsync/MEGAsync.SlackBuild b/network/MEGAsync/MEGAsync.SlackBuild index 4d804db29e..bc2acaaf87 100644 --- a/network/MEGAsync/MEGAsync.SlackBuild +++ b/network/MEGAsync/MEGAsync.SlackBuild @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=MEGAsync -VERSION=${VERSION:-4.5.3.0} -SDK=${SDK:-3.8.2c} +VERSION=${VERSION:-4.7.2.0} +SDK=${SDK:-4.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,7 +83,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/megasync-4.5.0.0_ffmpeg.patch +# Apply ffmpeg5 fix patch +patch -p1 < $CWD/megasync-4.7.1.0_ffmpeg5.patch cd src/MEGASync/mega patch -p1 < $CWD/megasync-4.5.0.0_pdfium.patch diff --git a/network/MEGAsync/MEGAsync.info b/network/MEGAsync/MEGAsync.info index db02860be9..210577a829 100644 --- a/network/MEGAsync/MEGAsync.info +++ b/network/MEGAsync/MEGAsync.info @@ -1,10 +1,10 @@ PRGNAM="MEGAsync" -VERSION="4.5.3.0" +VERSION="4.7.2.0" HOMEPAGE="https://github.com/meganz/MEGAsync/" -DOWNLOAD="https://github.com/meganz/MEGAsync/archive/v4.5.3.0_Linux/MEGAsync-4.5.3.0_Linux.tar.gz \ - https://github.com/meganz/sdk/archive/v3.8.2c/sdk-3.8.2c.tar.gz" -MD5SUM="be0f1e070b6990c19d766990758ef997 \ - ded79c86d1ddbe2572f0562fa1dc15fc" +DOWNLOAD="https://github.com/meganz/MEGAsync/archive/v4.7.2.0_Linux/MEGAsync-4.7.2.0_Linux.tar.gz \ + https://github.com/meganz/sdk/archive/v4.5.0/sdk-4.5.0.tar.gz" +MD5SUM="b1734bf785e279dd0d01d8ff254c7587 \ + e9f17a8679f3d50d66d76ffc1ce94ac2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="FreeImage libmediainfo" diff --git a/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch b/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch deleted file mode 100644 index a30d4a1eff..0000000000 --- a/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -Naur a/src/MEGASync/mega/src/gfx/freeimage.cpp b/src/MEGASync/mega/src/gfx/freeimage.cpp ---- a/src/MEGASync/mega/src/gfx/freeimage.cpp 2021-05-23 02:28:08.694081111 +0100 -+++ b/src/MEGASync/mega/src/gfx/freeimage.cpp 2021-05-23 02:29:56.189964969 +0100 -@@ -188,7 +188,7 @@ - - // Force seeking to key frames - formatContext->seek2any = false; -- videoStream->skip_to_keyframe = true; -+ //videoStream->skip_to_keyframe = true; - if (decoder->capabilities & CAP_TRUNCATED) - { - codecContext.flags |= CAP_TRUNCATED; -diff -Naur a/src/MEGASync/mega/src/gfx/qt.cpp b/src/MEGASync/mega/src/gfx/qt.cpp ---- a/src/MEGASync/mega/src/gfx/qt.cpp 2021-05-23 02:28:08.694081111 +0100 -+++ b/src/MEGASync/mega/src/gfx/qt.cpp 2021-05-23 02:29:36.172545153 +0100 -@@ -1209,7 +1209,7 @@ - - // Force seeking to key frames - formatContext->seek2any = false; -- videoStream->skip_to_keyframe = true; -+ //videoStream->skip_to_keyframe = true; - if (decoder->capabilities & CAP_TRUNCATED) - { - codecContext.flags |= CAP_TRUNCATED; diff --git a/network/MEGAsync/megasync-4.7.1.0_ffmpeg5.patch b/network/MEGAsync/megasync-4.7.1.0_ffmpeg5.patch new file mode 100644 index 0000000000..ea5ad2a3e3 --- /dev/null +++ b/network/MEGAsync/megasync-4.7.1.0_ffmpeg5.patch @@ -0,0 +1,19 @@ +--- MEGAsync-4.7.1.0_Win/src/MEGASync/mega/src/gfx/freeimage.cpp 2022-09-27 20:24:16.000000000 +0900 ++++ MEGAsync-4.7.1.0_Win.New/src/MEGASync/mega/src/gfx/freeimage.cpp 2022-10-12 10:30:22.849460973 +0900 +@@ -313,7 +313,7 @@ + + // Find decoder for video stream + AVCodecID codecId = codecParm->codec_id; +- AVCodec* decoder = avcodec_find_decoder(codecId); ++ auto decoder = avcodec_find_decoder(codecId); + if (!decoder) + { + LOG_warn << "Codec not found: " << codecId; +@@ -330,7 +330,6 @@ + + // Force seeking to key frames + formatContext->seek2any = false; +- videoStream->skip_to_keyframe = true; + if (decoder->capabilities & CAP_TRUNCATED) + { + codecContext->flags |= CAP_TRUNCATED; diff --git a/network/spice-gtk/spice-gtk.SlackBuild b/network/spice-gtk/spice-gtk.SlackBuild index 860576c9f4..56d7aeaddd 100644 --- a/network/spice-gtk/spice-gtk.SlackBuild +++ b/network/spice-gtk/spice-gtk.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for spice-gtk -# Copyright 2013-2021 Matteo Bernardini Pisa, Italy +# Copyright 2013-2022 Matteo Bernardini Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=spice-gtk -VERSION=${VERSION:-0.40} +VERSION=${VERSION:-0.41} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/network/spice-gtk/spice-gtk.info b/network/spice-gtk/spice-gtk.info index fe8f48da50..36712bacf0 100644 --- a/network/spice-gtk/spice-gtk.info +++ b/network/spice-gtk/spice-gtk.info @@ -1,8 +1,8 @@ PRGNAM="spice-gtk" -VERSION="0.40" +VERSION="0.41" HOMEPAGE="https://www.spice-space.org" -DOWNLOAD="https://www.spice-space.org/download/gtk/spice-gtk-0.40.tar.xz" -MD5SUM="03dcb437afb31151a421de1d7922e2b1" +DOWNLOAD="https://www.spice-space.org/download/gtk/spice-gtk-0.41.tar.xz" +MD5SUM="b44a82b39b0273fb0443cdbdbc375a26" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="spice" diff --git a/network/x2goclient/glibc236.patch b/network/x2goclient/glibc236.patch new file mode 100644 index 0000000000..8e1c1fddcd --- /dev/null +++ b/network/x2goclient/glibc236.patch @@ -0,0 +1,11 @@ +diff -Naur x2goclient-4.1.2.2.orig/src/onmainwindow_privat.h x2goclient-4.1.2.2/src/onmainwindow_privat.h +--- x2goclient-4.1.2.2.orig/src/onmainwindow_privat.h 2020-02-13 11:36:07.000000000 +0100 ++++ x2goclient-4.1.2.2/src/onmainwindow_privat.h 2022-08-23 20:49:00.556603000 +0200 +@@ -84,7 +84,6 @@ + #include "contest.h" + + #if !defined Q_OS_WIN +-#include + #ifdef Q_OS_LINUX + #include + #include diff --git a/network/x2goclient/x2goclient.SlackBuild b/network/x2goclient/x2goclient.SlackBuild index 8fb5f09e1a..5f9cf7ac6f 100644 --- a/network/x2goclient/x2goclient.SlackBuild +++ b/network/x2goclient/x2goclient.SlackBuild @@ -87,6 +87,8 @@ find -L . \ sed -i -e '/^QMAKE_BINARY=/s@qmake-qt4@qmake@' Makefile sed -i -e '/^LRELEASE_BINARY=/s@lrelease-qt4@lrelease@' Makefile +patch -p1 < $CWD/glibc236.patch + make make install PREFIX=/usr DESTDIR=$PKG diff --git a/network/x2goserver/x2goserver.SlackBuild b/network/x2goserver/x2goserver.SlackBuild index caa42c4eaa..28975163ae 100644 --- a/network/x2goserver/x2goserver.SlackBuild +++ b/network/x2goserver/x2goserver.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=x2goserver -VERSION=${VERSION:-20201227_08aa5e6} +VERSION=${VERSION:-20220808_1a6c81b} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/network/x2goserver/x2goserver.info b/network/x2goserver/x2goserver.info index 7dfbf73d3a..9e02b52761 100644 --- a/network/x2goserver/x2goserver.info +++ b/network/x2goserver/x2goserver.info @@ -1,8 +1,8 @@ PRGNAM="x2goserver" -VERSION="20201227_08aa5e6" +VERSION="20220808_1a6c81b" HOMEPAGE="http://www.x2go.org" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/x2goserver-20201227_08aa5e6.tar.xz" -MD5SUM="46aad829313b85218841e1f818244a06" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/x2goserver-20220808_1a6c81b.tar.xz" +MD5SUM="b244703bf997aaf5c427d7698fe3ac0f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="nx-libs perl-Config-Simple perl-File-ReadBackwards perl-DBD-SQLite perl-Capture-Tiny perl-Try-Tiny perl-Unix-Syslog perl-file-basedir perl-Switch" diff --git a/office/evince/Remove-incorrect-args-for-i18n.merge_file.patch b/office/evince/Remove-incorrect-args-for-i18n.merge_file.patch new file mode 100644 index 0000000000..d444af8369 --- /dev/null +++ b/office/evince/Remove-incorrect-args-for-i18n.merge_file.patch @@ -0,0 +1,51 @@ +From: r-value +Date: Wed, 17 Nov 2021 18:22:45 +0800 +Subject: Remove incorrect args for i18n.merge_file + +`i18n.merge_file` has been ignoring positional arguments for +a time and explicitly rejects with error since meson 0.60.0 + +Origin: upstream, 42.0, commit:1060b24d051607f14220f148d2f7723b29897a54 +Bug-Debian: https://bugs.debian.org/1005520 +--- + backend/meson.build | 1 - + data/meson.build | 1 - + meson.build | 1 - + 3 files changed, 3 deletions(-) + +diff --git a/backend/meson.build b/backend/meson.build +index 14629f2..2f972a8 100644 +--- a/backend/meson.build ++++ b/backend/meson.build +@@ -53,7 +53,6 @@ foreach backend, backend_mime_types: backends + ) + + i18n.merge_file( +- appstream, + input: appstream_in, + output: appstream, + po_dir: po_dir, +diff --git a/data/meson.build b/data/meson.build +index 8a308b8..afc3020 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -15,7 +15,6 @@ foreach desktop: desktops + ) + + i18n.merge_file( +- desktop, + type: 'desktop', + input: desktop_in, + output: desktop, +diff --git a/meson.build b/meson.build +index 07fb8ec..0bb5d0f 100644 +--- a/meson.build ++++ b/meson.build +@@ -498,7 +498,6 @@ install_headers( + appdata = ev_namespace + '.appdata.xml' + + i18n.merge_file( +- appdata, + input: appdata + '.in', + output: appdata, + po_dir: po_dir, diff --git a/office/evince/evince.SlackBuild b/office/evince/evince.SlackBuild index 730b0a038a..2319b536e2 100644 --- a/office/evince/evince.SlackBuild +++ b/office/evince/evince.SlackBuild @@ -79,6 +79,8 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +patch -p1 < $CWD/Remove-incorrect-args-for-i18n.merge_file.patch + mkdir build cd build CFLAGS="$SLKCFLAGS" \ diff --git a/office/pstoedit/pstoedit-3.78-mga-uniqueptr.patch b/office/pstoedit/pstoedit-3.78-mga-uniqueptr.patch new file mode 100644 index 0000000000..bca0f760dc --- /dev/null +++ b/office/pstoedit/pstoedit-3.78-mga-uniqueptr.patch @@ -0,0 +1,12 @@ +Index: pstoedit-3.78/src/drvpptx.cpp +=================================================================== +--- pstoedit-3.78/src/drvpptx.cpp ++++ pstoedit-3.78/src/drvpptx.cpp 2022-03-14 21:23:51.156263356 -0700 +@@ -35,6 +35,7 @@ + #include I_stdlib + #include I_iomanip + #include ++#include + #include + + #include diff --git a/office/pstoedit/pstoedit.SlackBuild b/office/pstoedit/pstoedit.SlackBuild index fdc3fef7d8..406c7462f9 100644 --- a/office/pstoedit/pstoedit.SlackBuild +++ b/office/pstoedit/pstoedit.SlackBuild @@ -79,6 +79,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# https://sourceforge.net/p/pstoedit/patches/4/ Thanks to lioh! +patch -p1 < $CWD/pstoedit-3.78-mga-uniqueptr.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -std=c++14" \ ./configure \ diff --git a/office/scribus/harfbuzz-3.0.0.patch b/office/scribus/harfbuzz-3.0.0.patch deleted file mode 100644 index 4dc4f0db4a..0000000000 --- a/office/scribus/harfbuzz-3.0.0.patch +++ /dev/null @@ -1,68 +0,0 @@ -From 1b546978bc4ea0b2a73fbe4d7cf947887e865162 Mon Sep 17 00:00:00 2001 -From: Jean Ghali -Date: Sat, 21 Aug 2021 20:05:43 +0000 -Subject: [PATCH] Use new hb-subset api with harfbuzz >= 2.9.0 in order to - prepeare for removal of legacy API in 3.0 - -git-svn-id: svn://scribus.net/trunk/Scribus@24696 11d20701-8431-0410-a711-e3c959e3b870 ---- - scribus/fonts/sfnt.cpp | 10 +++++++++- - 1 file changed, 9 insertions(+), 1 deletion(-) - -diff --git a/scribus/fonts/sfnt.cpp b/scribus/fonts/sfnt.cpp -index 50777f66e3..fca8b39158 100644 ---- a/scribus/fonts/sfnt.cpp -+++ b/scribus/fonts/sfnt.cpp -@@ -1256,11 +1256,19 @@ namespace sfnt { - - for (int i = 0; i < cids.count(); ++i) - hb_set_add(glyphSet, cids.at(i)); -- -+ -+#if HB_VERSION_ATLEAST(2, 9, 0) -+ uint32_t subsetFlags = (uint32_t) hb_subset_input_get_flags(hbSubsetInput.get()); -+ subsetFlags |= HB_SUBSET_FLAGS_RETAIN_GIDS; -+ subsetFlags &= ~HB_SUBSET_FLAGS_NO_HINTING; -+ subsetFlags |= HB_SUBSET_FLAGS_NAME_LEGACY; -+ hb_subset_input_set_flags(hbSubsetInput.get(), subsetFlags); -+#else - hb_subset_input_set_retain_gids(hbSubsetInput.get(), true); - hb_subset_input_set_drop_hints(hbSubsetInput.get(), false); - #if HB_VERSION_ATLEAST(2, 6, 5) - hb_subset_input_set_name_legacy(hbSubsetInput.get(), true); -+#endif - #endif - - QScopedPointer hbSubsetFace(hb_subset(hbFullFace.get(), hbSubsetInput.get())); - -From 68ec41169eaceea4a6e1d6f359762a191c7e61d5 Mon Sep 17 00:00:00 2001 -From: Jean Ghali -Date: Sun, 19 Sep 2021 11:59:50 +0000 -Subject: [PATCH] #16635: Replace hb_subset, removed in harfbuzz 3.0, by - hb_subset_or_fail - -git-svn-id: svn://scribus.net/trunk/Scribus@24707 11d20701-8431-0410-a711-e3c959e3b870 ---- - scribus/fonts/sfnt.cpp | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/scribus/fonts/sfnt.cpp b/scribus/fonts/sfnt.cpp -index fca8b39158..b3dfa50dc6 100644 ---- a/scribus/fonts/sfnt.cpp -+++ b/scribus/fonts/sfnt.cpp -@@ -1271,9 +1271,15 @@ namespace sfnt { - #endif - #endif - -+#if HB_VERSION_ATLEAST(2, 9, 0) -+ QScopedPointer hbSubsetFace(hb_subset_or_fail(hbFullFace.get(), hbSubsetInput.get())); -+ if (hbSubsetFace.isNull()) -+ return QByteArray(); -+#else - QScopedPointer hbSubsetFace(hb_subset(hbFullFace.get(), hbSubsetInput.get())); - if (hbSubsetFace.isNull()) - return QByteArray(); -+#endif - - QScopedPointer hbSubsetBlob(hb_face_reference_blob(hbSubsetFace.get())); - if (hbSubsetBlob.isNull()) diff --git a/office/scribus/scribus.SlackBuild b/office/scribus/scribus.SlackBuild index c7e17f62e8..fe248d8a2a 100644 --- a/office/scribus/scribus.SlackBuild +++ b/office/scribus/scribus.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scribus -VERSION=${VERSION:-1.5.7} +VERSION=${VERSION:-r25163} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,13 +83,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# thanks archlinux! -patch -p1 < $CWD/harfbuzz-3.0.0.patch - cmake \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DWANT_CPP17=1 \ -DLIB_SUFFIX=${LIBDIRSUFFIX} make diff --git a/office/scribus/scribus.info b/office/scribus/scribus.info index f1b56cd8de..ef09816d55 100644 --- a/office/scribus/scribus.info +++ b/office/scribus/scribus.info @@ -1,8 +1,8 @@ PRGNAM="scribus" -VERSION="1.5.7" +VERSION="r25163" HOMEPAGE="https://www.scribus.net" -DOWNLOAD="https://downloads.sourceforge.net/scribus/scribus-1.5.7.tar.xz" -MD5SUM="4d0c63cfdade8a9abf225a4415e43694" +DOWNLOAD="https://ponce.cc/slackware/sources/repo/scribus-r25163.tar.xz" +MD5SUM="32a903d888922c1cb652cf274bb2ef93" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/python/alabaster/alabaster.SlackBuild b/python/alabaster/alabaster.SlackBuild index 0278a67414..0292c5f96c 100644 --- a/python/alabaster/alabaster.SlackBuild +++ b/python/alabaster/alabaster.SlackBuild @@ -81,10 +81,6 @@ find -L . \ python setup.py install --root=$PKG -if python3 -c 'import sys' 2>/dev/null; then - python3 setup.py install --root=$PKG -fi - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/cppy/cppy.SlackBuild b/python/cppy/cppy.SlackBuild index 342f26f47b..b828593ef7 100644 --- a/python/cppy/cppy.SlackBuild +++ b/python/cppy/cppy.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cppy -VERSION=${VERSION:-1.2.0} +VERSION=${VERSION:-1.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/python/cppy/cppy.info b/python/cppy/cppy.info index 627bf0eea6..98e53b3276 100644 --- a/python/cppy/cppy.info +++ b/python/cppy/cppy.info @@ -1,8 +1,8 @@ PRGNAM="cppy" -VERSION="1.2.0" +VERSION="1.2.1" HOMEPAGE="https://github.com/nucleic/cppy" -DOWNLOAD="https://github.com/nucleic/cppy/releases/download/1.2.0/cppy-1.2.0.tar.gz" -MD5SUM="d5790863221465f259f751252a259654" +DOWNLOAD="https://github.com/nucleic/cppy/releases/download/1.2.1/cppy-1.2.1.tar.gz" +MD5SUM="7c1f825c43dd66454440932a35b9969c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/python/imagesize/imagesize.SlackBuild b/python/imagesize/imagesize.SlackBuild index cf4c682cd7..a052c645d5 100644 --- a/python/imagesize/imagesize.SlackBuild +++ b/python/imagesize/imagesize.SlackBuild @@ -81,10 +81,6 @@ find -L . \ python setup.py install --root=$PKG -if python3 -c 'import sys' 2>/dev/null; then - python3 setup.py install --root=$PKG -fi - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/pikepdf/pikepdf.SlackBuild b/python/pikepdf/pikepdf.SlackBuild index ffd52a04d8..ff201dfdb7 100644 --- a/python/pikepdf/pikepdf.SlackBuild +++ b/python/pikepdf/pikepdf.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pikepdf -VERSION=${VERSION:-5.3.2} +VERSION=${VERSION:-6.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/python/pikepdf/pikepdf.info b/python/pikepdf/pikepdf.info index 91c4fca5d9..a1e50d8cf4 100644 --- a/python/pikepdf/pikepdf.info +++ b/python/pikepdf/pikepdf.info @@ -1,8 +1,8 @@ PRGNAM="pikepdf" -VERSION="5.3.2" +VERSION="6.0.1" HOMEPAGE="https://github.com/pikepdf/pikepdf" -DOWNLOAD="https://pypi.python.org/packages/source/p/pikepdf/pikepdf-5.3.2.tar.gz" -MD5SUM="367ed61eeff72e190c58eb8bc1f882a7" +DOWNLOAD="https://pypi.python.org/packages/source/p/pikepdf/pikepdf-6.0.1.tar.gz" +MD5SUM="38b50358ea6c38212dc99bd6944e165c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="lxml pybind11 python3-deprecation python3-setuptools_scm_git_archive" diff --git a/python/python-importlib_metadata/README b/python/python-importlib_metadata/README deleted file mode 100644 index 628ad7454d..0000000000 --- a/python/python-importlib_metadata/README +++ /dev/null @@ -1,4 +0,0 @@ -importlib_metadata is a library which provides an API for accessing -an installed package's metadata, such as its entry points or its -top-level name. This functionality intends to replace most uses of -pkg_resources entry point API and metadata API. diff --git a/python/python-importlib_metadata/python-importlib_metadata.SlackBuild b/python/python-importlib_metadata/python-importlib_metadata.SlackBuild deleted file mode 100644 index f586f1a5b3..0000000000 --- a/python/python-importlib_metadata/python-importlib_metadata.SlackBuild +++ /dev/null @@ -1,100 +0,0 @@ -#!/bin/bash - -# Slackware build script for python-importlib_metadata - -# Copyright 2019-2020 Benjamin Trigona-Harany -# Copyright 2022 Dimitris Zlatanidis Orestiada, Greece -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=python-importlib_metadata -VERSION=${VERSION:-4.10.1} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -SRCNAM=importlib_metadata - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -python3 setup.py install --root=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README.rst \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/python/python-importlib_metadata/python-importlib_metadata.info b/python/python-importlib_metadata/python-importlib_metadata.info deleted file mode 100644 index 0203cc4a5b..0000000000 --- a/python/python-importlib_metadata/python-importlib_metadata.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="python-importlib_metadata" -VERSION="4.10.1" -HOMEPAGE="https://importlib-metadata.readthedocs.io/" -DOWNLOAD="https://files.pythonhosted.org/packages/f8/41/8ffb059708359ea14a3ec74a99a2bf0cd44a0c983a0c480d9eb7a69438bb/importlib_metadata-4.10.1.tar.gz" -MD5SUM="2b476f505bc3bf934e2b2221d4fb4a44" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="python-zipp" -MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" diff --git a/python/python-importlib_metadata/slack-desc b/python/python-importlib_metadata/slack-desc deleted file mode 100644 index a14e1318e8..0000000000 --- a/python/python-importlib_metadata/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -python-importlib_metadata: python-importlib_metadata (Python package metadata) -python-importlib_metadata: -python-importlib_metadata: importlib_metadata is a library which provides an API for accessing -python-importlib_metadata: an installed package's metadata, such as its entry points or its -python-importlib_metadata: top-level name. This functionality intends to replace most uses of -python-importlib_metadata: pkg_resources entry point API and metadata API. -python-importlib_metadata: -python-importlib_metadata: -python-importlib_metadata: -python-importlib_metadata: -python-importlib_metadata: diff --git a/python/python-pcapy/python-pcapy.SlackBuild b/python/python-pcapy/python-pcapy.SlackBuild index fd1bd93670..eafdadf75e 100644 --- a/python/python-pcapy/python-pcapy.SlackBuild +++ b/python/python-pcapy/python-pcapy.SlackBuild @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python-pcapy -SRCNAM=pcapy -VERSION=${VERSION:-0.11.4} +SRCNAM=pcapy-ng +VERSION=${VERSION:-1.0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/python/python-pcapy/python-pcapy.info b/python/python-pcapy/python-pcapy.info index abea62f2a2..3956daa295 100644 --- a/python/python-pcapy/python-pcapy.info +++ b/python/python-pcapy/python-pcapy.info @@ -1,8 +1,8 @@ PRGNAM="python-pcapy" -VERSION="0.11.4" +VERSION="1.0.9" HOMEPAGE="https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy" -DOWNLOAD="https://github.com/CoreSecurity/pcapy/archive/0.11.4/pcapy-0.11.4.tar.gz" -MD5SUM="ccc0ece6114a095800c8764f85451677" +DOWNLOAD="https://github.com/stamparm/pcapy-ng/archive/1.0.9/pcapy-ng-1.0.9.tar.gz" +MD5SUM="5f17398bbe18c0679e0ed2d07c470a44" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/python/python-zipp/README b/python/python-zipp/README deleted file mode 100644 index 6498203e6d..0000000000 --- a/python/python-zipp/README +++ /dev/null @@ -1,2 +0,0 @@ -A pathlib-compatible Zipfile object wrapper. A backport of the Path -object. diff --git a/python/python-zipp/python-zipp.SlackBuild b/python/python-zipp/python-zipp.SlackBuild deleted file mode 100644 index 3f39269b22..0000000000 --- a/python/python-zipp/python-zipp.SlackBuild +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash - -# Slackware build script for python-zipp - -# Copyright 2019-2020 Benjamin Trigona-Harany -# Copyright 2022 Dimitris Zlatanidis Orestiada, Greece -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=python-zipp -VERSION=${VERSION:-3.8.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -SRCNAM=zipp - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cp $CWD/setup.py $SRCNAM-$VERSION -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -sed -i "s,^name =.*$,&\nversion = $VERSION," setup.cfg - -python3 setup.py install --root=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.rst LICENSE $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/python/python-zipp/python-zipp.info b/python/python-zipp/python-zipp.info deleted file mode 100644 index 6fb99df1bd..0000000000 --- a/python/python-zipp/python-zipp.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="python-zipp" -VERSION="3.8.0" -HOMEPAGE="https://github.com/jaraco/zipp" -DOWNLOAD="https://files.pythonhosted.org/packages/cc/3c/3e8c69cd493297003da83f26ccf1faea5dd7da7892a0a7c965ac3bcba7bf/zipp-3.8.0.tar.gz" -MD5SUM="8864ff5ed01cd28755cc87f1443dbc67" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" diff --git a/python/python-zipp/setup.py b/python/python-zipp/setup.py deleted file mode 100644 index 0ae4555937..0000000000 --- a/python/python-zipp/setup.py +++ /dev/null @@ -1,5 +0,0 @@ -from setuptools import setup - - -if __name__ == '__main__': - setup() diff --git a/python/python-zipp/slack-desc b/python/python-zipp/slack-desc deleted file mode 100644 index 0445035132..0000000000 --- a/python/python-zipp/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -python-zipp: python-zipp (pathlib-compatible Zipfile object wrapper) -python-zipp: -python-zipp: A pathlib-compatible Zipfile object wrapper. A backport of the Path -python-zipp: object. -python-zipp: -python-zipp: -python-zipp: -python-zipp: -python-zipp: -python-zipp: -python-zipp: diff --git a/python/python3-babel/README b/python/python3-babel/README deleted file mode 100644 index 292ad0fb52..0000000000 --- a/python/python3-babel/README +++ /dev/null @@ -1,10 +0,0 @@ -babel (python internationalization tools) - -Babel is a collection of tools for internationalizing Python apps. -It's composed of two major parts: -- tools to build and work with gettext message catalogs; -- a Python interface to the CLDR (Common Locale Data Repository), - providing access to various locale display names, localized number - and date formatting, etc. - -The pytz dependency must be built with optional Python 3 support. diff --git a/python/python3-babel/python3-babel.SlackBuild b/python/python3-babel/python3-babel.SlackBuild deleted file mode 100644 index 4b5aaaf07e..0000000000 --- a/python/python3-babel/python3-babel.SlackBuild +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash - -# Slackware build script for python3-babel -# -# Copyright 2021 Yth | Pont-en-Royans, France | yth@ythogtha.org -# Copyright 2019-2021 Benjamin Trigona-Harany -# Copyright 2013-2018 Matteo Bernardini , Pisa, Italy -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=python3-babel -VERSION=${VERSION:-2.10.1} -CLDRVER=${CLDRVER:-41.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -SRCNAM=babel - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -sed -i "s/getiterator/iter/" scripts/import_cldr.py # support Python 3.9 -sed -i "s/elem.getchildren()/list(elem)/" scripts/import_cldr.py # support Python 3.9 -ln -s $CWD/cldr-common-$CLDRVER.zip cldr/ -python3 setup.py import_cldr -python3 setup.py install --root=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS* CHANGES* CONTRIBUTING* LICENSE* README* \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/python/python3-babel/python3-babel.info b/python/python3-babel/python3-babel.info deleted file mode 100644 index ccc177ac0e..0000000000 --- a/python/python3-babel/python3-babel.info +++ /dev/null @@ -1,12 +0,0 @@ -PRGNAM="python3-babel" -VERSION="2.10.1" -HOMEPAGE="http://babel.pocoo.org/" -DOWNLOAD="https://github.com/python-babel/babel/archive/v2.10.1/babel-2.10.1.tar.gz \ - http://unicode.org/Public/cldr/41/cldr-common-41.0.zip" -MD5SUM="9483ad57043776324459e7f000aec7f0 \ - d346710d2beb5133bdb1d14f966ae2cd" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="pytz" -MAINTAINER="Yth - Arnaud" -EMAIL="yth@ythogtha.org" diff --git a/python/python3-babel/slack-desc b/python/python3-babel/slack-desc deleted file mode 100644 index 3da4910178..0000000000 --- a/python/python3-babel/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -python3-babel: python3-babel (python internationalization tools) -python3-babel: -python3-babel: Babel is a collection of tools for internationalizing Python apps. -python3-babel: It's composed of two major parts: -python3-babel: - tools to build and work with gettext message catalogs; -python3-babel: - a Python interface to the CLDR (Common Locale Data Repository), -python3-babel: providing access to various locale display names, localized number -python3-babel: and date formatting, etc. -python3-babel: -python3-babel: homepage: http://babel.edgewall.org/ -python3-babel: diff --git a/python/python3-kiwisolver/README b/python/python3-kiwisolver/README index 33dd7e0d0c..539a84662d 100644 --- a/python/python3-kiwisolver/README +++ b/python/python3-kiwisolver/README @@ -8,6 +8,3 @@ improvement. Memory savings are consistently > 5x. This is the Python 3 version of kiwisolver and will coexist with SBo's kiwisolver package. - -python3-kiwisolver 1.4.1 is the last possible version for Slackware -15.0. Newer versions would require a newer python-setuptools. diff --git a/python/python3-kiwisolver/python3-kiwisolver.SlackBuild b/python/python3-kiwisolver/python3-kiwisolver.SlackBuild index dc508a2611..d39c213ef2 100644 --- a/python/python3-kiwisolver/python3-kiwisolver.SlackBuild +++ b/python/python3-kiwisolver/python3-kiwisolver.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-kiwisolver SRCNAM=kiwisolver -VERSION=${VERSION:-1.4.1} +VERSION=${VERSION:-1.4.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,7 +68,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root $PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/python3-kiwisolver/python3-kiwisolver.info b/python/python3-kiwisolver/python3-kiwisolver.info index aea7dde3da..fb81796848 100644 --- a/python/python3-kiwisolver/python3-kiwisolver.info +++ b/python/python3-kiwisolver/python3-kiwisolver.info @@ -1,10 +1,10 @@ PRGNAM="python3-kiwisolver" -VERSION="1.4.1" +VERSION="1.4.4" HOMEPAGE="https://github.com/nucleic/kiwi" -DOWNLOAD="https://github.com/nucleic/kiwi/releases/download/1.4.1/kiwisolver-1.4.1.tar.gz" -MD5SUM="a9ad45ee855ad59bb4625a4daa76ad51" +DOWNLOAD="https://github.com/nucleic/kiwi/releases/download/1.4.4/kiwisolver-1.4.4.tar.gz" +MD5SUM="34796908455c3b23c889439b541e424b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="cppy wheel" +REQUIRES="cppy python3-build python3-installer wheel" MAINTAINER="Isaac Yu" EMAIL="isaacyu1@isaacyu1.com" diff --git a/python/pytz/pytz.SlackBuild b/python/pytz/pytz.SlackBuild index 2d4da870cc..d4cbd825a3 100644 --- a/python/pytz/pytz.SlackBuild +++ b/python/pytz/pytz.SlackBuild @@ -66,7 +66,6 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG -python3 setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/snowballstemmer/snowballstemmer.SlackBuild b/python/snowballstemmer/snowballstemmer.SlackBuild index 00f83e6019..acf82fea9a 100644 --- a/python/snowballstemmer/snowballstemmer.SlackBuild +++ b/python/snowballstemmer/snowballstemmer.SlackBuild @@ -80,9 +80,6 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/system/audit/audit.SlackBuild b/system/audit/audit.SlackBuild index baf85c9b38..45aca7c2a1 100644 --- a/system/audit/audit.SlackBuild +++ b/system/audit/audit.SlackBuild @@ -79,6 +79,9 @@ find -L . \ # Init should check /etc/rc.d/rc.auditd.conf instead of /etc/sysconfig/auditd patch -p1 < $CWD/audit-2.3.6-sysconfig.diff +# python binding are disabled ATM, see +# https://listman.redhat.com/archives/linux-audit/2022-February/msg00085.html +# thanks to fourtysixandtwo for the pointers CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ ./configure \ @@ -94,6 +97,8 @@ CFLAGS="$SLKCFLAGS" \ --enable-systemd=no \ --with-libcap-ng=yes \ --enable-gssapi-krb5=yes \ + --without-python \ + --without-python3 \ --build=$ARCH-slackware-linux make diff --git a/system/conky/conky.SlackBuild b/system/conky/conky.SlackBuild index 3ea755f096..d3905a1c61 100644 --- a/system/conky/conky.SlackBuild +++ b/system/conky/conky.SlackBuild @@ -102,7 +102,7 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DDOC_PATH=/usr/doc/$PRGNAM-$VERSION \ - -DMAINTAINER_MODE=ON \ + -DMAINTAINER_MODE=OFF \ -DBUILD_DOCS=OFF \ -DBUILD_EXTRAS=ON \ -DBUILD_XDBE=ON \ diff --git a/system/osinfo-db-tools/osinfo-db-tools.SlackBuild b/system/osinfo-db-tools/osinfo-db-tools.SlackBuild index 96f3f7b6c5..1418e79bc9 100644 --- a/system/osinfo-db-tools/osinfo-db-tools.SlackBuild +++ b/system/osinfo-db-tools/osinfo-db-tools.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for osinfo-db-tools -# Copyright 2016-2021 Matteo Bernardini , Pisa, Italy +# Copyright 2016-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=osinfo-db-tools -VERSION=${VERSION:-1.9.0} +VERSION=${VERSION:-1.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/system/osinfo-db-tools/osinfo-db-tools.info b/system/osinfo-db-tools/osinfo-db-tools.info index c2ed3c03d1..ad699ecdc1 100644 --- a/system/osinfo-db-tools/osinfo-db-tools.info +++ b/system/osinfo-db-tools/osinfo-db-tools.info @@ -1,8 +1,8 @@ PRGNAM="osinfo-db-tools" -VERSION="1.9.0" +VERSION="1.10.0" HOMEPAGE="http://libosinfo.org" -DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-tools-1.9.0.tar.xz" -MD5SUM="99374514e84ef223c9d9db0463982a1b" +DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-tools-1.10.0.tar.xz" +MD5SUM="f0c83772ce612b5d0befb77a8d6f309b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/system/osinfo-db/osinfo-db.SlackBuild b/system/osinfo-db/osinfo-db.SlackBuild index e2ef246535..df13c66bdb 100644 --- a/system/osinfo-db/osinfo-db.SlackBuild +++ b/system/osinfo-db/osinfo-db.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for osinfo-db -# Copyright 2016-2021 Matteo Bernardini , Pisa, Italy +# Copyright 2016-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=osinfo-db -VERSION=${VERSION:-20211216} +VERSION=${VERSION:-20220727} SLVERSION=${SLVERSION:-20220214} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/system/osinfo-db/osinfo-db.info b/system/osinfo-db/osinfo-db.info index 9e4b47bb02..3a0bb17fbe 100644 --- a/system/osinfo-db/osinfo-db.info +++ b/system/osinfo-db/osinfo-db.info @@ -1,9 +1,9 @@ PRGNAM="osinfo-db" -VERSION="20211216" +VERSION="20220727" HOMEPAGE="http://libosinfo.org" -DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-20211216.tar.xz \ +DOWNLOAD="https://releases.pagure.org/libosinfo/osinfo-db-20220727.tar.xz \ https://harrier.slackbuilds.org/misc/osinfo-db-slackware-20220214.tar.xz" -MD5SUM="1a67c27f8d0f922f479876d973cc1fc3 \ +MD5SUM="e3babe02a25748eaab0b7a37c9ed18ba \ 65ed4d991bdab6ab00bc34bcbb5d16ff" DOWNLOAD_x86_64="" MD5SUM_x86_64="" diff --git a/system/vice/vice.SlackBuild b/system/vice/vice.SlackBuild index 6142796d34..ed3a5ace8e 100644 --- a/system/vice/vice.SlackBuild +++ b/system/vice/vice.SlackBuild @@ -85,6 +85,7 @@ set -e # ffmpeg is included in the base OS on post-14.2 -current, but leave # this here in case someone's doing something clever. [ -x /usr/bin/ffmpeg ] && ffmpeg="--enable-external-ffmpeg" +ffmpeg="" # ...but with ffmpeg 5.x is broken ATM # Anticipating 15.0's pure-alsa-system if [ "${PULSE:-yes}" != "yes" ]; then diff --git a/system/virt-manager/Add-Slackware-to-OS-choices.patch b/system/virt-manager/Add-Slackware-to-OS-choices.patch index 0a5260206f..6b5ccd1a9d 100644 --- a/system/virt-manager/Add-Slackware-to-OS-choices.patch +++ b/system/virt-manager/Add-Slackware-to-OS-choices.patch @@ -49,14 +49,3 @@ diff -Nur virt-manager-2.2.0.orig/virtinst/install/urldetect.py virt-manager-2.2 class _SuseDistro(_RHELDistro): PRETTY_NAME = None _suse_regex = [] -diff -Nur virt-manager-2.2.0.orig/virtinst/osdict.py virt-manager-2.2.0/virtinst/osdict.py ---- virt-manager-2.2.0.orig/virtinst/osdict.py 2019-06-17 00:20:11.000000000 -0500 -+++ virt-manager-2.2.0/virtinst/osdict.py 2019-07-03 02:11:59.208399622 -0500 -@@ -146,6 +146,7 @@ - "rhel5": "rhel5.0", - "rhel6": "rhel6.0", - "rhel7": "rhel7.0", -+ "slackware": "slackware14.2", - "ubuntuhardy": "ubuntu8.04", - "ubuntuintrepid": "ubuntu8.10", - "ubuntujaunty": "ubuntu9.04", diff --git a/system/virt-manager/virt-manager.SlackBuild b/system/virt-manager/virt-manager.SlackBuild index 9514fa6914..047e03eed7 100644 --- a/system/virt-manager/virt-manager.SlackBuild +++ b/system/virt-manager/virt-manager.SlackBuild @@ -9,7 +9,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=virt-manager -VERSION=${VERSION:-3.2.0} +VERSION=${VERSION:-4.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/system/virt-manager/virt-manager.info b/system/virt-manager/virt-manager.info index 5f496889a2..033d35106b 100644 --- a/system/virt-manager/virt-manager.info +++ b/system/virt-manager/virt-manager.info @@ -1,8 +1,8 @@ PRGNAM="virt-manager" -VERSION="3.2.0" +VERSION="4.1.0" HOMEPAGE="http://virt-manager.org/" -DOWNLOAD="https://virt-manager.org/download/sources/virt-manager/virt-manager-3.2.0.tar.gz" -MD5SUM="a87507223c32d15eb12e1754404061dc" +DOWNLOAD="https://virt-manager.org/download/sources/virt-manager/virt-manager-4.1.0.tar.gz" +MD5SUM="8bf86bcc7e43a956ff94ebdaf4d7d399" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libosinfo libvirt-glib libvirt-python gtk-vnc spice-gtk" diff --git a/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild b/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild index 151b035138..67fa732c32 100644 --- a/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild +++ b/system/virtualbox-extension-pack/virtualbox-extension-pack.SlackBuild @@ -4,7 +4,7 @@ # Originally written by Vliegendehuiskat, vliegendehuiskat [at] gmail [dot] com -# Copyright 2014-2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2014-2023 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=virtualbox-extension-pack -VERSION=${VERSION:-6.1.34} +VERSION=${VERSION:-6.1.40} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/system/virtualbox-extension-pack/virtualbox-extension-pack.info b/system/virtualbox-extension-pack/virtualbox-extension-pack.info index a889e8faa7..da66a2e01b 100644 --- a/system/virtualbox-extension-pack/virtualbox-extension-pack.info +++ b/system/virtualbox-extension-pack/virtualbox-extension-pack.info @@ -1,8 +1,8 @@ PRGNAM="virtualbox-extension-pack" -VERSION="6.1.34" +VERSION="6.1.40" HOMEPAGE="https://www.virtualbox.org" -DOWNLOAD="http://download.virtualbox.org/virtualbox/6.1.34/Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack" -MD5SUM="541678626288b65188c0c0b641781c82" +DOWNLOAD="http://download.virtualbox.org/virtualbox/6.1.40/Oracle_VM_VirtualBox_Extension_Pack-6.1.40.vbox-extpack" +MD5SUM="9838a78b9dbd844265657db0c0ecde97" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild index 62547db5cb..b596103ee1 100644 --- a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild +++ b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for virtualbox-kernel -# Copyright 2008-2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2008-2023 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=virtualbox-kernel -VERSION=${VERSION:-6.1.34} +VERSION=${VERSION:-6.1.40} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/system/virtualbox-kernel/virtualbox-kernel.info b/system/virtualbox-kernel/virtualbox-kernel.info index de0a482cdb..a078e4760c 100644 --- a/system/virtualbox-kernel/virtualbox-kernel.info +++ b/system/virtualbox-kernel/virtualbox-kernel.info @@ -1,10 +1,10 @@ PRGNAM="virtualbox-kernel" -VERSION="6.1.34" +VERSION="6.1.40" HOMEPAGE="https://www.virtualbox.org" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://sources.liwjatan.org/virtualbox-kernel/virtualbox-kernel-6.1.34.tar.xz" -MD5SUM_x86_64="d0df15115a163ec658497c537a792350" +DOWNLOAD_x86_64="https://ponce.cc/slackware/sources/repo/virtualbox/virtualbox-kernel-6.1.40.tar.xz" +MD5SUM_x86_64="26496071033d31f6ead1a67e304181a3" REQUIRES="" MAINTAINER="Heinz Wiesinger" EMAIL="pprkut@slackbuilds.org" diff --git a/system/virtualbox/vboxdrv.sh-setup.diff b/system/virtualbox/vboxdrv.sh-setup.diff index b73771ebaf..3c948f9d34 100644 --- a/system/virtualbox/vboxdrv.sh-setup.diff +++ b/system/virtualbox/vboxdrv.sh-setup.diff @@ -1,5 +1,5 @@ ---- vboxdrv.sh.orig 2021-10-18 19:58:10.000000000 +0200 -+++ vboxdrv.sh 2021-10-30 20:36:29.483575169 +0200 +--- vboxdrv.sh.orig 2022-10-18 19:12:50.063953481 +0200 ++++ vboxdrv.sh 2022-10-18 19:16:35.153942968 +0200 @@ -61,23 +61,8 @@ export USERNAME export USER=$USERNAME @@ -24,7 +24,7 @@ if test -u "${VIRTUALBOX}"; then GROUP=root DEVICE_MODE=0600 -@@ -148,131 +133,12 @@ +@@ -173,131 +158,12 @@ echo "${1}" >> "${LOG}" } @@ -156,7 +156,7 @@ # Returns path to module file as seen by modinfo(8) or empty string. module_path() { -@@ -415,8 +281,6 @@ +@@ -532,8 +398,6 @@ mkdir -p -m 0750 /dev/vboxusb 2>/dev/null chown root:vboxusers /dev/vboxusb 2>/dev/null fi @@ -165,7 +165,7 @@ succ_msg "VirtualBox services started" } -@@ -497,102 +361,10 @@ +@@ -614,153 +478,10 @@ fi } @@ -203,6 +203,15 @@ { - begin_msg "Building VirtualBox kernel modules" console - log "Building the main VirtualBox module." +- +- # Detect if kernel was built with clang. +- unset LLVM +- vbox_cc_is_clang=$(kernel_get_config_opt "CONFIG_MODULE_SIG_HASH") +- if test "${vbox_cc_is_clang}" = "y"; then +- log "Using clang compiler." +- export LLVM=1 +- fi +- - if ! myerr=`$BUILDINTMP \ - --save-module-symvers /tmp/vboxdrv-Module.symvers \ - --module-source "$MODULE_SRC/vboxdrv" \ @@ -245,31 +254,73 @@ - depmod -a - sync - succ_msg "VirtualBox kernel modules built" -- # Secure boot on Ubuntu and Debian. -- if test -n "$HAVE_SEC_BOOT" && -- type update-secureboot-policy >/dev/null 2>&1; then -- SHIM_NOTRIGGER=y update-secureboot-policy --new-key -- fi -- if test -f "$DEB_PUB_KEY" && test -f "$DEB_PRIV_KEY"; then -- HAVE_DEB_KEY=true +- +- # Secure boot on Ubuntu, Debian and Oracle Linux. +- if test -n "$HAVE_SEC_BOOT"; then +- begin_msg "Signing VirtualBox kernel modules" console +- +- # Generate new signing key if needed. +- [ -n "$HAVE_UPDATE_SECUREBOOT_POLICY_TOOL" ] && SHIM_NOTRIGGER=y update-secureboot-policy --new-key +- +- # Check if signing keys are in place. +- if test ! -f "$DEB_PUB_KEY" || ! test -f "$DEB_PRIV_KEY"; then +- # update-secureboot-policy tool present in the system, but keys were not generated. +- [ -n "$HAVE_UPDATE_SECUREBOOT_POLICY_TOOL" ] && fail_msg " +- +-update-secureboot-policy tool does not generate signing keys +-in your distribution, see below on how to generate them manually +-" +- +- # update-secureboot-policy not present in the system, recommend generate keys manually. +- failure " +- +-System is running in Secure Boot mode, however your distribution +-does not provide tools for automatic generation of keys needed for +-modules signing. Please consider to generate and enroll them manually: +- +- sudo mkdir -p /var/lib/shim-signed/mok +- sudo openssl req -nodes -new -x509 -newkey rsa:2048 -outform DER -keyout $DEB_PRIV_KEY -out $DEB_PUB_KEY +- sudo sudo mokutil --import $DEB_PUB_KEY +- sudo reboot +- +-Restart \"rcvboxdrv setup\" after system is rebooted +-" +- fi +- +- # Check if signing tool is available. +- [ -n "$SIGN_TOOL" ] || failure "Unable to find signing tool" +- +- # Get kernel signature hash algorithm from kernel config and validate it. +- sig_hashalgo=$(kernel_module_sig_hash) +- [ "$(module_sig_hash_supported $sig_hashalgo)" = "1" ] \ +- || failure "Unsupported kernel signature hash algorithm $sig_hashalgo" +- +- # Sign modules. - for i in $MODULE_LIST; do -- kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv \ -- /var/lib/shim-signed/mok/MOK.der \ -- /lib/modules/"$KERN_VER"/misc/"$i".ko +- "$SIGN_TOOL" "$sig_hashalgo" "$DEB_PRIV_KEY" "$DEB_PUB_KEY" \ +- /lib/modules/"$KERN_VER"/misc/"$i".ko 2>/dev/null || failure "Unable to sign $i.ko" - done -- # update-secureboot-policy "expects" DKMS modules. -- # Work around this and talk to the authors as soon -- # as possible to fix it. -- mkdir -p /var/lib/dkms/vbox-temp -- update-secureboot-policy --enroll-key 2>/dev/null || -- begin_msg "Failed to enroll secure boot key." console -- rmdir -p /var/lib/dkms/vbox-temp 2>/dev/null +- +- # Enroll signing key if needed. +- if test -n "$HAVE_UPDATE_SECUREBOOT_POLICY_TOOL"; then +- # update-secureboot-policy "expects" DKMS modules. +- # Work around this and talk to the authors as soon +- # as possible to fix it. +- mkdir -p /var/lib/dkms/vbox-temp +- update-secureboot-policy --enroll-key 2>/dev/null || +- begin_msg "Failed to enroll secure boot key." console +- rmdir -p /var/lib/dkms/vbox-temp 2>/dev/null +- +- # Indicate that key has been enrolled and reboot is needed. +- HAVE_DEB_KEY=true +- fi +- succ_msg "Signing completed" - fi -+ echo "Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead." ++ echo "Not implemented! Please use the virtualbox-kernel.SlackBuild available at SlackBuilds.org instead." } dmnstatus() -@@ -642,20 +414,7 @@ +@@ -810,20 +531,7 @@ stop && start ;; setup) @@ -291,3 +342,12 @@ ;; force-reload) stop +@@ -833,7 +541,7 @@ + dmnstatus + ;; + *) +- echo "Usage: $0 {start|stop|stop_vms|restart|setup|cleanup|force-reload|status}" ++ echo "Usage: $0 {start|stop|stop_vms|restart|setup|force-reload|status}" + exit 1 + esac + diff --git a/system/virtualbox/virtualbox-VBoxR0.diff b/system/virtualbox/virtualbox-VBoxR0.diff deleted file mode 100644 index d7fc0064b5..0000000000 --- a/system/virtualbox/virtualbox-VBoxR0.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- Config.kmk 2022-04-21 17:20:08.982249736 -0500 -+++ Config.kmk 2022-04-21 17:23:36.276570980 -0500 -@@ -4502,11 +4502,14 @@ ifeq ($(VBOX_LDR_FMT),elf) - TEMPLATE_VBoxR0_TOOL = $(VBOX_GCC_TOOL) - TEMPLATE_VBoxR0_CFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) \ - $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions \ -- $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK) -+ $(VBOX_GCC_fno-stack-protector) -fno-common -ffreestanding $(VBOX_GCC_fvisibility-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK) - TEMPLATE_VBoxR0_CXXFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) \ - $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions \ - $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \ - -fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK) -+if $(VBOX_GCC_VERSION_CC) >= 40500 # 4.1.2 complains, 4.5.2 is okay, didn't check which version inbetween made it okay with g++. -+TEMPLATE_VBoxR0_CXXFLAGS = -ffreestanding -+endif - TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding - TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables - TEMPLATE_VBoxR0_CXXFLAGS.freebsd = -ffreestanding diff --git a/system/virtualbox/virtualbox.SlackBuild b/system/virtualbox/virtualbox.SlackBuild index 7bf86e5dc3..1f5a3fe164 100644 --- a/system/virtualbox/virtualbox.SlackBuild +++ b/system/virtualbox/virtualbox.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for virtualbox -# Copyright 2008-2022 Heinz Wiesinger, Amsterdam, The Netherlands +# Copyright 2008-2023 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2008 Mauro Giachero # All rights reserved. # @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=virtualbox SRCNAM=VirtualBox -VERSION=${VERSION:-6.1.34} +VERSION=${VERSION:-6.1.40} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -127,11 +127,8 @@ patch -d src/VBox/Installer/linux -i $CWD/vboxdrv.sh-setup.diff # Fix wrong path to rdesktop-vrdp-keymaps patch -p1 -i $CWD/006-rdesktop-vrdp-keymap-path.patch -# Fix "Unable to locate imported symbol 'memset'" error. -patch -i $CWD/virtualbox-VBoxR0.diff - -# Skip python2 detection and cheat about python-3.10 support -sed -i 's|python2.7 python2.6 |python3.10 |' ./configure +# Skip python2 detection +sed -i 's|python2.7 python2.6 ||' ./configure # Use our CFLAGS sed -i "s|CXX_FLAGS=\"\"|CXX_FLAGS=\"$SLKCFLAGS -std=c++11\"|" ./configure diff --git a/system/virtualbox/virtualbox.info b/system/virtualbox/virtualbox.info index 44c83a545c..6378cbda52 100644 --- a/system/virtualbox/virtualbox.info +++ b/system/virtualbox/virtualbox.info @@ -1,16 +1,16 @@ PRGNAM="virtualbox" -VERSION="6.1.34" +VERSION="6.1.40" HOMEPAGE="https://www.virtualbox.org" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="http://download.virtualbox.org/virtualbox/6.1.34/VirtualBox-6.1.34.tar.bz2 \ - http://download.virtualbox.org/virtualbox/6.1.34/VBoxGuestAdditions_6.1.34.iso \ - http://download.virtualbox.org/virtualbox/6.1.34/UserManual.pdf \ - http://download.virtualbox.org/virtualbox/6.1.34/SDKRef.pdf" -MD5SUM_x86_64="5ee5e141a7bd6251420e7d7a2cc76206 \ - 16cfa062d19f4578f6bd24648b99eca4 \ - 3359ceb79c7c822c27932d07ba81ff29 \ - c19debd43e6c5667a7ad6a1c1ce4c552" +DOWNLOAD_x86_64="http://download.virtualbox.org/virtualbox/6.1.40/VirtualBox-6.1.40.tar.bz2 \ + http://download.virtualbox.org/virtualbox/6.1.40/VBoxGuestAdditions_6.1.40.iso \ + http://download.virtualbox.org/virtualbox/6.1.40/UserManual.pdf \ + http://download.virtualbox.org/virtualbox/6.1.40/SDKRef.pdf" +MD5SUM_x86_64="19439dbfbd13bb8b9f1151052a432d8b \ + 5299c1371e7ba61150a60954a4453149 \ + dfc7e608a29bb695953fe28a15175413 \ + 84c8a28664309130f4c20a0b03cba8e7" REQUIRES="acpica virtualbox-kernel" MAINTAINER="Heinz Wiesinger" EMAIL="pprkut@slackbuilds.org" diff --git a/system/xf86-video-qxl/buildfix.diff b/system/xf86-video-qxl/buildfix.diff new file mode 100644 index 0000000000..d1a8d7e6f2 --- /dev/null +++ b/system/xf86-video-qxl/buildfix.diff @@ -0,0 +1,101 @@ +From 4b083ede3c4a827a84295ff223e34ee3c2e581b2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= + +Date: Sat, 28 Aug 2021 15:38:40 +0200 +Subject: [PATCH] Fix a build error with Xorg master +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Use xf86ReturnOptValBool() in get_bool_option() instead of +options[option_index].value.bool to fix a compiler error with +current Xorg xserver master branch. + +Also use xf86GetOptValInteger() in get_int_option() and +xf86GetOptValString() in get_str_option() for consistency. + +The change causes a slight performance drop during option parsing +because the passed-in index_value is no longer used as an index +into the options array. + +Instead, it's used as a token now for the standard option getter +functions which works since the index_value to the get_*_option() +functions are identical to the value of options[n].token in the +passed-in OptionInfoRec array. + +Also rename "int option_index" to "int token" for clarity in all +three functions. + +Signed-off-by: Zoltán Böszörményi +--- + src/qxl_option_helpers.c | 13 +++++++------ + src/qxl_option_helpers.h | 6 +++--- + 2 files changed, 10 insertions(+), 9 deletions(-) + +diff --git a/src/qxl_option_helpers.c b/src/qxl_option_helpers.c +index 2aba677..7707b7c 100644 +--- a/src/qxl_option_helpers.c ++++ b/src/qxl_option_helpers.c +@@ -10,31 +10,32 @@ + + #include "qxl_option_helpers.h" + +-int get_int_option(OptionInfoPtr options, int option_index, ++int get_int_option(OptionInfoPtr options, int token, + const char *env_name) + { ++ int value; + if (env_name && getenv(env_name)) { + return atoi(getenv(env_name)); + } +- return options[option_index].value.num; ++ return xf86GetOptValInteger(options, token, &value) ? value : 0; + } + +-const char *get_str_option(OptionInfoPtr options, int option_index, ++const char *get_str_option(OptionInfoPtr options, int token, + const char *env_name) + { + if (getenv(env_name)) { + return getenv(env_name); + } +- return options[option_index].value.str; ++ return xf86GetOptValString(options, token); + } + +-int get_bool_option(OptionInfoPtr options, int option_index, ++int get_bool_option(OptionInfoPtr options, int token, + const char *env_name) + { + const char* value = getenv(env_name); + + if (!value) { +- return options[option_index].value.bool; ++ return xf86ReturnOptValBool(options, token, FALSE); + } + if (strcmp(value, "0") == 0 || + strcasecmp(value, "off") == 0 || +diff --git a/src/qxl_option_helpers.h b/src/qxl_option_helpers.h +index 7c54c72..66d0a17 100644 +--- a/src/qxl_option_helpers.h ++++ b/src/qxl_option_helpers.h +@@ -4,13 +4,13 @@ + #include + #include + +-int get_int_option(OptionInfoPtr options, int option_index, ++int get_int_option(OptionInfoPtr options, int token, + const char *env_name); + +-const char *get_str_option(OptionInfoPtr options, int option_index, ++const char *get_str_option(OptionInfoPtr options, int token, + const char *env_name); + +-int get_bool_option(OptionInfoPtr options, int option_index, ++int get_bool_option(OptionInfoPtr options, int token, + const char *env_name); + + #endif // OPTION_HELPERS_H +-- +GitLab + diff --git a/system/xf86-video-qxl/xf86-video-qxl.SlackBuild b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild index f507d7f199..8f9b695f2e 100644 --- a/system/xf86-video-qxl/xf86-video-qxl.SlackBuild +++ b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Slackware build script for xf86-video-qxl -# Copyright 2012-2017 Matteo Bernardini , Pisa, Italy +# Copyright 2012-2022 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -85,6 +85,7 @@ find -L . \ -exec chmod 644 {} \; patch -p1 < $CWD/libdrm.patch +patch -p1 < $CWD/buildfix.diff # autogen.sh can be used in place of configure CFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3