From 590bcf1c7c0ee0f91f277f8d870ef29127e8a86f Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Wed, 5 May 2021 23:31:23 -0700 Subject: [PATCH] build: Add libgpod for mac This change was taken from Strawberry. When and if a homebrew libgpod package becomes available, this change can be replaced. Reference: https://github.com/strawberrymusicplayer/strawberry/commit/f2c7df3a3b9aabf2b720c1f669ee28fdbb0bd257 --- .github/workflows/all.yml | 25 +++++++++++++++++++++++++ Brewfile | 8 ++++++++ 2 files changed, 33 insertions(+) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 517a89bbb..b46d6928c 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -890,6 +890,31 @@ jobs: - uses: actions/checkout@v1.2.0 - name: Install dependencies run: brew bundle + + - name: Build libgpod + shell: bash + env: + PERL_MM_USE_DEFAULT: 1 + run: | + sudo cpan install XML::Parser + wget https://downloads.sourceforge.net/project/gtkpod/libgpod/libgpod-0.8/libgpod-0.8.3.tar.bz2 + tar -xvf libgpod-0.8.3.tar.bz2 + cd libgpod-0.8.3 + wget https://raw.githubusercontent.com/macports/macports-ports/master/multimedia/libgpod/files/autogen.sh + wget https://raw.githubusercontent.com/macports/macports-ports/master/multimedia/libgpod/files/patch-tools-generic-callout.c.diff + wget http://files.strawberrymusicplayer.org/patches/libgpod-libplist.patch + patch -p0 < patch-tools-generic-callout.c.diff + patch -p1 < libgpod-libplist.patch + chmod u+x autogen.sh + ./autogen.sh + ./configure --disable-more-warnings \ + --disable-silent-rules \ + --disable-udev \ + --disable-pygobject \ + --with-python=no + make -j2 + sudo make install + - name: Fix liblastfm includes run: ln -s /usr/local/include/lastfm /usr/local/include/lastfm5 - name: cmake diff --git a/Brewfile b/Brewfile index b86ec0dc8..dc9bcbce0 100644 --- a/Brewfile +++ b/Brewfile @@ -1,9 +1,13 @@ +brew 'autoconf' +brew 'automake' brew 'boost' brew 'chromaprint' brew 'cmake' brew 'fftw' +brew 'gdk-pixbuf' brew 'glew' brew 'glib' +brew 'gnome-common' brew 'google-sparsehash' brew 'gst-libav' brew 'gst-plugins-bad' @@ -11,9 +15,13 @@ brew 'gst-plugins-base' brew 'gst-plugins-good' brew 'gst-plugins-ugly' brew 'gstreamer' +brew 'gtk-doc' +brew 'intltool' brew 'libmtp' +brew 'libplist' brew 'pkgconfig' brew 'protobuf' brew 'protobuf-c' brew 'qt@5' brew 'tomahawk-player/homebrew-tomahawkqt5/liblastfm' +brew 'wget'