libsidplayfp: update to 3.0.2

This commit is contained in:
Mohamed Akram
2026-06-24 21:00:25 +04:00
parent fd5aa9b3e0
commit fbdba7656c
3 changed files with 4 additions and 76 deletions
+4 -7
View File
@@ -3,7 +3,7 @@
PortSystem 1.0
PortGroup github 1.0
github.setup libsidplayfp libsidplayfp 3.0.1 v
github.setup libsidplayfp libsidplayfp 3.0.2 v
revision 0
categories audio devel
license GPL-2+
@@ -16,17 +16,14 @@ long_description libsidplayfp is a C64 music player library which integrates
environment, constantly aiming to improve emulation of the \
C64 system and the SID chips.
checksums rmd160 4d6a008da8d801a1558cb218484ec4bda597028d \
sha256 6b8ffedc2f631a4ca53258e60468eab3e6a2dc4e1369b2e59e3a5955f99a2143 \
size 700149
checksums rmd160 d84b168585724a3f26f0174f30903fab21980c79 \
sha256 d67ab120ab8ca10657c0e33a7fc21638484e1af4037738c36faa66fb7747cac3 \
size 696974
depends_build path:bin/pkg-config:pkgconfig
depends_lib port:libresidfp
# https://github.com/libsidplayfp/libsidplayfp/issues/262
patchfiles patch-fix-build.diff
compiler.cxx_standard 2011
configure.args --without-usbsid
@@ -1,59 +0,0 @@
From c7c37b2502370d8bf83320b311f27b04337bc8ed Mon Sep 17 00:00:00 2001
From: Leandro Nini <drfiemost@users.sourceforge.net>
Date: Sat, 6 Jun 2026 20:19:18 +0200
Subject: [PATCH 1/2] Add missing include (#262)
for std::abs(int)
---
src/builders/sidlite-builder/sidlite/Filter.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/builders/sidlite-builder/sidlite/Filter.cpp b/src/builders/sidlite-builder/sidlite/Filter.cpp
index bd1851d55..20436d315 100644
--- src/builders/sidlite-builder/sidlite/Filter.cpp
+++ src/builders/sidlite-builder/sidlite/Filter.cpp
@@ -30,6 +30,7 @@
#include <map>
#include <mutex>
+#include <cstdlib>
#include <cmath>
namespace SIDLite
From f76db1faea64f99ce1ded7c56d31672eb6685dbb Mon Sep 17 00:00:00 2001
From: Leandro Nini <drfiemost@users.sourceforge.net>
Date: Sat, 6 Jun 2026 20:24:03 +0200
Subject: [PATCH 2/2] Fix build on macOS 10.13 (#262)
older compilers with c++17 support may have <experimental/optional>
---
src/properties.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/properties.h b/src/properties.h
index 622429e4c..8e79eac3d 100644
--- src/properties.h
+++ src/properties.h
@@ -1,7 +1,7 @@
/*
* This file is part of libsidplayfp, a SID player engine.
*
- * Copyright 2025 Leandro Nini <drfiemost@users.sourceforge.net>
+ * Copyright 2025-2026 Leandro Nini <drfiemost@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,6 +24,12 @@
#include "sidcxx11.h"
#ifdef HAVE_CXX17
+# if __has_include(<optional>)
+# define HAS_OPTIONAL 1
+# endif
+#endif
+
+#ifdef HAS_OPTIONAL
#include <optional>
@@ -1,10 +0,0 @@
--- src/builders/sidlite-builder/sidlite/Filter.cpp
+++ src/builders/sidlite-builder/sidlite/Filter.cpp
@@ -30,6 +30,7 @@
#include <map>
#include <mutex>
+#include <cstdlib>
#include <cmath>
namespace SIDLite