flac: update to flac-1.3.0

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-04-01 01:38:34 +02:00
parent 1b251bddc1
commit 0cdcb24cb3
5 changed files with 11 additions and 69 deletions

View File

@ -17,12 +17,12 @@
################################################################################
PKG_NAME="flac"
PKG_VERSION="1.2.1"
PKG_VERSION="1.3.0"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="LGPL"
PKG_SITE="http://flac.sourceforge.net/"
PKG_URL="http://downloads.xiph.org/releases/flac/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_URL="http://downloads.xiph.org/releases/flac/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain libogg"
PKG_PRIORITY="optional"
PKG_SECTION="audio"
@ -43,9 +43,15 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-rpath \
--with-ogg=$SYSROOT_PREFIX/usr \
--with-gnu-ld"
pre_make_target() {
# hack
cp -R ../doc/* ./doc
if [ $TARGET_ARCH = "i386" -o $TARGET_ARCH = "x86_64" ]; then
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-sse"
else
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --disable-sse"
fi
pre_configure_target() {
# flac-1.3.0 fails to build with LTO support
strip_lto
}
post_makeinstall_target() {

View File

@ -1,12 +0,0 @@
diff -Naur flac-1.2.1-old/configure.in flac-1.2.1-new/configure.in
--- flac-1.2.1-old/configure.in 2007-09-13 08:48:42.000000000 -0700
+++ flac-1.2.1-new/configure.in 2013-01-03 19:54:10.000000000 -0800
@@ -44,7 +44,7 @@
AC_CHECK_SIZEOF(void*,0)
#@@@ new name is AC_CONFIG_HEADERS
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AC_C_BIGENDIAN

View File

@ -1,24 +0,0 @@
diff -Naur flac-1.2.1-old/configure.in flac-1.2.1-new/configure.in
--- flac-1.2.1-old/configure.in 2007-09-13 08:48:42.000000000 -0700
+++ flac-1.2.1-new/configure.in 2010-08-17 20:51:01.000000000 -0700
@@ -21,6 +21,8 @@
AC_INIT(src/flac/main.c)
AM_INIT_AUTOMAKE(flac, 1.2.1)
+AC_CONFIG_MACRO_DIR([m4])
+
# Don't automagically regenerate autoconf/automake generated files unless
# explicitly requested. Eases autobuilding -mdz
AM_MAINTAINER_MODE
diff -Naur flac-1.2.1-old/Makefile.am flac-1.2.1-new/Makefile.am
--- flac-1.2.1-old/Makefile.am 2007-09-16 12:29:29.000000000 -0700
+++ flac-1.2.1-new/Makefile.am 2010-08-17 20:51:27.000000000 -0700
@@ -30,6 +30,8 @@
AUTOMAKE_OPTIONS = foreign 1.7
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = doc include m4 man src examples test build obj
DISTCLEANFILES = libtool-disable-static

View File

@ -1,17 +0,0 @@
diff -Naur flac-1.2.1-old/configure.in flac-1.2.1-new/configure.in
--- flac-1.2.1-old/configure.in 2007-09-13 08:48:42.000000000 -0700
+++ flac-1.2.1-new/configure.in 2010-07-04 17:16:02.000000000 -0700
@@ -297,11 +297,13 @@
if test "x$debug" = xtrue; then
CPPFLAGS="-DDEBUG $CPPFLAGS"
CFLAGS="-g $CFLAGS"
+ CXXFLAGS="-g $CXXFLAGS"
else
CPPFLAGS="-DNDEBUG $CPPFLAGS"
if test "x$GCC" = xyes; then
CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS"
CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS"
+ CXXFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CXXFLAGS"
fi
fi

View File

@ -1,11 +0,0 @@
diff -Naur flac-1.2.1-old/examples/cpp/encode/file/main.cpp flac-1.2.1-new/examples/cpp/encode/file/main.cpp
--- flac-1.2.1-old/examples/cpp/encode/file/main.cpp 2007-09-13 08:58:03.000000000 -0700
+++ flac-1.2.1-new/examples/cpp/encode/file/main.cpp 2008-01-08 17:25:20.000000000 -0800
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "FLAC++/metadata.h"
#include "FLAC++/encoder.h"