From 03423e0583057cbe5a16f8439183e2dbc0e8dd7c Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 9 Dec 2019 19:17:24 +0300 Subject: secondary commit --- extra/libtheora/build | 9 +++++++++ extra/libtheora/checksums | 2 ++ extra/libtheora/depends | 1 + extra/libtheora/patches/libtheora-1.1.1-libpng16.patch | 17 +++++++++++++++++ extra/libtheora/sources | 2 ++ extra/libtheora/version | 1 + 6 files changed, 32 insertions(+) create mode 100755 extra/libtheora/build create mode 100644 extra/libtheora/checksums create mode 100644 extra/libtheora/depends create mode 100644 extra/libtheora/patches/libtheora-1.1.1-libpng16.patch create mode 100644 extra/libtheora/sources create mode 100644 extra/libtheora/version (limited to 'extra/libtheora') diff --git a/extra/libtheora/build b/extra/libtheora/build new file mode 100755 index 00000000..288944dc --- /dev/null +++ b/extra/libtheora/build @@ -0,0 +1,9 @@ +#!/bin/sh -e + +patch -p0 < libtheora-1.1.1-libpng16.patch + +./configure \ + --prefix=/usr + +make +make DESTDIR="$1" install diff --git a/extra/libtheora/checksums b/extra/libtheora/checksums new file mode 100644 index 00000000..9286d3eb --- /dev/null +++ b/extra/libtheora/checksums @@ -0,0 +1,2 @@ +40952956c47811928d1e7922cda3bc1f427eb75680c3c37249c91e949054916b libtheora-1.1.1.tar.gz +e4c9a8dc798c596ed32a2a720020ae27a0e72f5add1a47cb8fadebe0e7180d7e libtheora-1.1.1-libpng16.patch diff --git a/extra/libtheora/depends b/extra/libtheora/depends new file mode 100644 index 00000000..b6a6854a --- /dev/null +++ b/extra/libtheora/depends @@ -0,0 +1 @@ +libogg diff --git a/extra/libtheora/patches/libtheora-1.1.1-libpng16.patch b/extra/libtheora/patches/libtheora-1.1.1-libpng16.patch new file mode 100644 index 00000000..93da700c --- /dev/null +++ b/extra/libtheora/patches/libtheora-1.1.1-libpng16.patch @@ -0,0 +1,17 @@ +http://bugs.gentoo.org/465450 +http://trac.xiph.org/ticket/1947 + +--- examples/png2theora.c ++++ examples/png2theora.c +@@ -462,9 +462,9 @@ + png_set_strip_alpha(png_ptr); + + row_data = (png_bytep)png_malloc(png_ptr, +- 3*height*width*png_sizeof(*row_data)); ++ 3*height*width*sizeof(*row_data)); + row_pointers = (png_bytep *)png_malloc(png_ptr, +- height*png_sizeof(*row_pointers)); ++ height*sizeof(*row_pointers)); + for(y = 0; y < height; y++) { + row_pointers[y] = row_data + y*(3*width); + } diff --git a/extra/libtheora/sources b/extra/libtheora/sources new file mode 100644 index 00000000..c5eaf319 --- /dev/null +++ b/extra/libtheora/sources @@ -0,0 +1,2 @@ +https://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz +patches/libtheora-1.1.1-libpng16.patch diff --git a/extra/libtheora/version b/extra/libtheora/version new file mode 100644 index 00000000..d9f65d2e --- /dev/null +++ b/extra/libtheora/version @@ -0,0 +1 @@ +1.1.1 2 -- cgit v1.2.3