From 0bf61cd5ef495565e28afd13040d8ba4f8706fdd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 31 Dec 2009 00:57:33 +0100 Subject: [PATCH] Added faad2-2.7 build template. --HG-- extra : convert_revision : acfe659b2314ddc6d3a6a3b6c9d32ddb8e45d33c --- srcpkgs/faad2-devel | 1 + srcpkgs/faad2/depends | 2 ++ srcpkgs/faad2/faad2-devel.template | 19 +++++++++++++++++++ srcpkgs/faad2/template | 26 ++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 120000 srcpkgs/faad2-devel create mode 100644 srcpkgs/faad2/depends create mode 100644 srcpkgs/faad2/faad2-devel.template create mode 100644 srcpkgs/faad2/template diff --git a/srcpkgs/faad2-devel b/srcpkgs/faad2-devel new file mode 120000 index 0000000000..dcf401f717 --- /dev/null +++ b/srcpkgs/faad2-devel @@ -0,0 +1 @@ +faad2 \ No newline at end of file diff --git a/srcpkgs/faad2/depends b/srcpkgs/faad2/depends new file mode 100644 index 0000000000..f9c802c81c --- /dev/null +++ b/srcpkgs/faad2/depends @@ -0,0 +1,2 @@ +abi_depends=">=2.7" +api_depends="${abi_depends}" diff --git a/srcpkgs/faad2/faad2-devel.template b/srcpkgs/faad2/faad2-devel.template new file mode 100644 index 0000000000..66b2a48d6d --- /dev/null +++ b/srcpkgs/faad2/faad2-devel.template @@ -0,0 +1,19 @@ +# Template file for 'faad2-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 faad2 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + #mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + #mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/srcpkgs/faad2/template b/srcpkgs/faad2/template new file mode 100644 index 0000000000..445703dacb --- /dev/null +++ b/srcpkgs/faad2/template @@ -0,0 +1,26 @@ +# Template file for 'faad2' +pkgname=faad2 +version=2.7 +distfiles="${SOURCEFORGE_SITE}/faac/$pkgname-$version.tar.bz2" +CFLAGS="-fPIC" +build_style=gnu_configure +make_install_args="manmdir=/usr/share/man/man1" +short_desc="AAC decoding library" +maintainer="Juan RP " +checksum=14561b5d6bc457e825bfd3921ae50a6648f377a9396eaf16d4b057b39a3f63b5 +long_desc=" + FAAD2 is the fastest ISO AAC audio decoder available. FAAD2 correctly + decodes all MPEG-4 and MPEG-2 MAIN, LOW, LTP, LD and ER object type + AAC files." + +subpackages="$pkgname-devel" +Add_dependency run glibc + +post_install() +{ + cd ${wrksrc} || return 1 + install -D -m644 common/mp4ff/mp4ff_int_types.h \ + ${DESTDIR}/usr/include/mp4ff_int_types.h || return 1 + mv ${DESTDIR}/usr/share/man/man1/faad.man \ + ${DESTDIR}/usr/share/man/man1/faad.1 +}