aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-12-01 00:50:19 +0800
committerdanfe <danfe@FreeBSD.org>2016-12-01 00:50:19 +0800
commitcf584acefad988d5ce474e64bea50d060834c979 (patch)
treee20c6512fdc38c900f4543dbfa7988678fb1caa1 /audio
parent79427fa203847d199c8aba396d0654e60676ae1f (diff)
downloadfreebsd-ports-gnome-cf584acefad988d5ce474e64bea50d060834c979.tar.gz
freebsd-ports-gnome-cf584acefad988d5ce474e64bea50d060834c979.tar.zst
freebsd-ports-gnome-cf584acefad988d5ce474e64bea50d060834c979.zip
Sayonara is a small, clear, and fast audio player for Unix-like systems,
written in C++ on Qt 5.x framework and using GStreamer as audio backend. WWW: http://www.sayonara-player.com/
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/sayonara/Makefile32
-rw-r--r--audio/sayonara/distinfo3
-rw-r--r--audio/sayonara/files/patch-src_CMakeLists.txt11
-rw-r--r--audio/sayonara/files/patch-src_Main.cpp38
-rw-r--r--audio/sayonara/pkg-descr15
-rw-r--r--audio/sayonara/pkg-plist57
7 files changed, 157 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 730e9bb1598d..37d86bbe1613 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -701,6 +701,7 @@
SUBDIR += rubygem-ruby-ogginfo
SUBDIR += rubygem-ruby-shout
SUBDIR += s3mod
+ SUBDIR += sayonara
SUBDIR += sbagen
SUBDIR += schism
SUBDIR += scrobbler
diff --git a/audio/sayonara/Makefile b/audio/sayonara/Makefile
new file mode 100644
index 000000000000..ff69726ecb26
--- /dev/null
+++ b/audio/sayonara/Makefile
@@ -0,0 +1,32 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= sayonara
+PORTVERSION= 0.9.2
+CATEGORIES= audio
+MASTER_SITES= http://www.sayonara-player.com/sw/
+DISTNAME= ${PORTNAME}-player-${PORTVERSION}-git11-20161030
+
+MAINTAINER= multimedia@FreeBSD.org
+COMMENT= Small, clear, and fast Qt-based audio player
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/license.txt
+
+LIB_DEPENDS= libtag.so:audio/taglib
+
+USES= cmake execinfo pkgconfig
+USE_GSTREAMER1= flac mpg123 ogg opus vorbis # XXX: likely incomplete
+USE_QT5= dbus core gui network sql widgets xml \
+ buildtools_build qmake_build linguisttools_build
+INSTALLS_ICONS= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-player
+
+post-patch:
+ @${REINPLACE_CMD} -e '/man1/s,share/,,' \
+ ${WRKSRC}/resources/CMakeLists.txt
+ @${REINPLACE_CMD} -e '/DESTINATION/s,/usr/,,' \
+ ${WRKSRC}/src/GUI/Resources/Icons/CMakeLists.txt
+
+.include <bsd.port.mk>
diff --git a/audio/sayonara/distinfo b/audio/sayonara/distinfo
new file mode 100644
index 000000000000..50c5800a1006
--- /dev/null
+++ b/audio/sayonara/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1477828406
+SHA256 (sayonara-player-0.9.2-git11-20161030.tar.gz) = 815c2e0c64520edb99571b52c6384320c110e8a4ef5be5c13803a156f64be148
+SIZE (sayonara-player-0.9.2-git11-20161030.tar.gz) = 1706145
diff --git a/audio/sayonara/files/patch-src_CMakeLists.txt b/audio/sayonara/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..2ad88e25256e
--- /dev/null
+++ b/audio/sayonara/files/patch-src_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/CMakeLists.txt.orig 2016-10-30 11:53:25 UTC
++++ src/CMakeLists.txt
+@@ -161,6 +161,8 @@ IF(WIN32)
+ api-ms-win-core-winrt-string-l1-1-0
+ ${GIO_LIBRARIES}
+ )
++ELSE()
++ SET(OS_LIBRARIES execinfo)
+ ENDIF()
+
+
diff --git a/audio/sayonara/files/patch-src_Main.cpp b/audio/sayonara/files/patch-src_Main.cpp
new file mode 100644
index 000000000000..f90c621b6ccf
--- /dev/null
+++ b/audio/sayonara/files/patch-src_Main.cpp
@@ -0,0 +1,38 @@
+--- src/Main.cpp.orig 2016-10-30 11:53:25 UTC
++++ src/Main.cpp
+@@ -38,7 +38,7 @@
+ #include <QtGlobal>
+ #include <algorithm>
+
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ #include <execinfo.h> // backtrace
+ #include <csignal> // kill/signal
+ #include <sys/types.h> // kill
+@@ -150,7 +150,7 @@ void segfault_handler(int sig){
+
+ Q_UNUSED(sig)
+
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+
+ void* array[10];
+ size_t size;
+@@ -176,7 +176,7 @@ int main(int argc, char *argv[]) {
+ #endif
+
+
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+
+ signal(SIGSEGV, segfault_handler);
+
+@@ -187,7 +187,7 @@ int main(int argc, char *argv[]) {
+ return 0;
+ }
+
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+
+ int pid=0;
+ if( !cmd_data.multiple_instances ){
diff --git a/audio/sayonara/pkg-descr b/audio/sayonara/pkg-descr
new file mode 100644
index 000000000000..5351c94b84b7
--- /dev/null
+++ b/audio/sayonara/pkg-descr
@@ -0,0 +1,15 @@
+Sayonara is a small, clear, and fast audio player for Unix-like systems,
+written in C++ on Qt 5.x framework and using GStreamer as audio backend.
+
+Although Sayonara is considered as a lightweight player, it holds a lot
+of features to organize even big music collections.
+
+Most of them are known from the bigger and well known audio players. But
+in contrast to most of the other players the main focus during developing
+has been performance, low CPU usage, and low memory consumption.
+
+So Sayonara is a good alternative to players like Rhythmbox, Clementine,
+or Amarok. Those who miss Winamp for Unix should give Sayonara a try.
+One of Sayonara's goals is intuitive and easy usability.
+
+WWW: http://www.sayonara-player.com/
diff --git a/audio/sayonara/pkg-plist b/audio/sayonara/pkg-plist
new file mode 100644
index 000000000000..63f87edbe962
--- /dev/null
+++ b/audio/sayonara/pkg-plist
@@ -0,0 +1,57 @@
+bin/sayonara
+lib/sayonara/libsayonara_somafm.so
+lib/sayonara/libsayonara_soundcloud.so
+man/man1/sayonara.1.gz
+share/appdata/sayonara.appdata.xml
+share/applications/sayonara.desktop
+share/icons/hicolor/128x128/apps/sayonara.png
+share/icons/hicolor/16x16/apps/sayonara.png
+share/icons/hicolor/192x192/apps/sayonara.png
+share/icons/hicolor/22x22/apps/sayonara.png
+share/icons/hicolor/24x24/apps/sayonara.png
+share/icons/hicolor/256x256/apps/sayonara.png
+share/icons/hicolor/32x32/apps/sayonara.png
+share/icons/hicolor/32x32/apps/sayonara.xpm
+share/icons/hicolor/36x36/apps/sayonara.png
+share/icons/hicolor/48x48/apps/sayonara.png
+share/icons/hicolor/64x64/apps/sayonara.png
+share/icons/hicolor/72x72/apps/sayonara.png
+share/icons/hicolor/96x96/apps/sayonara.png
+share/icons/sayonara.png
+share/menu/sayonara
+share/pixmaps/sayonara.png
+%%DATADIR%%/bg-checker.png
+%%DATADIR%%/dark.css
+%%DATADIR%%/favicon.ico
+%%DATADIR%%/logo.png
+%%DATADIR%%/player.db
+%%DATADIR%%/soundcloud.db
+%%DATADIR%%/standard.css
+%%DATADIR%%/translations/icons/br.png
+%%DATADIR%%/translations/icons/cs.png
+%%DATADIR%%/translations/icons/de.png
+%%DATADIR%%/translations/icons/en.png
+%%DATADIR%%/translations/icons/es.png
+%%DATADIR%%/translations/icons/fr.png
+%%DATADIR%%/translations/icons/hu.png
+%%DATADIR%%/translations/icons/it.png
+%%DATADIR%%/translations/icons/pl.png
+%%DATADIR%%/translations/icons/pt.png
+%%DATADIR%%/translations/icons/ro.png
+%%DATADIR%%/translations/icons/ru.png
+%%DATADIR%%/translations/icons/ua.png
+%%DATADIR%%/translations/icons/zh_cn.png
+%%DATADIR%%/translations/sayonara_lang_br.qm
+%%DATADIR%%/translations/sayonara_lang_cs.qm
+%%DATADIR%%/translations/sayonara_lang_de.qm
+%%DATADIR%%/translations/sayonara_lang_en.qm
+%%DATADIR%%/translations/sayonara_lang_es.qm
+%%DATADIR%%/translations/sayonara_lang_fr.qm
+%%DATADIR%%/translations/sayonara_lang_hu.qm
+%%DATADIR%%/translations/sayonara_lang_it.qm
+%%DATADIR%%/translations/sayonara_lang_pl.qm
+%%DATADIR%%/translations/sayonara_lang_pt.qm
+%%DATADIR%%/translations/sayonara_lang_ro.qm
+%%DATADIR%%/translations/sayonara_lang_ru.qm
+%%DATADIR%%/translations/sayonara_lang_ua.qm
+%%DATADIR%%/translations/sayonara_lang_zh_cn.qm