Imported sources from subversion.
This commit is contained in:
58
packages/flac/default.bash
Normal file
58
packages/flac/default.bash
Normal file
@@ -0,0 +1,58 @@
|
||||
version=\
|
||||
(
|
||||
"1.2.1"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://downloads.sourceforge.net/project/flac/flac-src/flac-${version}-src/flac-${version}.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"153c8b15a54da428d1f0fadc756c22c7"
|
||||
)
|
||||
|
||||
requires=(
|
||||
"libogg/default"
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
patches=$(ls "$cfg_package_spec_dir/patches-$version/"*.patch)
|
||||
if [ -n "$patches" ]; then
|
||||
cat $patches | patch -p1
|
||||
fi
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical"
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
# Libs:
|
||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libFLAC*.so*; do
|
||||
if [ -L "$f" ]; then
|
||||
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
|
||||
else
|
||||
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
10
packages/flac/patches-1.2.1/00-patch-for-gcc-4.7.patch
vendored
Normal file
10
packages/flac/patches-1.2.1/00-patch-for-gcc-4.7.patch
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
--- flac-1.2.1/examples/cpp/encode/file/main.cpp 2007-09-13 17:58:03.000000000 +0200
|
||||
+++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2013-04-19 18:33:05.738967111 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "FLAC++/metadata.h"
|
||||
#include "FLAC++/encoder.h"
|
Reference in New Issue
Block a user