pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/fasttracker2 fasttracker2: Fixes build failures.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c52350b93197
branches:  trunk
changeset: 398577:c52350b93197
user:      fox <fox%pkgsrc.org@localhost>
date:      Mon Jul 22 23:38:47 2019 +0000

description:
fasttracker2: Fixes build failures.

Fixes build failures in i386 platforms where SSE option is not available.

Fix suggested by leot%NetBSD.org@localhost

diffstat:

 audio/fasttracker2/Makefile                            |   3 +-
 audio/fasttracker2/distinfo                            |   4 ++-
 audio/fasttracker2/patches/patch-src_ft2__header.h     |  18 ++++++++++++
 audio/fasttracker2/patches/patch-src_ft2__sample__ed.c |  27 ++++++++++++++++++
 4 files changed, 50 insertions(+), 2 deletions(-)

diffs (82 lines):

diff -r 88c7763701d6 -r c52350b93197 audio/fasttracker2/Makefile
--- a/audio/fasttracker2/Makefile       Mon Jul 22 23:05:11 2019 +0000
+++ b/audio/fasttracker2/Makefile       Mon Jul 22 23:38:47 2019 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.29 2019/07/13 21:39:34 fox Exp $
+# $NetBSD: Makefile,v 1.30 2019/07/22 23:38:47 fox Exp $
 
 DISTNAME=      ft2clone-${DISTVERSION}-code
 PKGNAME=       fasttracker2-${DISTVERSION:C/b/2./}
 DISTVERSION=   b162
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  https://16-bits.org/ \
                ${MASTER_SITE_FREEBSD_LOCAL:=ehaupt/}
diff -r 88c7763701d6 -r c52350b93197 audio/fasttracker2/distinfo
--- a/audio/fasttracker2/distinfo       Mon Jul 22 23:05:11 2019 +0000
+++ b/audio/fasttracker2/distinfo       Mon Jul 22 23:38:47 2019 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.28 2019/07/13 21:39:34 fox Exp $
+$NetBSD: distinfo,v 1.29 2019/07/22 23:38:47 fox Exp $
 
 SHA1 (ft2clone-b162-code.zip) = 4616581dac4cd8b498c88cad381dd9910b326390
 RMD160 (ft2clone-b162-code.zip) = a24993258f783e345f812f75a35a703154fb0aec
 SHA512 (ft2clone-b162-code.zip) = 4b85514aece028075e8e5017c3b0c26638f0c74e18ac669788393a03457cb903959a548de9b1ca249eab8e629e18503dd1a7519aa81645a26e8f25684c4ec817
 Size (ft2clone-b162-code.zip) = 3953315 bytes
 SHA1 (patch-src_ft2__diskop.c) = 0ade49429ec36d44b6cb6bc3b829317fcd08df81
+SHA1 (patch-src_ft2__header.h) = d1a575cfb4bb0c3c384686fad2346cc8929d88c5
+SHA1 (patch-src_ft2__sample__ed.c) = aa7acc6c3061049cdfee8024dec2e417521c5fc8
 SHA1 (patch-src_ft2__unicode.c) = 3dca4d5b2de1a2794bde7060d2f7bf6f4923c91c
diff -r 88c7763701d6 -r c52350b93197 audio/fasttracker2/patches/patch-src_ft2__header.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/patches/patch-src_ft2__header.h        Mon Jul 22 23:38:47 2019 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_ft2__header.h,v 1.1 2019/07/22 23:38:47 fox Exp $
+
+Add the HAS_SSE macro so that build failures do not occur in i386
+systems that lack SSE support.
+
+Suggestion by leot@
+
+--- src/ft2_header.h.orig      2019-07-22 16:21:07.522137321 +0000
++++ src/ft2_header.h
+@@ -77,7 +77,7 @@
+ #define float2int32_round(i, f) (i = _mm_cvt_ss2si(_mm_load_ss(&f)))
+ #define double2int32_round(i, d) (i = _mm_cvtsd_si32(_mm_load_sd(&d)))
+ 
+-#elif defined _WIN32 || defined __i386__ // may have SSE and SSE2
++#elif defined HAS_SSE && (defined _WIN32 || defined __i386__) // may have SSE and SSE2
+ 
+ #define float2int32_round(i, f) \
+       if (cpu.hasSSE) \
diff -r 88c7763701d6 -r c52350b93197 audio/fasttracker2/patches/patch-src_ft2__sample__ed.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/patches/patch-src_ft2__sample__ed.c    Mon Jul 22 23:38:47 2019 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_ft2__sample__ed.c,v 1.1 2019/07/22 23:38:47 fox Exp $
+
+Add the HAS_SSE macro so that build failures do not occur in i386
+systems that lack SSE support.
+
+Suggestion by leot@
+
+--- src/ft2_sample_ed.c.orig   2019-07-22 16:27:23.010951973 +0000
++++ src/ft2_sample_ed.c
+@@ -689,7 +689,7 @@ static void sampleLine(int16_t x1, int16
+ 
+ static void getMinMax16(const void *p, uint32_t scanLen, int16_t *min16, int16_t *max16)
+ {
+-#if defined __APPLE__ || defined _WIN32 || defined __i386__ || defined __amd64__
++#if defined __APPLE__ || (defined HAS_SSE && (defined _WIN32 || defined __i386)) || defined __amd64__
+       if (cpu.hasSSE2)
+       {
+               /* Taken with permission from the OpenMPT project (and slightly modified).
+@@ -775,7 +775,7 @@ static void getMinMax16(const void *p, u
+ 
+ static void getMinMax8(const void *p, uint32_t scanLen, int8_t *min8, int8_t *max8)
+ {
+-#if defined __APPLE__ || defined _WIN32 || defined __i386__ || defined __amd64__
++#if defined __APPLE__ || (defined HAS_SSE && (defined _WIN32 || defined __i386)) || defined __amd64__
+       if (cpu.hasSSE2)
+       {
+               /* Taken with permission from the OpenMPT project (and slightly modified).



Home | Main Index | Thread Index | Old Index