mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
77 lines
2.8 KiB
Tcl
77 lines
2.8 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup boost 1.0
|
|
PortGroup github 1.0
|
|
PortGroup qmake 1.0
|
|
PortGroup ffmpeg 1.0
|
|
|
|
github.setup lastfm lastfm-desktop 2.1.39
|
|
revision 1
|
|
categories audio sysutils
|
|
maintainers nomaintainer
|
|
description Official Last.fm desktop application suite
|
|
long_description {*}${description}
|
|
homepage https://www.last.fm
|
|
license GPL-3
|
|
|
|
checksums rmd160 e1db8c81a55a6535b76b2876ecc38dccc86423c7 \
|
|
sha256 5755fe6c8b8cddc799e831ea80a5d213a52e93d11141514eeb3af613acaf8a57 \
|
|
size 4099355
|
|
github.tarball_from archive
|
|
|
|
ffmpeg.version 4
|
|
|
|
boost.depends_type build
|
|
|
|
depends_build-append path:libexec/coreutils/libstdbuf.so:coreutils \
|
|
port:gettext
|
|
|
|
depends_lib-append path:include/turbojpeg.h:libjpeg-turbo \
|
|
port:tiff \
|
|
port:liblastfm \
|
|
port:libmng \
|
|
port:qt4-mac-sqlite3-plugin \
|
|
port:sqlite3 \
|
|
port:zlib
|
|
|
|
patchfiles-append 0001-Drop-sparkle-and-growl.patch
|
|
|
|
platform darwin {
|
|
if {${os.major} < 11} {
|
|
patchfiles-append 0002-patch-old-systems.diff
|
|
}
|
|
if {${os.major} < 10} {
|
|
patchfiles-append 0003-Compatibility-for-10.5.patch
|
|
}
|
|
}
|
|
|
|
post-patch {
|
|
reinplace "s|@ARCH@|${configure.build_arch}|g" \
|
|
${worksrcpath}/admin/include.qmake
|
|
reinplace "s|@FFMPEG@|${ffmpeg.prefix}|g" \
|
|
${worksrcpath}/admin/qmake/3rdparty.pro.inc
|
|
reinplace "s|@PREFIX@|${prefix}|g" \
|
|
${worksrcpath}/admin/qmake/3rdparty.pro.inc \
|
|
${worksrcpath}/admin/dist/mac/bundleFrameworks.sh
|
|
reinplace "s|@BOOST_LPATH@|[boost::lib_dir]|" \
|
|
${worksrcpath}/admin/qmake/3rdparty.pro.inc
|
|
reinplace "s|@qt_plugins_dir@|${qt_plugins_dir}|" \
|
|
${worksrcpath}/admin/dist/mac/bundleFrameworks.sh
|
|
reinplace "s|@qt_translations_dir@|${qt_translations_dir}|" \
|
|
${worksrcpath}/admin/dist/mac/bundleFrameworks.sh
|
|
}
|
|
|
|
universal_variant no
|
|
|
|
destroot {
|
|
system "mv ${worksrcpath}/_bin/Last.fm*Scrobbler.app ${destroot}${applications_dir}/Last.fm.app"
|
|
}
|
|
|
|
post-destroot {
|
|
system "install_name_tool -change liblogger.1.dylib @executable_path/../MacOS/liblogger.1.0.0.dylib \
|
|
${destroot}${applications_dir}/Last.fm.app/Contents/Helpers/fingerprinter"
|
|
system "install_name_tool -change libunicorn.1.dylib @executable_path/../MacOS/libunicorn.1.0.0.dylib \
|
|
${destroot}${applications_dir}/Last.fm.app/Contents/Helpers/fingerprinter"
|
|
}
|