amarok
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import kde5
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
shelltools.export("XDG_DATA_DIRS", get.workDIR())
|
||||
|
||||
def setup():
|
||||
shelltools.system("sed -i -e 's|PATH_SUFFIXES lastfm5|PATH_SUFFIXES lastfm|' cmake/modules/FindLibLastFm.cmake")
|
||||
kde5.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_INSTALL_DIR=lib \
|
||||
-DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
|
||||
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DKDE_DISTRIBUTION_TEXT='PisiLinux'")
|
||||
|
||||
def build():
|
||||
kde5.make()
|
||||
|
||||
def install():
|
||||
kde5.install()
|
||||
|
||||
pisitools.dodoc("AUTHORS", "README", "COPYING", "ChangeLog")
|
||||
@@ -0,0 +1,85 @@
|
||||
diff --git a/src/musicbrainz/MusicDNSAudioDecoder.cpp b/src/musicbrainz/MusicDNSAudioDecoder.cpp
|
||||
index 6216e5ce26cc3461b89aea560943ad7a79101af9..65a92fb43811d0cbdde5e2442880496b3417da68 100644
|
||||
--- a/src/musicbrainz/MusicDNSAudioDecoder.cpp
|
||||
+++ b/src/musicbrainz/MusicDNSAudioDecoder.cpp
|
||||
@@ -243,7 +243,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
{
|
||||
if( !decodedFrame )
|
||||
{
|
||||
- decodedFrame = avcodec_alloc_frame();
|
||||
+ decodedFrame = av_frame_alloc();
|
||||
if( !decodedFrame )
|
||||
{
|
||||
warning() << "Unable to allocate enough memory to decode file.";
|
||||
@@ -251,7 +251,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
break;
|
||||
}
|
||||
else
|
||||
- avcodec_get_frame_defaults( decodedFrame );
|
||||
+ av_frame_unref( decodedFrame );
|
||||
}
|
||||
|
||||
decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
|
||||
@@ -287,7 +287,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
|
||||
avcodec_close( pCodecCtx );
|
||||
avformat_close_input( &pFormatCtx );
|
||||
- av_free( decodedFrame );
|
||||
+ av_frame_free( &decodedFrame );
|
||||
|
||||
return data->duration();
|
||||
}
|
||||
@@ -361,7 +361,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
{
|
||||
if( !decodedFrame )
|
||||
{
|
||||
- decodedFrame = avcodec_alloc_frame();
|
||||
+ decodedFrame = av_frame_alloc();
|
||||
if( !decodedFrame )
|
||||
{
|
||||
warning() << "Unable to allocate enough memory to decode file.";
|
||||
@@ -369,7 +369,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
break;
|
||||
}
|
||||
else
|
||||
- avcodec_get_frame_defaults( decodedFrame );
|
||||
+ av_frame_unref( decodedFrame );
|
||||
}
|
||||
|
||||
decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
|
||||
@@ -405,7 +405,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
|
||||
avcodec_close( pCodecCtx );
|
||||
avformat_close_input( &pFormatCtx );
|
||||
- av_free( decodedFrame );
|
||||
+ av_frame_free( &decodedFrame );
|
||||
|
||||
return data->duration();
|
||||
}
|
||||
@@ -479,7 +479,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
{
|
||||
if( !decodedFrame )
|
||||
{
|
||||
- decodedFrame = avcodec_alloc_frame();
|
||||
+ decodedFrame = av_frame_alloc();
|
||||
if( !decodedFrame )
|
||||
{
|
||||
warning() << "Unable to allocate enough memory to decode file.";
|
||||
@@ -487,7 +487,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
break;
|
||||
}
|
||||
else
|
||||
- avcodec_get_frame_defaults( decodedFrame );
|
||||
+ av_frame_unref( decodedFrame );
|
||||
}
|
||||
|
||||
decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
|
||||
@@ -523,7 +523,7 @@ MusicDNSAudioDecoder::decode( const QString &fileName, DecodedAudioData *data, c
|
||||
|
||||
avcodec_close( pCodecCtx );
|
||||
av_close_input_file( pFormatCtx );
|
||||
- av_free( decodedFrame );
|
||||
+ av_frame_free( &decodedFrame );
|
||||
|
||||
return data->duration();
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>amarok</Name>
|
||||
<Homepage>http://amarok.kde.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<Icon>amarok</Icon>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Amarok audio player</Summary>
|
||||
<Description>Amarok is a feature-rich audio player for the KDE desktop.</Description>
|
||||
<Archive sha1sum="9957b4df666a1e19fc6d9fd411d48b5d11f88a65" type="zip">https://github.com/KDE/amarok/archive/0b2b243b2b70471c32d282157624379da5214051.zip</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>qt5-svg-devel</Dependency>
|
||||
<Dependency>qt5-script-devel</Dependency>
|
||||
<Dependency>qt5-sql-mysql</Dependency>
|
||||
<Dependency>qt5-sql-odbc</Dependency>
|
||||
<Dependency>qt5-sql-postgresql</Dependency>
|
||||
<Dependency>qt5-sql-sqlite</Dependency>
|
||||
<Dependency>qt5-declarative-devel</Dependency>
|
||||
<Dependency>qt5-webkit-devel</Dependency>
|
||||
<Dependency>kcoreaddons-devel</Dependency>
|
||||
<Dependency>solid-devel</Dependency>
|
||||
<Dependency>kdelibs4-support-devel</Dependency>
|
||||
<Dependency>kcodecs-devel</Dependency>
|
||||
<Dependency>ki18n-devel</Dependency>
|
||||
<Dependency>threadweaver-devel</Dependency>
|
||||
<Dependency>plasma-framework-devel</Dependency>
|
||||
<Dependency>kcmutils-devel</Dependency>
|
||||
<Dependency>knewstuff-devel</Dependency>
|
||||
<Dependency>ktexteditor-devel</Dependency>
|
||||
<Dependency>kglobalaccel-devel</Dependency>
|
||||
<Dependency>kio-devel</Dependency>
|
||||
<Dependency>knotifyconfig-devel</Dependency>
|
||||
<Dependency>karchive-devel</Dependency>
|
||||
<Dependency>kdnssd-devel</Dependency>
|
||||
<Dependency>kdesignerplugin</Dependency>
|
||||
<Dependency>kdoctools-devel</Dependency>
|
||||
<Dependency>kemoticons-devel</Dependency>
|
||||
<Dependency>kitemmodels-devel</Dependency>
|
||||
<Dependency>kinit-devel</Dependency>
|
||||
<Dependency>kunitconversion-devel</Dependency>
|
||||
<Dependency>taglib-devel</Dependency>
|
||||
<Dependency>libqjson-devel</Dependency>
|
||||
<Dependency>curl-devel</Dependency>
|
||||
<Dependency>libmtp-devel</Dependency>
|
||||
<Dependency>ffmpeg-devel</Dependency>
|
||||
<Dependency>liblastfm-devel</Dependency>
|
||||
<Dependency>qca2-qt5-devel</Dependency>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
<Dependency>libofa-devel</Dependency>
|
||||
<Dependency>clamz</Dependency>
|
||||
<Dependency>ifuse</Dependency>
|
||||
<Dependency>loudmouth-devel</Dependency>
|
||||
<Dependency>libgpod-devel</Dependency>
|
||||
<Dependency>libmygpo-qt-devel</Dependency>
|
||||
<Dependency>taglib-extras-devel</Dependency>
|
||||
<Dependency>gdk-pixbuf-devel</Dependency>
|
||||
<Dependency>gst-plugins-base-next-devel</Dependency>
|
||||
<Dependency>gst-plugins-bad-next-devel</Dependency>
|
||||
<Dependency>mariadb-lib</Dependency>
|
||||
<Dependency>mariadb-client</Dependency>
|
||||
<Dependency>mariadb-server</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">rb126682.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>amarok</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>kio</Dependency>
|
||||
<Dependency>ki18n</Dependency>
|
||||
<Dependency>solid</Dependency>
|
||||
<Dependency>ffmpeg</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>libofa</Dependency>
|
||||
<Dependency>taglib</Dependency>
|
||||
<Dependency>kcodecs</Dependency>
|
||||
<Dependency>kconfig</Dependency>
|
||||
<Dependency>kxmlgui</Dependency>
|
||||
<Dependency>qt5-svg</Dependency>
|
||||
<Dependency>karchive</Dependency>
|
||||
<Dependency>kcmutils</Dependency>
|
||||
<Dependency>kservice</Dependency>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
<Dependency>knewstuff</Dependency>
|
||||
<Dependency>liblastfm</Dependency>
|
||||
<Dependency>kguiaddons</Dependency>
|
||||
<Dependency>kitemviews</Dependency>
|
||||
<Dependency>qt5-phonon</Dependency>
|
||||
<Dependency>qt5-script</Dependency>
|
||||
<Dependency>kcompletion</Dependency>
|
||||
<Dependency>kcoreaddons</Dependency>
|
||||
<Dependency>kdbusaddons</Dependency>
|
||||
<Dependency>kiconthemes</Dependency>
|
||||
<Dependency>ktexteditor</Dependency>
|
||||
<Dependency>mariadb-lib</Dependency>
|
||||
<Dependency>kglobalaccel</Dependency>
|
||||
<Dependency>ktextwidgets</Dependency>
|
||||
<Dependency>threadweaver</Dependency>
|
||||
<Dependency>kwindowsystem</Dependency>
|
||||
<Dependency>taglib-extras</Dependency>
|
||||
<Dependency>kconfigwidgets</Dependency>
|
||||
<Dependency>knotifications</Dependency>
|
||||
<Dependency>kwidgetsaddons</Dependency>
|
||||
<Dependency>kdelibs4-support</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share/amarok</Path>
|
||||
<Path fileType="data">/usr/share/appdata</Path>
|
||||
<Path fileType="data">/usr/share/applications/</Path>
|
||||
<Path fileType="config">/usr/share/config.kcfg</Path>
|
||||
<Path fileType="data">/usr/share/dbus-1/interfaces</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/icons</Path>
|
||||
<Path fileType="data">/usr/share/kconf_update</Path>
|
||||
<Path fileType="data">/usr/share/knotifications5</Path>
|
||||
<Path fileType="data">/usr/share/kservices5</Path>
|
||||
<Path fileType="data">/usr/share/kservicetypes5</Path>
|
||||
<Path fileType="data">/usr/share/solid</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2017-01-07</Date>
|
||||
<Version>2.8.83</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>amarok</Name>
|
||||
<Summary xml:lang="tr">KDE için müzik çalıcısı</Summary>
|
||||
<Summary xml:lang="de">Amarok Audio-Player</Summary>
|
||||
<Summary xml:lang="pl">Odtwarzacz muzyczny Amarok</Summary>
|
||||
<Summary xml:lang="es">Reproductor de música para KDE</Summary>
|
||||
<Summary xml:lang="nl">Amarok Audio-speler</Summary>
|
||||
<Description xml:lang="tr">Amarok, pek çok yeni özelliklere sahip yeni nesil bir müzik çalıcısıdır</Description>
|
||||
<Description xml:lang="fr">Lecteur audio riche en fonctionnalité pour le système KDE.</Description>
|
||||
<Description xml:lang="pl">Amarok to bogaty w funkcje odtwarzacz audio dedykowany środowisku graficznemu KDE.</Description>
|
||||
<Description xml:lang="es">Amarok es un potente reproductor de música con una interfaz intuitiva</Description>
|
||||
<Description xml:lang="nl">Amarok is een feature-rijke audio-speler voor het KDE-bureaublad.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user