mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
109 lines
3.4 KiB
Bash
109 lines
3.4 KiB
Bash
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. Use the plugins included with Audacious to \
|
||
fetch lyrics for your music, to set an alarm in the morning, and more."
|
||
HOMEPAGE="https://audacious-media-player.org/"
|
||
COPYRIGHT="2010-2017 Błażej Szczygieł"
|
||
LICENSE="GNU GPL v3"
|
||
REVISION="3"
|
||
SOURCE_URI="http://distfiles.audacious-media-player.org/audacious-$portVersion.tar.bz2"
|
||
CHECKSUM_SHA256="2d8044673ac786d71b08004f190bbca368258bf60e6602ffc0d9622835ccb05e"
|
||
ADDITIONAL_FILES="audacious.rdef.in"
|
||
|
||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
PROVIDES="
|
||
audacious$secondaryArchSuffix = $portVersion
|
||
app:Audacious$secondaryArchSuffix = $portVersion
|
||
lib:libaudcore$secondaryArchSuffix = 5.8.0 compat >= 5
|
||
lib:libaudqt$secondaryArchSuffix = 2.0.0 compat >= 2
|
||
lib:libaudtag$secondaryArchSuffix = 3.0.0 compat >= 3
|
||
"
|
||
REQUIRES="
|
||
haiku$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.8.0 compat >= 5
|
||
devel:libaudqt$secondaryArchSuffix = 2.0.0 compat >= 2
|
||
devel:libaudtag$secondaryArchSuffix = 3.0.0 compat >= 3
|
||
"
|
||
REQUIRES_devel="
|
||
audacious$secondaryArchSuffix == $portVersion base
|
||
"
|
||
BUILD_REQUIRES="
|
||
haiku${secondaryArchSuffix}_devel
|
||
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:make
|
||
cmd:python2
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:pkg_config$secondaryArchSuffix
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
./autogen.sh
|
||
runConfigure ./configure --disable-gtk --enable-qt --disable-dbus
|
||
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="`echo "$portVersion" | cut -d. -f3`"
|
||
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
|
||
|
||
}
|