diff options
author | davidovski <david@davidovski.xyz> | 2022-07-15 00:52:21 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-07-15 00:52:21 +0100 |
commit | 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch) | |
tree | 278bbf05c72536a30e701eebbd3546ba137543e7 /repo/a52dec | |
parent | f6332a43c35387c4a2dea1746be5fd092890ae0e (diff) |
added python deps for libvirt
Diffstat (limited to 'repo/a52dec')
-rw-r--r-- | repo/a52dec/a52dec-0.7.4-build.patch | 27 | ||||
-rw-r--r-- | repo/a52dec/a52dec.xibuild | 38 | ||||
-rw-r--r-- | repo/a52dec/automake.patch | 11 | ||||
-rw-r--r-- | repo/a52dec/fix-globals-test-x86-pie.patch | 11 |
4 files changed, 87 insertions, 0 deletions
diff --git a/repo/a52dec/a52dec-0.7.4-build.patch b/repo/a52dec/a52dec-0.7.4-build.patch new file mode 100644 index 0000000..f3a29f3 --- /dev/null +++ b/repo/a52dec/a52dec-0.7.4-build.patch @@ -0,0 +1,27 @@ +diff -Naur a52dec-0.7.4.orig/liba52/Makefile.am a52dec-0.7.4/liba52/Makefile.am +--- a52dec-0.7.4.orig/liba52/Makefile.am 2002-01-27 20:36:48.000000000 -0800 ++++ a52dec-0.7.4/liba52/Makefile.am 2004-11-05 01:10:21.317401872 -0800 +@@ -1,4 +1,3 @@ +-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@ + + lib_LTLIBRARIES = liba52.la + +diff -Naur a52dec-0.7.4.orig/liba52/configure.incl a52dec-0.7.4/liba52/configure.incl +--- a52dec-0.7.4.orig/liba52/configure.incl 2002-01-27 20:36:48.000000000 -0800 ++++ a52dec-0.7.4/liba52/configure.incl 2004-11-05 01:11:38.172672216 -0800 +@@ -2,7 +2,6 @@ + AC_SUBST([LIBA52_LIBS]) + + dnl avoid -fPIC when possible +-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic" + + AC_ARG_ENABLE([double], + [ --enable-double use double-precision samples]) +diff -Naur a52dec-0.7.4.orig/src/Makefile.am a52dec-0.7.4/src/Makefile.am +--- a52dec-0.7.4.orig/src/Makefile.am 2002-06-22 18:51:57.000000000 -0700 ++++ a52dec-0.7.4/src/Makefile.am 2004-11-05 01:10:21.320401375 -0800 +@@ -1,4 +1,3 @@ +-CFLAGS = @A52DEC_CFLAGS@ + + bin_PROGRAMS = a52dec extract_a52 + a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c diff --git a/repo/a52dec/a52dec.xibuild b/repo/a52dec/a52dec.xibuild new file mode 100644 index 0000000..2093040 --- /dev/null +++ b/repo/a52dec/a52dec.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="a52dec" +DESC="A free library for decoding ATSC A/52 streams." + +MAKEDEPS="autoconf automake libtool linux-headers" + +PKG_VER=0.7.4 +SOURCE="http://liba52.sourceforge.net/files/a52dec-$PKG_VER.tar.gz" + +ADDITIONAL=" +a52dec-0.7.4-build.patch +automake.patch +fix-globals-test-x86-pie.patch +" + +prepare() { + apply_patches + libtoolize --force && \ + aclocal && autoconf && automake --add-missing +} + +build() { + ./configure \ + --prefix=/usr \ + --enable-shared + make +} + +check() { + make check +} + +package() { + make DESTDIR="$PKG_DEST" install + install -m644 liba52/a52_internal.h "$PKG_DEST"/usr/include/a52dec/ +} + diff --git a/repo/a52dec/automake.patch b/repo/a52dec/automake.patch new file mode 100644 index 0000000..42231e0 --- /dev/null +++ b/repo/a52dec/automake.patch @@ -0,0 +1,11 @@ +--- ./configure.in.orig 2013-04-23 12:43:16.258733686 +0000 ++++ ./configure.in 2013-04-23 12:43:32.922233281 +0000 +@@ -6,7 +6,7 @@ + AC_CONFIG_FILES([Makefile autotools/Makefile include/Makefile test/Makefile + doc/Makefile src/Makefile liba52/Makefile libao/Makefile vc++/Makefile]) + AM_INIT_AUTOMAKE([a52dec],[0.7.4]) +-AM_CONFIG_HEADER(include/config.h) ++AC_CONFIG_HEADERS(include/config.h) + AM_MAINTAINER_MODE + AC_CANONICAL_HOST + diff --git a/repo/a52dec/fix-globals-test-x86-pie.patch b/repo/a52dec/fix-globals-test-x86-pie.patch new file mode 100644 index 0000000..da227a1 --- /dev/null +++ b/repo/a52dec/fix-globals-test-x86-pie.patch @@ -0,0 +1,11 @@ +--- a52dec-0.7.4.orig/test/globals ++++ a52dec-0.7.4/test/globals +@@ -13,7 +13,7 @@ + builddir=`cd $builddir;pwd` + + bad_globals=`nm -g --defined-only $builddir/../liba52/*.o|\ +- awk '{if ($3) print $3}'|grep -v '^_\?a52_'` ++ awk '{if ($3) print $3}'|grep -v '^_\?a52_'`|grep -v '^__x86.get_pc_thunk.' + + if test x"$bad_globals" != x""; then + echo BAD GLOBAL SYMBOLS: |