2013-11-02 10:44:14 +11:00
|
|
|
# Description: A music player and library organizer.
|
|
|
|
# URL: http://www.clementine-player.org/
|
|
|
|
# Packager: Chris Farrell, timcowchip at gmail dot com
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-11-04 23:02:49 +11:00
|
|
|
# Depends on: boost crypto++ glew glu gst-plugins-bad gst-plugins-good gst-plugins-ugly libechonest protobuf
|
2013-11-02 10:44:14 +11:00
|
|
|
|
|
|
|
name=clementine
|
2016-05-17 23:03:01 +10:00
|
|
|
version=1.3.1
|
2018-11-04 23:02:49 +11:00
|
|
|
release=3
|
2017-06-19 23:12:38 +10:00
|
|
|
source=(https://github.com/clementine-player/Clementine/archive/$version.tar.gz
|
2018-11-04 23:02:49 +11:00
|
|
|
https://github.com/clementine-player/Clementine/pull/5974/commits/f371fcb89f1441b50eab5015fc1bdcbd630d19ee.patch
|
|
|
|
https://github.com/clementine-player/Clementine/commit/8a6cc8b5069265e1e92e22def985e22c5955e503.patch
|
|
|
|
https://github.com/clementine-player/Clementine/commit/75f9439843a0e9cdc26cd739d5e1dbd93bd974bc.patch
|
|
|
|
https://github.com/clementine-player/Clementine/commit/ddfa5e63f1ef0e243a007efbe576fceb9b2442e8.patch
|
2017-06-19 23:12:38 +10:00
|
|
|
clementine-gcc6.patch
|
|
|
|
clementine-1.3.1-chromaprint-1.4.0.patch)
|
2013-11-02 10:44:14 +11:00
|
|
|
|
|
|
|
build() {
|
2014-05-23 12:46:45 +10:00
|
|
|
cd Clementine-$version
|
2014-10-28 22:48:00 +11:00
|
|
|
|
2017-06-19 23:12:38 +10:00
|
|
|
patch -p1 -i $SRC/clementine-gcc6.patch
|
|
|
|
patch -p1 -i $SRC/clementine-1.3.1-chromaprint-1.4.0.patch
|
|
|
|
|
2018-11-04 23:02:49 +11:00
|
|
|
# [PATCH] Fix compilation with crypto++ >= 6.0.0
|
|
|
|
patch -p1 -i $SRC/f371fcb89f1441b50eab5015fc1bdcbd630d19ee.patch
|
|
|
|
|
|
|
|
# [PATCH] Add missing <functional> includes (#5630)
|
|
|
|
patch -p1 -i $SRC/8a6cc8b5069265e1e92e22def985e22c5955e503.patch
|
|
|
|
|
|
|
|
# [PATCH 1/3] disconnect GVolumeMonitor signals from GioLister before destroying it fixes #5369
|
|
|
|
patch -p1 -i $SRC/75f9439843a0e9cdc26cd739d5e1dbd93bd974bc.patch
|
|
|
|
|
|
|
|
# [PATCH] Fix channels loading for DI.fm services after API domain changes (#6023)
|
|
|
|
patch -p1 -i $SRC/ddfa5e63f1ef0e243a007efbe576fceb9b2442e8.patch
|
|
|
|
|
2016-05-17 23:03:01 +10:00
|
|
|
install -d build
|
|
|
|
cd build
|
|
|
|
|
2017-10-12 21:27:18 +11:00
|
|
|
# make sure we do not have ccache masquerade directory in PATH
|
|
|
|
# as cmake calls ccache directly, this avoids recursvely
|
|
|
|
# calling ccache and CCACHE_PREFIX
|
|
|
|
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
|
|
|
|
2016-05-17 23:03:01 +10:00
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2018-11-04 23:02:49 +11:00
|
|
|
-DCMAKE_BUILD_TYPE='Release' \
|
|
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value"
|
2014-10-28 22:48:00 +11:00
|
|
|
|
2013-11-02 10:44:14 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|