From 690774ebb3529c2aa5ccc886c731169ac923509f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 30 Dec 2009 01:19:03 +0100 Subject: [PATCH] Added liba52-0.7.4 build template. --HG-- extra : convert_revision : f4fa3042a512126059939c8ba62b5345a9cc771c --- srcpkgs/a52dec | 1 + srcpkgs/liba52-devel | 1 + srcpkgs/liba52/a52dec.template | 16 +++++++++++++ srcpkgs/liba52/depends | 2 ++ srcpkgs/liba52/liba52-devel.template | 17 +++++++++++++ .../liba52/patches/a52dec-0.7.4-build.patch | 24 +++++++++++++++++++ srcpkgs/liba52/template | 24 +++++++++++++++++++ 7 files changed, 85 insertions(+) create mode 120000 srcpkgs/a52dec create mode 120000 srcpkgs/liba52-devel create mode 100644 srcpkgs/liba52/a52dec.template create mode 100644 srcpkgs/liba52/depends create mode 100644 srcpkgs/liba52/liba52-devel.template create mode 100644 srcpkgs/liba52/patches/a52dec-0.7.4-build.patch create mode 100644 srcpkgs/liba52/template diff --git a/srcpkgs/a52dec b/srcpkgs/a52dec new file mode 120000 index 0000000000..a12ddb29fe --- /dev/null +++ b/srcpkgs/a52dec @@ -0,0 +1 @@ +liba52 \ No newline at end of file diff --git a/srcpkgs/liba52-devel b/srcpkgs/liba52-devel new file mode 120000 index 0000000000..a12ddb29fe --- /dev/null +++ b/srcpkgs/liba52-devel @@ -0,0 +1 @@ +liba52 \ No newline at end of file diff --git a/srcpkgs/liba52/a52dec.template b/srcpkgs/liba52/a52dec.template new file mode 100644 index 0000000000..7f9465e4e0 --- /dev/null +++ b/srcpkgs/liba52/a52dec.template @@ -0,0 +1,16 @@ +# Template file for 'a52dec'. +# +short_desc="ATSC A/52 stream decoder tools" +long_desc="${long_desc} + + This package contains files tools for decoding A/52 (or AC-3) streams." + +Add_dependency run glibc-devel +Add_dependency run liba52 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr || return 1 + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr || return 1 +} diff --git a/srcpkgs/liba52/depends b/srcpkgs/liba52/depends new file mode 100644 index 0000000000..270f89c96f --- /dev/null +++ b/srcpkgs/liba52/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.7.4" +api_depends="${abi_depends}" diff --git a/srcpkgs/liba52/liba52-devel.template b/srcpkgs/liba52/liba52-devel.template new file mode 100644 index 0000000000..6e476a0b2c --- /dev/null +++ b/srcpkgs/liba52/liba52-devel.template @@ -0,0 +1,17 @@ +# Template file for 'liba52-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run liba52 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/liba52/patches/a52dec-0.7.4-build.patch b/srcpkgs/liba52/patches/a52dec-0.7.4-build.patch new file mode 100644 index 0000000000..919a72195e --- /dev/null +++ b/srcpkgs/liba52/patches/a52dec-0.7.4-build.patch @@ -0,0 +1,24 @@ +--- liba52/Makefile.am 2002-01-27 20:36:48.000000000 -0800 ++++ liba52/Makefile.am 2004-11-05 01:10:21.317401872 -0800 +@@ -1,4 +1,3 @@ +-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@ + + lib_LTLIBRARIES = liba52.la + +--- liba52/configure.incl 2002-01-27 20:36:48.000000000 -0800 ++++ 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]) +--- src/Makefile.am 2002-06-22 18:51:57.000000000 -0700 ++++ 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/srcpkgs/liba52/template b/srcpkgs/liba52/template new file mode 100644 index 0000000000..43a5312383 --- /dev/null +++ b/srcpkgs/liba52/template @@ -0,0 +1,24 @@ +# Template file for 'liba52' +pkgname=liba52 +version=0.7.4 +wrksrc="a52dec-${version}" +distfiles="http://liba52.sourceforge.net/files/a52dec-$version.tar.gz" +build_style=gnu_configure +configure_args="--enable-shared" +short_desc="Free ATSC A/52 stream decoder" +maintainer="Juan RP " +checksum=a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33 +long_desc=" + liba52 is a free library for decoding ATSC A/52 streams. It is released + under the terms of the GPL license. The A/52 standard is used in a variety + of applications, including digital television and DVD. It is also known + as AC-3." + +subpackages="$pkgname-devel a52dec" +Add_dependency run glibc +Add_dependency build automake + +pre_configure() +{ + cd ${wrksrc} && ./bootstrap +}