git: 015d36da886e - main - audio/gogglesmm: Fix build with FOX 1.7.81
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Nov 2022 17:13:23 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=015d36da886e30f7f81631032680cb5d51329d23
commit 015d36da886e30f7f81631032680cb5d51329d23
Author: Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2022-11-14 17:07:05 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2022-11-14 17:13:14 +0000
audio/gogglesmm: Fix build with FOX 1.7.81
---
audio/gogglesmm/Makefile | 2 +-
audio/gogglesmm/files/patch-gap_fox.h | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/audio/gogglesmm/Makefile b/audio/gogglesmm/Makefile
index d54e0476509d..f7e3f1a43f57 100644
--- a/audio/gogglesmm/Makefile
+++ b/audio/gogglesmm/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gogglesmm
PORTVERSION= 1.2.2
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= audio
MAINTAINER= jhale@FreeBSD.org
diff --git a/audio/gogglesmm/files/patch-gap_fox.h b/audio/gogglesmm/files/patch-gap_fox.h
index c9d375c0b72a..70dcf116e1c6 100644
--- a/audio/gogglesmm/files/patch-gap_fox.h
+++ b/audio/gogglesmm/files/patch-gap_fox.h
@@ -1,18 +1,21 @@
-Fix build with FOX 1.7.80
+Fix build with FOX >= 1.7.80
--- gap/fox.h.orig 2020-12-27 21:40:54 UTC
+++ gap/fox.h
-@@ -35,6 +35,9 @@
+@@ -35,6 +35,12 @@
#define FXVERSION(major,minor,release) ((release)+(minor*1000)+(major*100000))
#include <fxdefs.h>
+#if FOXVERSION >= FXVERSION(1, 7, 80)
+#include <fxchar.h>
++#endif
++#if FOXVERSION >= FXVERSION(1, 7, 81)
++#include <fxmath.h>
+#endif
#include <fxendian.h>
#include <fxascii.h>
#include <fxunicode.h>
-@@ -121,6 +124,25 @@ constexpr FXTime operator"" _ms(unsigned long long int
+@@ -121,6 +127,25 @@ constexpr FXTime operator"" _ms(unsigned long long int
{
return value * NANOSECONDS_PER_MILLISECOND;
}