git: 565b03e41b62 - main - audio/fooyin: New port: foobar2000 inspired audio player

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 01 Sep 2024 14:38:46 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=565b03e41b62597899a99084c636f698b6b79219

commit 565b03e41b62597899a99084c636f698b6b79219
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-09-01 14:37:12 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-09-01 14:38:06 +0000

    audio/fooyin: New port: foobar2000 inspired audio player
    
    A customisable music player inspired by foobar2000. It offers a growing
    list of widgets to manage and play your local music collection. It's
    extensible using a plugin system and many widgets make use of FooScript
    to offer an even deeper level of control. A layout editing mode enables
    the entire user interface to be customised, starting from a blank slate
    or a preset layout.
---
 audio/Makefile                                     |  1 +
 audio/fooyin/Makefile                              | 37 +++++++++++++++++++
 audio/fooyin/distinfo                              |  3 ++
 audio/fooyin/files/patch-cmake_FooyinInstall.cmake | 20 +++++++++++
 .../files/patch-src_plugins_gme_CMakeLists.txt     | 13 +++++++
 audio/fooyin/pkg-descr                             |  5 +++
 audio/fooyin/pkg-plist                             | 41 ++++++++++++++++++++++
 7 files changed, 120 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 0ec7475a25bd..c43db890132e 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -190,6 +190,7 @@
     SUBDIR += fogpad-lv2
     SUBDIR += fomp-lv2
     SUBDIR += foo-yc20
+    SUBDIR += fooyin
     SUBDIR += fossmixer
     SUBDIR += freac
     SUBDIR += freealut
diff --git a/audio/fooyin/Makefile b/audio/fooyin/Makefile
new file mode 100644
index 000000000000..a67795d4001f
--- /dev/null
+++ b/audio/fooyin/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	fooyin
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.6.2
+CATEGORIES=	audio multimedia
+
+MAINTAINER=	diizzy@FreeBSD.org
+COMMENT=	foobar2000 inspired audio player
+WWW=		https://github.com/fooyin/fooyin
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg \
+		libgme.so:audio/libgme \
+		libicui18n.so:devel/icu \
+		libkdsingleapplication-qt6.so:devel/kdsingleapplication \
+		libtag.so:audio/taglib
+
+USES=		cmake compiler:c++20-lang desktop-file-utils gl libarchive \
+		pkgconfig qt:6 sdl
+USE_GL=		opengl
+USE_QT=		base svg tools:build
+USE_SDL=	sdl2
+
+USE_GITHUB=	yes
+
+CMAKE_OFF=	BUILD_ALSA \
+		BUILD_CCACHE \
+		BUILD_LIBVGM \
+		CMAKE_CXX_EXTENSIONS
+CMAKE_ON=	CMAKE_DISABLE_FIND_PACKAGE_ALSA \
+		CMAKE_DISABLE_FIND_PACKAGE_LibVgm \
+		CMAKE_DISABLE_FIND_PACKAGE_OpenMpt \
+		CMAKE_DISABLE_FIND_PACKAGE_PipeWire \
+		CMAKE_DISABLE_FIND_PACKAGE_SndFile
+
+.include <bsd.port.mk>
diff --git a/audio/fooyin/distinfo b/audio/fooyin/distinfo
new file mode 100644
index 000000000000..c8758f82ab7e
--- /dev/null
+++ b/audio/fooyin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1725140610
+SHA256 (fooyin-fooyin-v0.6.2_GH0.tar.gz) = ea1e128820becb70c9c2b1c648cd6c9c8816818709284cfebbdf99cce232af4f
+SIZE (fooyin-fooyin-v0.6.2_GH0.tar.gz) = 4598582
diff --git a/audio/fooyin/files/patch-cmake_FooyinInstall.cmake b/audio/fooyin/files/patch-cmake_FooyinInstall.cmake
new file mode 100644
index 000000000000..55780dcc5543
--- /dev/null
+++ b/audio/fooyin/files/patch-cmake_FooyinInstall.cmake
@@ -0,0 +1,20 @@
+--- cmake/FooyinInstall.cmake.orig	2024-08-29 19:43:57 UTC
++++ cmake/FooyinInstall.cmake
+@@ -2,7 +2,7 @@ set(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING"
+ 
+ set(README_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
+ set(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
+-
++#[[
+ install(
+     FILES ${LICENSE_FILE}
+     DESTINATION ${DOC_INSTALL_DIR}
+@@ -16,7 +16,7 @@ install(
+     RENAME README
+     COMPONENT fooyin
+ )
+-
++]]
+ install(FILES "${CMAKE_BINARY_DIR}/dist/linux/org.fooyin.fooyin.desktop"
+         DESTINATION ${XDG_APPS_INSTALL_DIR}
+         COMPONENT fooyin
diff --git a/audio/fooyin/files/patch-src_plugins_gme_CMakeLists.txt b/audio/fooyin/files/patch-src_plugins_gme_CMakeLists.txt
new file mode 100644
index 000000000000..74b4c96801de
--- /dev/null
+++ b/audio/fooyin/files/patch-src_plugins_gme_CMakeLists.txt
@@ -0,0 +1,13 @@
+--- src/plugins/gme/CMakeLists.txt.orig	2024-08-27 22:28:57 UTC
++++ src/plugins/gme/CMakeLists.txt
+@@ -22,6 +22,10 @@ target_include_directories(
+     gmeinput
+     PRIVATE ${LIBGME_INCLUDE_DIRS}
+ )
++target_link_directories(
++    gmeinput
++    PRIVATE ${LIBGME_LIBRARY_DIRS}
++)
+ 
+ fooyin_append_mimes(
+     audio/x-ay
diff --git a/audio/fooyin/pkg-descr b/audio/fooyin/pkg-descr
new file mode 100644
index 000000000000..10aeab8403ea
--- /dev/null
+++ b/audio/fooyin/pkg-descr
@@ -0,0 +1,5 @@
+A customisable music player inspired by foobar2000. It offers a growing list
+of widgets to manage and play your local music collection. It's extensible
+using a plugin system and many widgets make use of FooScript to offer an even
+deeper level of control. A layout editing mode enables the entire user
+interface to be customised, starting from a blank slate or a preset layout.
diff --git a/audio/fooyin/pkg-plist b/audio/fooyin/pkg-plist
new file mode 100644
index 000000000000..e148cdd9a4a2
--- /dev/null
+++ b/audio/fooyin/pkg-plist
@@ -0,0 +1,41 @@
+bin/fooyin
+lib/fooyin/libfooyin_core.so.0.0.0
+lib/fooyin/libfooyin_gui.so.0.0.0
+lib/fooyin/libfooyin_utils.so.0.0.0
+lib/fooyin/plugins/fyplugin_fileops.so
+lib/fooyin/plugins/fyplugin_filters.so
+lib/fooyin/plugins/fyplugin_gmeinput.so
+lib/fooyin/plugins/fyplugin_libarchive.so
+lib/fooyin/plugins/fyplugin_mpris.so
+lib/fooyin/plugins/fyplugin_rawaudio.so
+lib/fooyin/plugins/fyplugin_sdl.so
+lib/fooyin/plugins/fyplugin_tageditor.so
+lib/fooyin/plugins/fyplugin_wavebar.so
+share/applications/org.fooyin.fooyin.desktop
+%%DATADIR%%/translations/fooyin_af.qm
+%%DATADIR%%/translations/fooyin_de.qm
+%%DATADIR%%/translations/fooyin_en_US.qm
+%%DATADIR%%/translations/fooyin_es.qm
+%%DATADIR%%/translations/fooyin_fr.qm
+%%DATADIR%%/translations/fooyin_id.qm
+%%DATADIR%%/translations/fooyin_ie.qm
+%%DATADIR%%/translations/fooyin_it.qm
+%%DATADIR%%/translations/fooyin_nl.qm
+%%DATADIR%%/translations/fooyin_pl.qm
+%%DATADIR%%/translations/fooyin_pt.qm
+%%DATADIR%%/translations/fooyin_pt_BR.qm
+%%DATADIR%%/translations/fooyin_ru.qm
+%%DATADIR%%/translations/fooyin_sk.qm
+%%DATADIR%%/translations/fooyin_sv.qm
+%%DATADIR%%/translations/fooyin_th.qm
+%%DATADIR%%/translations/fooyin_zh_CN.qm
+share/icons/hicolor/128x128/apps/org.fooyin.fooyin.png
+share/icons/hicolor/16x16/apps/org.fooyin.fooyin.png
+share/icons/hicolor/22x22/apps/org.fooyin.fooyin.png
+share/icons/hicolor/256x256/apps/org.fooyin.fooyin.png
+share/icons/hicolor/32x32/apps/org.fooyin.fooyin.png
+share/icons/hicolor/48x48/apps/org.fooyin.fooyin.png
+share/icons/hicolor/512x512/apps/org.fooyin.fooyin.png
+share/icons/hicolor/64x64/apps/org.fooyin.fooyin.png
+share/icons/hicolor/scalable/apps/org.fooyin.fooyin.svg
+share/metainfo/org.fooyin.fooyin.metainfo.xml