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

79
libquicktime/PKGBUILD Normal file
View File

@@ -0,0 +1,79 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=libquicktime
pkgver=1.2.4
_debver=$pkgver
_debrel=12
pkgrel=17
pkgdesc="A library for reading and writing quicktime files"
arch=('i686' 'x86_64')
license=('LGPL-2.1')
url='https://libquicktime.sourceforge.net/'
depends=('glib2' 'glibc' 'zlib' 'alsa-lib' 'faad2' 'ffmpeg' 'gtk2' 'lame'
'mesa-libgl' 'libjpeg-turbo' 'libvorbis' 'libx11' 'libxaw'
'libxext' 'libxt' 'libxv' 'libsndio' 'x264')
makedepends=('quilt')
optdepends=('alsa-lib: for lqtplay'
'ffmpeg: for lqt_ffmpeg plugin'
'gtk2: for libquicktime_config'
'lame: for lqt_lame plugin'
'libjpeg-turbo: for lqt_mjpeg plugin'
'libpng: for lqt_png plugin'
'libvorbis: for lqt_lame and lqt_vorbis plugin'
'libx11: for lqtplay'
'libxaw: for lqtplay'
'libxext: for lqtplay'
'libxt: for lqtplay'
'libxv: for lqtplay'
'sndio: for lqtplay'
'x264: for lqt_x264 plugin')
source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
"https://deb.debian.org/debian/pool/main/libq/libquicktime/libquicktime_$_debver-$_debrel.debian.tar.xz"
"${pkgname}-1.2.4-faad2.patch")
sha512sums=('6ab6cd62ae2361bb3ad73725e9e8baa2b03361bc23e9e34b24f90c0e2bec4337de950ed7f30a6a1d2e67ab33e8f0c43538369fd07e417f54b84583a3c331f8dd'
'714f941a47b46cb308c6d84f2a3689f9b80c7282bc6934c149e1616c4c61eb57ce1053c8523831519b8bd21f36116261c9a81d97ee870811ac7dfbcde2c1b215'
'3e751330ebbc4026363efd45b21c60c313ea169a57a5cdfa46125e126aab34c2dea3629ce92e7b0b5f14693db4f11723177fd28611e2e979cc8fcd506077509e')
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 .
# Doesn't apply
rm -v debian/patches/02-install-in-libquicktime2.patch || true
quilt push -av
fi
# checks for faad2 are broken in configure.ac
patch -Np1 -i "${srcdir}/${pkgname}-1.2.4-faad2.patch"
autoreconf -vfi
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--enable-gpl \
--with-ffmpeg \
--with-x264 \
--without-doxygen \
--without-schroedinger \
--without-libdv \
--without-faac
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -vDm 644 {AUTHORS,ChangeLog,README,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 COPYING -t ${pkgdir}/usr/share/licenses/${pkgname}/
}

View File

@@ -0,0 +1,86 @@
diff -ruN a/configure.ac b/configure.ac
--- a/configure.ac 2012-03-29 21:44:28.000000000 +0200
+++ b/configure.ac 2020-02-09 18:27:31.599127781 +0100
@@ -728,82 +728,9 @@
if test "x$with_faad2" != "xno"; then
-OLD_CFLAGS=$CFLAGS
-OLD_LIBS=$LIBS
-
CFLAGS="$CFLAGS"
LIBS="$LIBS -lfaad -lm"
-AC_MSG_CHECKING(for neaacdec.h usability for faad2)
-
-
-AC_TRY_RUN([
- #include <neaacdec.h>
- #include <stdio.h>
- main()
- {
- int faad_major;
- int faad_minor;
- faacDecHandle dec;
-
- if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
- return -1;
- dec = faacDecOpen();
- if(!dec)
- return -1;
- return 0;
- }
- ],
- [
- # program could be run
- have_faad2="true"
- AC_MSG_RESULT(yes)
- FAAD2_CFLAGS=$CFLAGS
- FAAD2_LIBS=$LIBS
- AC_DEFINE(HAVE_NEAACDEC_H)
- ],
- # program could not be run
- AC_MSG_RESULT(no)
-)
-
-if test "x$have_faad2" != "xtrue"; then
-
-AC_MSG_CHECKING(for faad.h usability for faad2)
-
-AC_TRY_RUN([
- #include <faad.h>
- #include <stdio.h>
- main()
- {
- int faad_major;
- int faad_minor;
- faacDecHandle dec;
-
- if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
- return -1;
- dec = faacDecOpen();
- if(!dec)
- return -1;
- return 0;
- }
- ],
- [
- # program could be run
- have_faad2="true"
- AC_MSG_RESULT(yes)
- FAAD2_CFLAGS=$CFLAGS
- FAAD2_LIBS=$LIBS
-
-
- ],
- # program could not be run
- AC_MSG_RESULT(no)
-)
-
-fi
-
-CFLAGS=$OLD_CFLAGS
-LIBS=$OLD_LIBS
fi