From 603a4b9c8b09570faeefbd423a615b94fe09da45 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 12 Mar 2010 12:20:16 +0000 Subject: [PATCH] flac: Initial import (verified compilation). --- flac/.footprint | 43 +++++++++++++++++++++++++++++++++++++++++++ flac/.md5sum | 2 ++ flac/Pkgfile | 27 +++++++++++++++++++++++++++ flac/flac.diff | 11 +++++++++++ 4 files changed, 83 insertions(+) create mode 100644 flac/.footprint create mode 100644 flac/.md5sum create mode 100644 flac/Pkgfile create mode 100644 flac/flac.diff diff --git a/flac/.footprint b/flac/.footprint new file mode 100644 index 0000000..8fbf12b --- /dev/null +++ b/flac/.footprint @@ -0,0 +1,43 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/flac +-rwxr-xr-x root/root usr/bin/metaflac +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/FLAC++/ +-rw-r--r-- root/root usr/include/FLAC++/all.h +-rw-r--r-- root/root usr/include/FLAC++/decoder.h +-rw-r--r-- root/root usr/include/FLAC++/encoder.h +-rw-r--r-- root/root usr/include/FLAC++/export.h +-rw-r--r-- root/root usr/include/FLAC++/metadata.h +drwxr-xr-x root/root usr/include/FLAC/ +-rw-r--r-- root/root usr/include/FLAC/all.h +-rw-r--r-- root/root usr/include/FLAC/assert.h +-rw-r--r-- root/root usr/include/FLAC/callback.h +-rw-r--r-- root/root usr/include/FLAC/export.h +-rw-r--r-- root/root usr/include/FLAC/format.h +-rw-r--r-- root/root usr/include/FLAC/metadata.h +-rw-r--r-- root/root usr/include/FLAC/ordinals.h +-rw-r--r-- root/root usr/include/FLAC/stream_decoder.h +-rw-r--r-- root/root usr/include/FLAC/stream_encoder.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libFLAC++.a +-rwxr-xr-x root/root usr/lib/libFLAC++.la +lrwxrwxrwx root/root usr/lib/libFLAC++.so -> libFLAC++.so.6.2.0 +lrwxrwxrwx root/root usr/lib/libFLAC++.so.6 -> libFLAC++.so.6.2.0 +-rwxr-xr-x root/root usr/lib/libFLAC++.so.6.2.0 +-rw-r--r-- root/root usr/lib/libFLAC.a +-rwxr-xr-x root/root usr/lib/libFLAC.la +lrwxrwxrwx root/root usr/lib/libFLAC.so -> libFLAC.so.8.2.0 +lrwxrwxrwx root/root usr/lib/libFLAC.so.8 -> libFLAC.so.8.2.0 +-rwxr-xr-x root/root usr/lib/libFLAC.so.8.2.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/flac++.pc +-rw-r--r-- root/root usr/lib/pkgconfig/flac.pc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/flac.1.gz +-rw-r--r-- root/root usr/man/man1/metaflac.1.gz +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/aclocal/ +-rw-r--r-- root/root usr/share/aclocal/libFLAC++.m4 +-rw-r--r-- root/root usr/share/aclocal/libFLAC.m4 diff --git a/flac/.md5sum b/flac/.md5sum new file mode 100644 index 0000000..e140044 --- /dev/null +++ b/flac/.md5sum @@ -0,0 +1,2 @@ +153c8b15a54da428d1f0fadc756c22c7 flac-1.2.1.tar.gz +6632677f2e3b0103256023ba76115845 flac.diff diff --git a/flac/Pkgfile b/flac/Pkgfile new file mode 100644 index 0000000..a3d8ea8 --- /dev/null +++ b/flac/Pkgfile @@ -0,0 +1,27 @@ +# Description: Free Lossless Audio Codec +# URL: http://flac.sourceforge.net/ +# Maintainer: Tilman Sauerbeck, tilman at crux dot nu +# Packager: Matt Housh, jaeger at morpheus dot net +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: libogg + +name=flac +version=1.2.1 +release=1 +source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz + $name.diff) + +build() { + cd $name-$version + + # fix compilation with gcc 4.3 + patch -Np1 -i $SRC/$name.diff + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --with-ogg=$CLFS/usr/lib + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/doc +} diff --git a/flac/flac.diff b/flac/flac.diff new file mode 100644 index 0000000..a825135 --- /dev/null +++ b/flac/flac.diff @@ -0,0 +1,11 @@ +diff -aur flac-1.2.1.orig/examples/cpp/encode/file/main.cpp flac-1.2.1/examples/cpp/encode/file/main.cpp +--- flac-1.2.1.orig/examples/cpp/encode/file/main.cpp 2007-09-13 17:58:03.000000000 +0200 ++++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2008-10-23 18:30:02.575321637 +0200 +@@ -30,6 +30,7 @@ + + #include + #include ++#include + #include "FLAC++/metadata.h" + #include "FLAC++/encoder.h" + -- 2.26.2