Skip to content

Commit

Permalink
QMPlay2: legacy version: fix YouTube search, backport bit-perfect audio
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Nov 29, 2024
1 parent 6f4d9f9 commit df77c27
Show file tree
Hide file tree
Showing 7 changed files with 1,876 additions and 3 deletions.
24 changes: 21 additions & 3 deletions multimedia/QMPlay2/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,32 @@ if {${os.platform} eq "darwin" && ${os.major} < 15} {
size 1228156
github.tarball_from archive

# These are added to support YouTube:
depends_lib-append \
port:qjson4
depends_run-append \
port:yt-dlp

patchfiles-append \
0001-macOS-unbreak-build-with-Qt4.patch \
0002-MainWidget-fix-for-missing-qt_mac_set_dock_menu.patch \
0003-ScreenSaver-fix-IOKit-defines.patch \
0004-PlayClass-do-not-use-QRawFont.patch \
0005-Revert-some-broken-code.patch \
0006-FFMpeg-fix-compatibility-with-modern-FFMpeg.patch \
0007-Fix-Qt-paths.patch
0007-Fix-YT-search.patch \
0008-Switch-to-yt-dlp.patch \
0009-PortAudio-Allow-bit-perfect-audio-output-for-macOS-1.patch \
0010-Do-not-force-fetching-yt-dlp-it-does-not-work-use-Ma.patch \
0011-YouTubeDL-move-to-QJson.patch \
0012-Fix-Qt-paths.patch

configure.args-append \
-DDEFAULT_QT5=OFF \
-DUSE_FFMPEG_VTB=OFF \
-DUSE_JEMALLOC=OFF \
-DUSE_OPENGL2=OFF \
-DUSE_TEKSTOWO=ON \
-DUSE_FFMPEG_VTB=OFF
-DUSE_TEKSTOWO=ON

compiler.cxx_standard 2011

Expand All @@ -51,6 +62,13 @@ if {${os.platform} eq "darwin" && ${os.major} < 15} {
}
}

notes "
${name} expects to have yt-dlp in ~/.qmplay2/ and use it for YouTube playback.\
After installation you could make a symlink to MacPorts-provided yt-dlp:\
\
ln -s ${prefix}/bin/yt-dlp ~/.qmplay/
"

variant jemalloc description "Use Jemalloc" {
depends_lib-append \
port:jemalloc
Expand Down
Loading

0 comments on commit df77c27

Please sign in to comment.