audio/flac: update to 1.4.2
This commit is contained in:
parent
5a205f3233
commit
7e567545e5
|
@ -1,6 +1,6 @@
|
|||
COMMENT= free lossless audio codec
|
||||
|
||||
DISTNAME= flac-1.4.1
|
||||
DISTNAME= flac-1.4.2
|
||||
CATEGORIES= audio archivers
|
||||
HOMEPAGE= https://www.xiph.org/flac/
|
||||
SHARED_LIBS += FLAC 13.0 # 12.0
|
||||
|
@ -21,13 +21,8 @@ COMPILER = base-clang ports-gcc base-gcc
|
|||
|
||||
LIB_DEPENDS= audio/libogg converters/libiconv
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
BUILD_DEPENDS+= devel/nasm
|
||||
.endif
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS= --disable-sse \
|
||||
--disable-altivec \
|
||||
CONFIGURE_ARGS= --disable-altivec \
|
||||
--disable-doxygen-docs \
|
||||
--disable-thorough-tests
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (flac-1.4.1.tar.xz) = kTA8Pl395Sw+lOdZdsCrPuFM7SeKuPYAM6OhLbkgmuY=
|
||||
SIZE (flac-1.4.1.tar.xz) = 1024160
|
||||
SHA256 (flac-1.4.2.tar.xz) = 4yLVih9I0j2d049DJnKGX2955zpvnMWl9X/KqD61qOQ=
|
||||
SIZE (flac-1.4.2.tar.xz) = 1013700
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
Index: configure
|
||||
--- configure.orig
|
||||
+++ configure
|
||||
@@ -20004,7 +20004,7 @@ then :
|
||||
fi
|
||||
@@ -21455,8 +21455,8 @@ fi
|
||||
if test "x${ax_enable_debug}" = "xno"
|
||||
then :
|
||||
|
||||
- CFLAGS="-O3 -funroll-loops $CFLAGS"
|
||||
- CXXFLAGS="-O3 $CXXFLAGS"
|
||||
+ #CFLAGS="-O3 -funroll-loops $CFLAGS"
|
||||
+ #CXXFLAGS="-O3 $CXXFLAGS"
|
||||
|
||||
fi
|
||||
- if test "x$HAVE_PREBUILD_FLAG_TAG$HAVEPREBUILD_API_DIR" = "xyesyes"; then
|
||||
+ if test "x$HAVE_PREBUILT_FLAC_TAG$HAVE_PREBUILT_API_DIR" = "xyesyes"; then
|
||||
FLaC__HAS_PREBUILT_DOXYGEN_TRUE=
|
||||
FLaC__HAS_PREBUILT_DOXYGEN_FALSE='#'
|
||||
else
|
||||
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
Assume Clang supports x86 intrinsics up to FMA
|
||||
https://github.com/xiph/flac/commit/90c0562d4eb302b01d9b82c75a7f6a66261c5546
|
||||
|
||||
Index: src/libFLAC/include/private/cpu.h
|
||||
--- src/libFLAC/include/private/cpu.h.orig
|
||||
+++ src/libFLAC/include/private/cpu.h
|
||||
@@ -82,28 +82,14 @@
|
||||
#elif defined __clang__ && __has_attribute(__target__) /* clang */
|
||||
#define FLAC__SSE_TARGET(x) __attribute__ ((__target__ (x)))
|
||||
#define FLAC__FAST_MATH_TARGET(x) __attribute__ ((__target__ (x)))
|
||||
- #if __has_builtin(__builtin_ia32_maxps)
|
||||
- #define FLAC__SSE_SUPPORTED 1
|
||||
- #endif
|
||||
- #if __has_builtin(__builtin_ia32_pmuludq128)
|
||||
- #define FLAC__SSE2_SUPPORTED 1
|
||||
- #endif
|
||||
- #if __has_builtin(__builtin_ia32_pabsd128)
|
||||
- #define FLAC__SSSE3_SUPPORTED 1
|
||||
- #endif
|
||||
- #if __has_builtin(__builtin_ia32_pmuldq128)
|
||||
- #define FLAC__SSE4_1_SUPPORTED 1
|
||||
- #endif
|
||||
+ #define FLAC__SSE_SUPPORTED 1
|
||||
+ #define FLAC__SSE2_SUPPORTED 1
|
||||
+ #define FLAC__SSSE3_SUPPORTED 1
|
||||
+ #define FLAC__SSE4_1_SUPPORTED 1
|
||||
#ifdef FLAC__USE_AVX
|
||||
- #if __has_builtin(__builtin_ia32_maxps256)
|
||||
- #define FLAC__AVX_SUPPORTED 1
|
||||
- #endif
|
||||
- #if __has_builtin(__builtin_ia32_pabsd256)
|
||||
- #define FLAC__AVX2_SUPPORTED 1
|
||||
- #endif
|
||||
- #if __has_builtin(__builtin_ia32_vfmaddps)
|
||||
- #define FLAC__FMA_SUPPORTED 1
|
||||
- #endif
|
||||
+ #define FLAC__AVX_SUPPORTED 1
|
||||
+ #define FLAC__AVX2_SUPPORTED 1
|
||||
+ #define FLAC__FMA_SUPPORTED 1
|
||||
#endif
|
||||
#elif defined __GNUC__ && !defined __clang__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) /* GCC 4.9+ */
|
||||
#define FLAC__SSE_TARGET(x) __attribute__ ((__target__ (x)))
|
Loading…
Reference in New Issue
Block a user