Install this version:
emerge -a =media-sound/binauralplayer-1.5.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-sound/binauralplayer-1.5.1
Or alternatively:
emerge --autounmask-write -a =media-sound/binauralplayer-1.5.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.5.1 | 8 | ~amd64 | 0 |
# Copyright 2025 Alamahant
EAPI=8
inherit cmake
S="${WORKDIR}/BinauralPlayer-1.5.1"
DESCRIPTION="BinauralPlayer - A binaural and isochronic tone generator and full-featured audio player"
HOMEPAGE="https://github.com/alamahant/BinauralPlayer"
SRC_URI="https://github.com/alamahant/BinauralPlayer/archive/refs/tags/v1.5.1.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="dev-build/cmake"
DEPEND="
dev-qt/qtbase:6[gui,widgets,network]
dev-qt/qtmultimedia:6[pulseaudio,pipewire,vaapi]
"
RDEPEND="${DEPEND}"
src_prepare() {
# Delete the original CMakeLists.txt
rm -f "${S}/CMakeLists.txt"
# Create new Qt6-only CMakeLists.txt
cat > "${S}/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.19)
project(BinauralPlayer VERSION 1.5.1 LANGUAGES CXX)
# Qt6 auto features
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
# Find Qt6 components
find_package(Qt6 6.5 REQUIRED COMPONENTS
Core
Widgets
Multimedia
MultimediaWidgets
OpenGL
OpenGLWidgets
)
qt_standard_project_setup()
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
binauralengine.cpp binauralengine.h
constants.cpp constants.h
dynamicengine.cpp dynamicengine.h
helpmenudialog.cpp helpmenudialog.h
donationdialog.cpp donationdialog.h
ambientplayer.cpp ambientplayer.h
ambientplayerdialog.cpp ambientplayerdialog.h
sessiondialog.cpp sessiondialog.h
cuesheetdialog.cpp cuesheetdialog.h
flickerwidget.cpp flickerwidget.h
vistimdialog.cpp vistimdialog.h
resources.qrc
)
qt_add_executable(BinauralPlayer
WIN32 MACOSX_BUNDLE
${PROJECT_SOURCES}
)
target_link_libraries(BinauralPlayer PRIVATE
Qt6::Core
Qt6::Widgets
Qt6::Multimedia
Qt6::MultimediaWidgets
Qt6::OpenGL
Qt6::OpenGLWidgets
)
set_target_properties(BinauralPlayer PROPERTIES
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)
include(GNUInstallDirs)
# Install the application
install(TARGETS BinauralPlayer
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# Conditionally install desktop file and icons for Gentoo
# Install desktop file
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/BinauralPlayer.desktop"
DESTINATION "share/applications")
# Install icons
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/favicon/android-chrome-192x192.png"
DESTINATION "share/icons/hicolor/192x192/apps"
RENAME "io.github.alamahant.BinauralPlayer.png")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/favicon/android-chrome-512x512.png"
DESTINATION "share/icons/hicolor/512x512/apps"
RENAME "io.github.alamahant.BinauralPlayer.png")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/favicon/favicon-16x16.png"
DESTINATION "share/icons/hicolor/16x16/apps"
RENAME "io.github.alamahant.BinauralPlayer.png")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/favicon/favicon-32x32.png"
DESTINATION "share/icons/hicolor/32x32/apps"
RENAME "io.github.alamahant.BinauralPlayer.png")
EOF
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
)
cmake_src_configure "${mycmakeargs[@]}"
}
src_compile() {
cmake_build
}
src_install() {
cmake_src_install
# Install desktop file
insinto /usr/share/applications
doins "${S}/BinauralPlayer.desktop"
# Install icons from the favicon directory
insinto /usr/share/icons/hicolor/16x16/apps
newins "${S}/favicon/favicon-16x16.png" io.github.alamahant.BinauralPlayer.png
insinto /usr/share/icons/hicolor/32x32/apps
newins "${S}/favicon/favicon-32x32.png" io.github.alamahant.BinauralPlayer.png
insinto /usr/share/icons/hicolor/192x192/apps
newins "${S}/favicon/android-chrome-192x192.png" io.github.alamahant.BinauralPlayer.png
insinto /usr/share/icons/hicolor/512x512/apps
newins "${S}/favicon/android-chrome-512x512.png" io.github.alamahant.BinauralPlayer.png
}
dev-qt/qtbase:6[gui,widgets,network]
dev-qt/qtmultimedia:6[pulseaudio,pipewire,vaapi]
dev-qt/qtbase:6[gui,widgets,network]
dev-qt/qtmultimedia:6[pulseaudio,pipewire,vaapi]
dev-build/cmake
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | binauralplayer-1.5.1.tar.gz | 657411 bytes | https://github.com/alamahant/BinauralPlayer/archive/refs/tags/v1.5.1.tar.gz |