CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
flac: Initial import (verified compilation).
authorVictor Martinez <pitillo@ono.com>
Fri, 12 Mar 2010 12:20:16 +0000 (12:20 +0000)
committerVictor Martinez <pitillo@ono.com>
Fri, 12 Mar 2010 12:20:16 +0000 (12:20 +0000)
flac/.footprint [new file with mode: 0644]
flac/.md5sum [new file with mode: 0644]
flac/Pkgfile [new file with mode: 0644]
flac/flac.diff [new file with mode: 0644]

diff --git a/flac/.footprint b/flac/.footprint
new file mode 100644 (file)
index 0000000..8fbf12b
--- /dev/null
@@ -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 (file)
index 0000000..e140044
--- /dev/null
@@ -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 (file)
index 0000000..a3d8ea8
--- /dev/null
@@ -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 (file)
index 0000000..a825135
--- /dev/null
@@ -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 <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+ #include "FLAC++/metadata.h"
+ #include "FLAC++/encoder.h"