mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
QMPlay2: update to 20.05.02.
This commit is contained in:
parent
30a53c904b
commit
6fa8da22b7
2 changed files with 7 additions and 26 deletions
|
@ -1,24 +0,0 @@
|
||||||
--- src/qmplay2/QMPlay2OSD.cpp.orig 2018-10-21 13:35:36.079993098 +0200
|
|
||||||
+++ src/qmplay2/QMPlay2OSD.cpp 2018-10-21 13:38:08.398003961 +0200
|
|
||||||
@@ -19,11 +19,21 @@
|
|
||||||
#include <QMPlay2OSD.hpp>
|
|
||||||
|
|
||||||
#include <QAtomicInteger>
|
|
||||||
+#ifdef Q_ATOMIC_INT64_IS_SUPPORTED
|
|
||||||
static QAtomicInteger<quint64> g_id;
|
|
||||||
+#else
|
|
||||||
+static QAtomicInteger<quint32> g_id[2];
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
void QMPlay2OSD::genId()
|
|
||||||
{
|
|
||||||
+#ifdef Q_ATOMIC_INT64_IS_SUPPORTED
|
|
||||||
m_id = ++g_id;
|
|
||||||
+#else
|
|
||||||
+ if (0 == ++g_id[0])
|
|
||||||
+ ++g_id[1];
|
|
||||||
+ m_id = (static_cast<quint64>(g_id[1]) << 32) | g_id[0];
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMPlay2OSD::clear(bool all)
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'QMPlay2'
|
# Template file for 'QMPlay2'
|
||||||
pkgname=QMPlay2
|
pkgname=QMPlay2
|
||||||
version=19.12.19
|
version=20.05.02
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="${pkgname}-src-${version}"
|
wrksrc="${pkgname}-src-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
@ -15,7 +15,12 @@ license="LGPL-3.0-only"
|
||||||
homepage="http://zaps166.sourceforge.net/?app=QMPlay2"
|
homepage="http://zaps166.sourceforge.net/?app=QMPlay2"
|
||||||
changelog="https://raw.githubusercontent.com/zaps166/QMPlay2/master/ChangeLog"
|
changelog="https://raw.githubusercontent.com/zaps166/QMPlay2/master/ChangeLog"
|
||||||
distfiles="https://github.com/zaps166/QMPlay2/releases/download/${version}/QMPlay2-src-${version}.tar.xz"
|
distfiles="https://github.com/zaps166/QMPlay2/releases/download/${version}/QMPlay2-src-${version}.tar.xz"
|
||||||
checksum=ef85bc83e916266f9467d9f7a8a82cc5c150a5a7e807034b195f666973d16b35
|
checksum=79380131cc7aa01e7aa6c8c25515bd810635f1b71461fcb72480f2df712a1bda
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
makedepends+=" libatomic-devel"
|
||||||
|
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
|
||||||
|
fi
|
||||||
|
|
||||||
QMPlay2-devel_package() {
|
QMPlay2-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue