initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

49
libtheora/PKGBUILD Normal file
View File

@@ -0,0 +1,49 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=libtheora
pkgver=1.1.1
_debver=1.1.1+dfsg.1
_debrel=15
pkgrel=4
pkgdesc="A free video codec developed by the Xiph.org"
arch=('i686' 'x86_64')
url="https://www.theora.org/"
license=('Modified-BSD')
depends=('libogg')
makedepends=('libvorbis' 'quilt')
source=(https://downloads.xiph.org/releases/theora/libtheora-${pkgver}.tar.bz2
https://deb.debian.org/debian/pool/main/libt/libtheora/libtheora_$_debver-$_debrel.debian.tar.xz
libtheora-1.1.1-libpng16.patch)
sha512sums=('9ab9b3af1c35d16a7d6d84f61f59ef3180132e30c27bdd7c0fa2683e0d00e2c791accbc7fd2c90718cc947d8bd10ee4a5940fb55f90f1fd7b0ed30583a47dbbd'
'ebee94506621c7220bb2febb63f5444a65d7c8b49d611058799dc51504f3152b49313542b0007b225d0fe94ed3d2a6fc0db51b344844e25a0496e547e1be1d40'
'856da5da7788863c59c9cb6c4fa102d250e60d6b302a5c118799169bcbc5350ab0bf6798f2ae2586f1d361ff9030d1d715214d8df900d7e1aa4a4e1d58f44276')
prepare() {
cd ${pkgname}-${pkgver}
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
else
patch -Np0 -i ../libtheora-1.1.1-libpng16.patch
fi
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --enable-shared --disable-static
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

View File

@@ -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);
}