diff options
Diffstat (limited to 'audio/ft2-clone')
-rw-r--r-- | audio/ft2-clone/Makefile | 2 | ||||
-rw-r--r-- | audio/ft2-clone/distinfo | 6 | ||||
-rw-r--r-- | audio/ft2-clone/files/patch-src_ft2__unicode.c | 38 |
3 files changed, 42 insertions, 4 deletions
diff --git a/audio/ft2-clone/Makefile b/audio/ft2-clone/Makefile index f95a5e5de0d5..78b55b200736 100644 --- a/audio/ft2-clone/Makefile +++ b/audio/ft2-clone/Makefile @@ -1,6 +1,6 @@ PORTNAME= ft2-clone DISTVERSIONPREFIX= v -DISTVERSION= 1.96 +DISTVERSION= 1.98 CATEGORIES= audio MAINTAINER= ehaupt@FreeBSD.org diff --git a/audio/ft2-clone/distinfo b/audio/ft2-clone/distinfo index 469242f2a138..cdadccd9b0aa 100644 --- a/audio/ft2-clone/distinfo +++ b/audio/ft2-clone/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1747987328 -SHA256 (8bitbubsy-ft2-clone-v1.96_GH0.tar.gz) = 027a8a18bbaa151a758ccc8a14da281aa5136f9a4c6f90ef0f4b6c611d081e03 -SIZE (8bitbubsy-ft2-clone-v1.96_GH0.tar.gz) = 5229013 +TIMESTAMP = 1757397054 +SHA256 (8bitbubsy-ft2-clone-v1.98_GH0.tar.gz) = 6078f209e2b9f4b27f15b0495627bf24e704d84dcb139374083cdfa250b8bb65 +SIZE (8bitbubsy-ft2-clone-v1.98_GH0.tar.gz) = 5205311 diff --git a/audio/ft2-clone/files/patch-src_ft2__unicode.c b/audio/ft2-clone/files/patch-src_ft2__unicode.c new file mode 100644 index 000000000000..94d1f1823e84 --- /dev/null +++ b/audio/ft2-clone/files/patch-src_ft2__unicode.c @@ -0,0 +1,38 @@ +--- src/ft2_unicode.c.orig 2025-09-09 06:08:58 UTC ++++ src/ft2_unicode.c +@@ -4,20 +4,21 @@ + #endif + + // for detecting if musl or glibc is used +-#if !defined _WIN32 && !defined __APPLE__ +- #ifndef _GNU_SOURCE +- #define _GNU_SOURCE +- #include <features.h> +- #ifndef __USE_GNU +- #define __MUSL__ +- #endif +- #undef _GNU_SOURCE /* don't contaminate other includes unnecessarily */ +- #else +- #include <features.h> +- #ifndef __USE_GNU +- #define __MUSL__ +- #endif +- #endif ++#if defined(__linux__) ++ /* Only Linux has glibc's <features.h>. On BSDs (including FreeBSD) and others, ++ skip this block to avoid a missing-header error. */ ++ #ifdef __has_include ++ #if __has_include(<features.h>) ++ #include <features.h> ++ #endif ++ #else ++ /* If the compiler doesn't support __has_include, assume features.h exists on glibc. */ ++ #include <features.h> ++ #endif ++ /* If <features.h> didn't define glibc's GNU extensions, assume musl. */ ++ #ifndef __USE_GNU ++ #define __MUSL__ ++ #endif + #endif + + #include <stdlib.h> |