freebsd-ports/audio/lastfm-desktop/Makefile

54 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
audio/lastfm-desktop: Update to 2.1.36 - 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] https://github.com/lastfm/lastfm-desktop/commit/a6d2225e368aaeb66ec5345717120013b40f2518 Reviewed by: mat (mentor) Approved by: vg (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6874
2016-07-03 23:40:02 +02:00
PORTNAME= lastfm-desktop
PORTVERSION= 2.1.36
PORTREVISION= 6
CATEGORIES= audio
MAINTAINER= ports@FreeBSD.org
COMMENT= Official Last.fm desktop application suite
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= liblastfm.so:audio/liblastfm \
libavcodec.so:multimedia/ffmpeg \
audio/lastfm-desktop: Update to 2.1.36 - 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] https://github.com/lastfm/lastfm-desktop/commit/a6d2225e368aaeb66ec5345717120013b40f2518 Reviewed by: mat (mentor) Approved by: vg (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6874
2016-07-03 23:40:02 +02:00
libgpod.so:audio/libgpod \
libimobiledevice.so:comms/libimobiledevice \
libplist.so:devel/libplist
USE_GITHUB= yes
GH_ACCOUNT= lastfm
USES= gettext pkgconfig qmake gmake
USE_QT4= corelib dbus gui linguist_build moc_build network phonon \
audio/lastfm-desktop: Update to 2.1.36 - 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] https://github.com/lastfm/lastfm-desktop/commit/a6d2225e368aaeb66ec5345717120013b40f2518 Reviewed by: mat (mentor) Approved by: vg (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6874
2016-07-03 23:40:02 +02:00
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=phonon-gst_run
audio/lastfm-desktop: Update to 2.1.36 - 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] https://github.com/lastfm/lastfm-desktop/commit/a6d2225e368aaeb66ec5345717120013b40f2518 Reviewed by: mat (mentor) Approved by: vg (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6874
2016-07-03 23:40:02 +02:00
VLC_DESC= Multimedia via Phonon-VLC
VLC_RUN_DEPENDS= phonon-vlc>=0.6.1:multimedia/phonon-vlc
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
audio/lastfm-desktop: Update to 2.1.36 - 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] https://github.com/lastfm/lastfm-desktop/commit/a6d2225e368aaeb66ec5345717120013b40f2518 Reviewed by: mat (mentor) Approved by: vg (maintainer timeout), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6874
2016-07-03 23:40:02 +02:00
${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>