From ed6a3c14b961af03946abccba4589b9a1f841c2f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 22 Dec 2009 21:00:53 +0100 Subject: [PATCH] Added flac-1.2.1 build template. --HG-- extra : convert_revision : ecb8aede5d0827ad28183b236ed7fc0ce91c62ba --- srcpkgs/flac/depends | 2 ++ srcpkgs/flac/libflac-devel.template | 21 +++++++++++++ srcpkgs/flac/libflac.template | 15 ++++++++++ .../patches/flac-1.2.1-gcc-4.3-includes.patch | 10 +++++++ srcpkgs/flac/template | 30 +++++++++++++++++++ srcpkgs/libflac | 1 + srcpkgs/libflac-devel | 1 + 7 files changed, 80 insertions(+) create mode 100644 srcpkgs/flac/depends create mode 100644 srcpkgs/flac/libflac-devel.template create mode 100644 srcpkgs/flac/libflac.template create mode 100644 srcpkgs/flac/patches/flac-1.2.1-gcc-4.3-includes.patch create mode 100644 srcpkgs/flac/template create mode 120000 srcpkgs/libflac create mode 120000 srcpkgs/libflac-devel diff --git a/srcpkgs/flac/depends b/srcpkgs/flac/depends new file mode 100644 index 0000000000..b14f99034b --- /dev/null +++ b/srcpkgs/flac/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.2.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/flac/libflac-devel.template b/srcpkgs/flac/libflac-devel.template new file mode 100644 index 0000000000..609e197341 --- /dev/null +++ b/srcpkgs/flac/libflac-devel.template @@ -0,0 +1,21 @@ +# Template file for 'libflac-devel'. +# +short_desc="${short_desc} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libstdc++-devel +Add_dependency run libogg-devel +Add_dependency run libflac + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share + 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/aclocal ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share +} diff --git a/srcpkgs/flac/libflac.template b/srcpkgs/flac/libflac.template new file mode 100644 index 0000000000..7f8334f866 --- /dev/null +++ b/srcpkgs/flac/libflac.template @@ -0,0 +1,15 @@ +# Template file for 'libflac'. +# +short_desc="${short_desc} - shared libraries" +long_desc="${long_desc} + + This package contains the FLAC shared libraries." + +Add_dependency run libstdc++ +Add_dependency run libogg + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so.* ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/flac/patches/flac-1.2.1-gcc-4.3-includes.patch b/srcpkgs/flac/patches/flac-1.2.1-gcc-4.3-includes.patch new file mode 100644 index 0000000000..5798204c00 --- /dev/null +++ b/srcpkgs/flac/patches/flac-1.2.1-gcc-4.3-includes.patch @@ -0,0 +1,10 @@ +--- examples/cpp/encode/file/main.cpp 2007-09-13 09:58:03.000000000 -0600 ++++ examples/cpp/encode/file/main.cpp 2007-11-18 12:59:45.000000000 -0600 +@@ -30,6 +30,7 @@ + + #include + #include ++#include + #include "FLAC++/metadata.h" + #include "FLAC++/encoder.h" + diff --git a/srcpkgs/flac/template b/srcpkgs/flac/template new file mode 100644 index 0000000000..0bcd925b82 --- /dev/null +++ b/srcpkgs/flac/template @@ -0,0 +1,30 @@ +# Template file for 'flac' +pkgname=flac +version=1.2.1 +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin" +short_desc="Free Lossless Audio Codec" +maintainer="Juan RP " +checksum=9635a44bceb478bbf2ee8a785cf6986fba525afb5fad1fd4bba73cf71f2d3edf +long_desc=" + FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is + similar to MP3, but lossless. The FLAC project consists of: + * the stream format + * libFLAC, which implements reference encoders and decoders + * flac, a command-line wrapper around libFLAC to encode and decode .flac + files + * input plugins for various music players (Winamp, XMMS, and more in the + works) + +\"Free\" means that the specification of the stream format is in the public +domain (the FLAC project reserves the right to set the FLAC specification +and certify compliance), and that neither the FLAC format nor any of the +implemented encoding/decoding methods are covered by any patent. It also +means that the source for libFLAC is available under the LGPL and the +sources for flac and the plugins are available under the GPL." + +subpackages="libflac libflac-devel" +Add_dependency run libflac +Add_dependency build nasm +Add_dependency build libogg-devel diff --git a/srcpkgs/libflac b/srcpkgs/libflac new file mode 120000 index 0000000000..1a76bfd31c --- /dev/null +++ b/srcpkgs/libflac @@ -0,0 +1 @@ +flac \ No newline at end of file diff --git a/srcpkgs/libflac-devel b/srcpkgs/libflac-devel new file mode 120000 index 0000000000..1a76bfd31c --- /dev/null +++ b/srcpkgs/libflac-devel @@ -0,0 +1 @@ +flac \ No newline at end of file