mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
audcious: new recipe
This commit is contained in:
committed by
Gerasim Troeglazov
parent
7c2aad0dc2
commit
76fb188812
124
media-sound/audacious/audacious-4.3.1.recipe
Normal file
124
media-sound/audacious/audacious-4.3.1.recipe
Normal file
@@ -0,0 +1,124 @@
|
||||
SUMMARY="An advanced audio player"
|
||||
DESCRIPTION="Audacious is an open source audio player. A descendant of XMMS, \
|
||||
Audacious plays your music how you want it, without stealing away your \
|
||||
computer’s resources from other tasks.
|
||||
|
||||
Drag and drop folders and individual song files, search for artists and albums \
|
||||
in your entire music library, or create and edit your own custom playlists. \
|
||||
Listen to CD’s or stream music from the Internet. Tweak the sound with the \
|
||||
graphical equalizer or experiment with LADSPA effects.
|
||||
Enjoy the modern GTK-themed interface or change things up with Winamp Classic \
|
||||
skins.
|
||||
|
||||
Install the Audacious Plugins package to fetch lyrics for your music, to set \
|
||||
an alarm in the morning, and more."
|
||||
HOMEPAGE="https://audacious-media-player.org/"
|
||||
COPYRIGHT="2001-2021 Audacious developers and others"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/audacious-media-player/audacious/archive/audacious-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ee920bf22fb54ec91f2ff3c8821d6f8e7dacca72fdb6bacf626868c087e77088"
|
||||
SOURCE_DIR="audacious-audacious-$portVersion"
|
||||
#PATCHES="audacious-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="audacious.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
audacious$secondaryArchSuffix = $portVersion
|
||||
app:Audacious$secondaryArchSuffix = $portVersion
|
||||
lib:libaudcore$secondaryArchSuffix = 5.3.0 compat >= 5
|
||||
lib:libaudqt$secondaryArchSuffix = 2.3.0 compat >= 2
|
||||
lib:libaudtag$secondaryArchSuffix = 3.0.0 compat >= 3
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libarchive$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgmodule_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
audacious${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libaudcore$secondaryArchSuffix = 5.3.0 compat >= 5
|
||||
devel:libaudqt$secondaryArchSuffix = 2.3.0 compat >= 2
|
||||
devel:libaudtag$secondaryArchSuffix = 3.0.0 compat >= 3
|
||||
"
|
||||
REQUIRES_devel="
|
||||
audacious$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libarchive$secondaryArchSuffix
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autom4te
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
runConfigure ./configure \
|
||||
--disable-gtk \
|
||||
--enable-qt \
|
||||
--disable-dbus \
|
||||
--enable-libarchive \
|
||||
--enable-valgrind
|
||||
make $jobArgs
|
||||
true
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
make install
|
||||
rm -rf $binDir/audacious
|
||||
cp src/audacious/audacious $appsDir/Audacious
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.qt5-audacious"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="0"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/audacious.rdef.in > audacious.rdef
|
||||
|
||||
addResourcesToBinaries audacious.rdef $appsDir/Audacious
|
||||
mimeset -f $appsDir/Audacious
|
||||
addAppDeskbarSymlink $appsDir/Audacious
|
||||
|
||||
fixPkgconfig
|
||||
prepareInstalledDevelLibs libaudtag libaudqt libaudcore
|
||||
packageEntries devel $developDir
|
||||
|
||||
}
|
||||
37
media-sound/audacious/patches/audacious-4.3.1.patchset
Normal file
37
media-sound/audacious/patches/audacious-4.3.1.patchset
Normal file
@@ -0,0 +1,37 @@
|
||||
From 3cd3ad87812094fb0f54fd0ef2e3a135fafeadf4 Mon Sep 17 00:00:00 2001
|
||||
From: hfsfox <darkkitsunezx128k2309@gmail.com>
|
||||
Date: Mon, 23 Oct 2023 01:31:18 +0300
|
||||
Subject: fix settings dir
|
||||
|
||||
|
||||
diff --git a/src/libaudcore/runtime.cc b/src/libaudcore/runtime.cc
|
||||
index 0131e1e..fc92da2 100644
|
||||
--- a/src/libaudcore/runtime.cc
|
||||
+++ b/src/libaudcore/runtime.cc
|
||||
@@ -35,6 +35,9 @@
|
||||
#ifdef __APPLE__
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
+#ifdef __HAIKU__
|
||||
+#include <FindDirectory.h>
|
||||
+#endif
|
||||
|
||||
#include <glib.h>
|
||||
#include <libintl.h>
|
||||
@@ -249,6 +252,13 @@ static void set_install_paths()
|
||||
static void set_config_paths()
|
||||
{
|
||||
const char * xdg_config_home = g_get_user_config_dir();
|
||||
+ #ifdef __HAIKU__
|
||||
+ char audaciousSettings[PATH_MAX] = "";
|
||||
+ if (find_directory(B_USER_SETTINGS_DIRECTORY, -1, false, audaciousSettings, sizeof(audaciousSettings)) == B_OK) {
|
||||
+ strcat(audaciousSettings, "/Audacious");
|
||||
+ xdg_config_home = audaciousSettings;
|
||||
+ }
|
||||
+ #endif
|
||||
StringBuf name = (instance_number == 1)
|
||||
? str_copy("audacious")
|
||||
: str_printf("audacious-%d", instance_number);
|
||||
--
|
||||
2.42.0
|
||||
|
||||
Reference in New Issue
Block a user