mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
50d8255830
- Move to official GitHub repo, since the official CDN is out of date
- Patch of LAV_Source.cpp renamed to follow file move, and updated to
fix build with FFmpeg 3.0.x - obtained from ArchLinx [1].
Note that multimedia/ffmpeg is currently still on the 2.8.x branch,
however this patch is backwards compatible with ffmpeg 2.8.x.
- Patch of RadioService.cpp updated - obtained from ArchLinux [2].
- Remove patch of podDevice_linux.cpp, as the change was upstreamed
- Add additional dependencies to LIB_DEPENDS and USE_QT4 as found by
new stage-qa script.
- Ensure program will appear in desktop manager menus by installing icon
and adding DESKTOP_ENTRIES.
- Add the audio playback run dependencies, with the option of
either VLC or GSTREAMER. Without one of these, it crashes upon run.
- Remove the LD_LIBRARY_PATH, as it is no longer needed now that the
lastfm-desktop binaries are statically linked to it's private libraries [3].
- Also do not install the *.a static libraries, as they are not used by any other
programs/ports and not needed by the lastfm-desktop binaries.
- Install all of the files required by for the .css stylesheet to work.
[1] https://aur.archlinux.org/cgit/aur.git/tree/LAV_Source_fix.patch?h=lastfm
[2] https://aur.archlinux.org/cgit/aur.git/tree/cast-bug.patch?h=lastfm
[3] a6d2225e36
Reviewed by: mat (mentor)
Approved by: vg (maintainer timeout), adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D6874
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lastfm-desktop
|
|
PORTVERSION= 2.1.36
|
|
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>
|