aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-04-20 09:46:18 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-04-20 09:46:18 +0000
commit70e90749f865d72f23ea88ca07faba783b750f0e (patch)
tree68ef8cd738ef3b4da898df4e53bacf94b7f9f2c6 /audio
parenta395752eabf88c55be198cb3a568988bd3807c90 (diff)
downloadports-70e90749f865d72f23ea88ca07faba783b750f0e.tar.gz
ports-70e90749f865d72f23ea88ca07faba783b750f0e.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/lastfm-desktop/Makefile40
-rw-r--r--audio/lastfm-desktop/distinfo2
-rw-r--r--audio/lastfm-desktop/files/lastfm-desktop.sh.in3
-rw-r--r--audio/lastfm-desktop/files/patch-admin_qmake_3rdparty.pro.inc11
-rw-r--r--audio/lastfm-desktop/files/patch-app_client_MediaDevices_IpodDevice_linux.cpp11
-rw-r--r--audio/lastfm-desktop/pkg-descr5
-rw-r--r--audio/lastfm-desktop/pkg-plist16
8 files changed, 89 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index ef060ef01bc8..5144f78b83af 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -351,6 +351,7 @@
SUBDIR += lash
SUBDIR += last-cmus
SUBDIR += last.fm
+ SUBDIR += lastfm-desktop
SUBDIR += liba52
SUBDIR += libaacplus
SUBDIR += libadplug
diff --git a/audio/lastfm-desktop/Makefile b/audio/lastfm-desktop/Makefile
new file mode 100644
index 000000000000..51dbc19a9192
--- /dev/null
+++ b/audio/lastfm-desktop/Makefile
@@ -0,0 +1,40 @@
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
+# $FreeBSD$
+
+PORTNAME= lastfm
+PORTVERSION= 2.1.30
+CATEGORIES= audio
+MASTER_SITES= http://cdn.last.fm/client/Linux/
+PKGNAMESUFFIX= -desktop
+DISTNAME= Last.fm-${PORTVERSION}
+
+MAINTAINER= g.veniamin@googlemail.com
+COMMENT= Official Last.fm desktop application suite
+
+LICENSE= GPLv3
+
+LIB_DEPENDS= lastfm:${PORTSDIR}/audio/liblastfm \
+ avcodec1:${PORTSDIR}/multimedia/ffmpeg1 \
+ gpod:${PORTSDIR}/audio/libgpod
+
+USE_BZIP2= yes
+USE_QT4= gui linguist_build moc_build network phonon qmake_build \
+ rcc_build uic_build webkit xml
+USE_LDCONFIG= yes
+LASTFM= ${PORTNAME}${PKGNAMESUFFIX}
+SUB_FILES= ${LASTFM}.sh
+
+WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
+
+do-configure:
+ cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS}
+
+do-install:
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${LASTFM}.sh ${PREFIX}/bin/${LASTFM}
+ ${INSTALL_PROGRAM} ${WRKSRC}/_bin/Last.fm\ Scrobbler ${DATADIR}/
+ ${INSTALL_LIB} ${WRKSRC}/_bin/lib*.so* ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/app/client/Last.fm\ Scrobbler.css \
+ ${DATADIR}/
+
+.include <bsd.port.mk>
diff --git a/audio/lastfm-desktop/distinfo b/audio/lastfm-desktop/distinfo
new file mode 100644
index 000000000000..854f49d55546
--- /dev/null
+++ b/audio/lastfm-desktop/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Last.fm-2.1.30.tar.bz2) = a8591930af2c76100840fa94082e831d5aeb2893c264528a15ec5151bf0cc2a4
+SIZE (Last.fm-2.1.30.tar.bz2) = 5970748
diff --git a/audio/lastfm-desktop/files/lastfm-desktop.sh.in b/audio/lastfm-desktop/files/lastfm-desktop.sh.in
new file mode 100644
index 000000000000..6843cf0ba257
--- /dev/null
+++ b/audio/lastfm-desktop/files/lastfm-desktop.sh.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+LASTFM='Last.fm Scrobbler'
+LD_LIBRARY_PATH=%%DATADIR%% %%DATADIR%%/"${LASTFM}"
diff --git a/audio/lastfm-desktop/files/patch-admin_qmake_3rdparty.pro.inc b/audio/lastfm-desktop/files/patch-admin_qmake_3rdparty.pro.inc
new file mode 100644
index 000000000000..1a816120a045
--- /dev/null
+++ b/audio/lastfm-desktop/files/patch-admin_qmake_3rdparty.pro.inc
@@ -0,0 +1,11 @@
+--- admin/qmake/3rdparty.pro.inc.orig 2013-02-04 11:07:09.028832360 +0400
++++ admin/qmake/3rdparty.pro.inc 2013-02-04 11:07:35.513973069 +0400
+@@ -19,7 +19,7 @@
+ LIBS += /usr/local/lib/libswresample.dylib
+ } else {
+ CONFIG += link_pkgconfig
+- PKGCONFIG += libavformat libavcodec libavutil
++ PKGCONFIG += libavformat1 libavcodec1 libavutil1
+ packagesExist(libswresample) {
+ PKGCONFIG += libswresample
+ DEFINES += HAVE_SWRESAMPLE
diff --git a/audio/lastfm-desktop/files/patch-app_client_MediaDevices_IpodDevice_linux.cpp b/audio/lastfm-desktop/files/patch-app_client_MediaDevices_IpodDevice_linux.cpp
new file mode 100644
index 000000000000..458032a8f262
--- /dev/null
+++ b/audio/lastfm-desktop/files/patch-app_client_MediaDevices_IpodDevice_linux.cpp
@@ -0,0 +1,11 @@
+--- app/client/MediaDevices/IpodDevice_linux.cpp.orig 2013-03-20 13:01:09.893307620 +0000
++++ app/client/MediaDevices/IpodDevice_linux.cpp 2013-03-20 13:01:18.972308216 +0000
+@@ -34,7 +34,7 @@
+ extern "C"
+ {
+ #include <gpod/itdb.h>
+- #include <glib/glist.h>
++ #include <glib.h>
+ }
+
+ IpodTracksFetcher::IpodTracksFetcher( Itdb_iTunesDB *itdb, QSqlDatabase scrobblesdb,
diff --git a/audio/lastfm-desktop/pkg-descr b/audio/lastfm-desktop/pkg-descr
new file mode 100644
index 000000000000..43dec1e7ab3e
--- /dev/null
+++ b/audio/lastfm-desktop/pkg-descr
@@ -0,0 +1,5 @@
+Enhance your listening experience, stay up-to-date with what your friends are
+listening to, view your listening history and share it with friends. The more
+Last.fm learns what you like, the better it gets.
+
+WWW: http://www.last.fm/download
diff --git a/audio/lastfm-desktop/pkg-plist b/audio/lastfm-desktop/pkg-plist
new file mode 100644
index 000000000000..5de88c1e7a26
--- /dev/null
+++ b/audio/lastfm-desktop/pkg-plist
@@ -0,0 +1,16 @@
+bin/lastfm-desktop
+%%DATADIR%%/Last.fm Scrobbler
+%%DATADIR%%/Last.fm Scrobbler.css
+%%DATADIR%%/liblistener.so
+%%DATADIR%%/liblistener.so.1
+%%DATADIR%%/liblistener.so.1.0
+%%DATADIR%%/liblistener.so.1.0.0
+%%DATADIR%%/liblogger.so
+%%DATADIR%%/liblogger.so.1
+%%DATADIR%%/liblogger.so.1.0
+%%DATADIR%%/liblogger.so.1.0.0
+%%DATADIR%%/libunicorn.so
+%%DATADIR%%/libunicorn.so.1
+%%DATADIR%%/libunicorn.so.1.0
+%%DATADIR%%/libunicorn.so.1.0.0
+@dirrm %%DATADIR%%