aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lastfm-desktop/Makefile
blob: 4c18919c72c5a9414fe3ed843834986c857456d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lastfm-desktop
PORTVERSION=    2.1.36
PORTREVISION=   2
CATEGORIES= audio

MAINTAINER= vg@FreeBSD.org
COMMENT=    Official Last.fm desktop application suite

LICENSE=    GPLv3

LIB_DEPENDS=    liblastfm.so:audio/liblastfm \
        libavcodec.so:multimedia/ffmpeg \
        libgpod.so:audio/libgpod \
        libimobiledevice.so:comms/libimobiledevice \
        libplist.so:devel/libplist

USE_GITHUB= yes
GH_ACCOUNT= lastfm

USES=       gettext pkgconfig qmake tar:bzip2 gmake
USE_QT4=    corelib gui linguist_build moc_build network phonon \
        rcc_build sql uic_build webkit xml
SUB_FILES=  lastfm-desktop.sh

DESKTOP_ENTRIES="Last.fm Scrobbler" \
        "${COMMENT}" \
        "${PREFIX}/share/pixmaps/audioscrobbler.ico" \
        "lastfm-desktop" \
        "AudioVideo;Audio;Qt;" \
        true

OPTIONS_SINGLE=     PHONON
OPTIONS_SINGLE_PHONON=  GSTREAMER VLC
OPTIONS_DEFAULT=    VLC
GSTREAMER_DESC=     Multimedia via Phonon-GStreamer
GSTREAMER_USE=      QT4=dbus,phonon-gst_run GNOME=gdkpixbuf2,glib20
VLC_DESC=       Multimedia via Phonon-VLC
VLC_RUN_DEPENDS=    phonon-vlc>=0.6.1:multimedia/phonon-vlc

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/lastfm-desktop.sh ${STAGEDIR}${PREFIX}/bin/lastfm-desktop
    ${INSTALL_PROGRAM} ${WRKSRC}/_bin/fingerprinter ${STAGEDIR}${DATADIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/_bin/lastfm-scrobbler ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/app/client/Last.fm\ Scrobbler.css ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/app/client/audioscrobbler.ico ${STAGEDIR}${PREFIX}/share/pixmaps/
    (cd ${WRKSRC}/app/client && ${COPYTREE_SHARE} qrc ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>