Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2022 18:54:40 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 491f8bf3707c - main - audio/festalon: add support for powerpc, powerpc64
Message-ID:  <202203011854.221IsevA088277@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=491f8bf3707cd3073822be5831bbd92b55edc265

commit 491f8bf3707cd3073822be5831bbd92b55edc265
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-03-01 18:47:09 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-03-01 18:47:09 +0000

    audio/festalon: add support for powerpc, powerpc64
    
    1. Clang needs -maltivec.
    2. Include altivec.h to make AltiVec actually available.
---
 audio/festalon/Makefile                 |  2 +-
 audio/festalon/files/patch-configure    | 11 +++++++++++
 audio/festalon/files/patch-src_filter.c | 13 +++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/audio/festalon/Makefile b/audio/festalon/Makefile
index a7fe7297f28a..e762536ecf20 100644
--- a/audio/festalon/Makefile
+++ b/audio/festalon/Makefile
@@ -13,7 +13,7 @@ COMMENT=	Command line player for .nsf and .hes audio files
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS=	amd64 powerpc powerpc64
 
 LIB_DEPENDS=	libsamplerate.so:audio/libsamplerate
 
diff --git a/audio/festalon/files/patch-configure b/audio/festalon/files/patch-configure
new file mode 100644
index 000000000000..728e8fc70528
--- /dev/null
+++ b/audio/festalon/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig	2022-03-01 14:06:45 UTC
++++ configure
+@@ -20915,7 +20915,7 @@ else
+ fi
+ 
+ elif expr x"$target_cpu" : 'xpowerpc' > /dev/null; then
+-	CFLAGS="-faltivec $CFLAGS"
++	CFLAGS="-maltivec $CFLAGS"
+ 	cat >>confdefs.h <<\_ACEOF
+ #define ARCH_POWERPC 1
+ _ACEOF
diff --git a/audio/festalon/files/patch-src_filter.c b/audio/festalon/files/patch-src_filter.c
new file mode 100644
index 000000000000..e4f7aa9d1ee7
--- /dev/null
+++ b/audio/festalon/files/patch-src_filter.c
@@ -0,0 +1,13 @@
+--- src/filter.c.orig	2022-03-01 18:15:52 UTC
++++ src/filter.c
+@@ -20,6 +20,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+ 
++#ifdef __powerpc__
++#include <altivec.h>
++#endif
++
+ #include <samplerate.h>
+ 
+ #include "types.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203011854.221IsevA088277>