pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/flac Fix build on non-linux ppc machines
details: https://anonhg.NetBSD.org/pkgsrc/rev/b98b596ebd4b
branches: trunk
changeset: 406287:b98b596ebd4b
user: nros <nros%pkgsrc.org@localhost>
date: Tue Dec 17 13:59:50 2019 +0000
description:
Fix build on non-linux ppc machines
Fix build on non-linux ppc machines, tested by julian sevard.
diffstat:
audio/flac/Makefile | 7 +++++--
audio/flac/distinfo | 4 +++-
audio/flac/patches/patch-configure.ac | 16 ++++++++++++++++
audio/flac/patches/patch-src_libFLAC_cpu.c | 24 ++++++++++++++++++++++++
4 files changed, 48 insertions(+), 3 deletions(-)
diffs (90 lines):
diff -r 82af98c21557 -r b98b596ebd4b audio/flac/Makefile
--- a/audio/flac/Makefile Tue Dec 17 10:50:53 2019 +0000
+++ b/audio/flac/Makefile Tue Dec 17 13:59:50 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2019/08/05 15:35:12 adam Exp $
+# $NetBSD: Makefile,v 1.55 2019/12/17 13:59:50 nros Exp $
DISTNAME= flac-1.3.3
CATEGORIES= audio archivers
@@ -11,7 +11,7 @@
LICENSE= modified-bsd AND gnu-gpl-v2 AND gnu-lgpl-v2.1
USE_LIBTOOL= yes
-USE_TOOLS+= gmake
+USE_TOOLS+= aclocal autoconf autoheader automake gmake
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-doxygen-docs
@@ -48,5 +48,8 @@
BUILDLINK_TRANSFORM+= rm:-fgnu89-inline
.endif
+pre-configure:
+ cd ${WRKSRC} && autoreconf
+
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 82af98c21557 -r b98b596ebd4b audio/flac/distinfo
--- a/audio/flac/distinfo Tue Dec 17 10:50:53 2019 +0000
+++ b/audio/flac/distinfo Tue Dec 17 13:59:50 2019 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.28 2019/08/05 15:35:12 adam Exp $
+$NetBSD: distinfo,v 1.29 2019/12/17 13:59:50 nros Exp $
SHA1 (flac-1.3.3.tar.xz) = 6ac2e8f1dd18c9b0214c4d81bd70cdc1e943cffe
RMD160 (flac-1.3.3.tar.xz) = 8e5d51781d2cead83f2f0cdd1f28ba4cc641e0e1
SHA512 (flac-1.3.3.tar.xz) = d6417e14fab0c41b2df369e5e39ce62a5f588e491af4d465b0162f74e171e5549b2f061867f344bfbf8aaccd246bf5f2acd697e532a2c7901c920c69429b1a28
Size (flac-1.3.3.tar.xz) = 1044472 bytes
+SHA1 (patch-configure.ac) = 6a6635a37bdbfe7bc2a4e2531f27935f9d545368
SHA1 (patch-microbench_util.c) = f03bfbef537d10ceb9742451ec3509be886e15ed
+SHA1 (patch-src_libFLAC_cpu.c) = 874fae82ad0596696579d6053f1b19018073c079
SHA1 (patch-strip_non_asm_libtool_args.sh) = f90f09fbf6a0fa938693a9d52316d3a4105129e5
diff -r 82af98c21557 -r b98b596ebd4b audio/flac/patches/patch-configure.ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/flac/patches/patch-configure.ac Tue Dec 17 13:59:50 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure.ac,v 1.1 2019/12/17 13:59:50 nros Exp $
+
+* check for getauxval and sys/auxv.h since it is not available on all systems
+
+--- configure.ac.orig 2019-12-16 17:00:33.348861095 +0000
++++ configure.ac
+@@ -103,7 +103,8 @@ AC_CHECK_TYPES(socklen_t, [], [])
+
+ dnl check for getopt in standard library
+ dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
+-AC_CHECK_FUNCS(getopt_long, [], [])
++AC_CHECK_FUNCS([getopt_long getauxval], [], [])
++AC_CHECK_HEADERS([sys/auxv.h])
+
+ AC_CHECK_SIZEOF(void*,1)
+
diff -r 82af98c21557 -r b98b596ebd4b audio/flac/patches/patch-src_libFLAC_cpu.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/flac/patches/patch-src_libFLAC_cpu.c Tue Dec 17 13:59:50 2019 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_libFLAC_cpu.c,v 1.1 2019/12/17 13:59:50 nros Exp $
+
+* check for getauxval and sys/auxv.h since it is not available on all systems
+
+--- src/libFLAC/cpu.c.orig 2018-08-20 08:17:21.000000000 +0000
++++ src/libFLAC/cpu.c
+@@ -53,7 +53,7 @@
+ #define dfprintf(file, format, ...)
+ #endif
+
+-#if defined FLAC__CPU_PPC
++#if (defined(FLAC__CPU_PPC) && defined(HAVE_SYS_AUXV_H))
+ #include <sys/auxv.h>
+ #endif
+
+@@ -236,7 +236,7 @@ x86_cpu_info (FLAC__CPUInfo *info)
+ static void
+ ppc_cpu_info (FLAC__CPUInfo *info)
+ {
+-#if defined FLAC__CPU_PPC
++#if (defined(FLAC__CPU_PPC) && defined(HAVE_GETAUXVAL))
+ #ifndef PPC_FEATURE2_ARCH_3_00
+ #define PPC_FEATURE2_ARCH_3_00 0x00800000
+ #endif
Home |
Main Index |
Thread Index |
Old Index