From f2c7df3a3b9aabf2b720c1f669ee28fdbb0bd257 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 1 May 2021 20:30:13 +0200 Subject: [PATCH] Build on macOS with libgpod --- .github/workflows/ccpp.yml | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 28eb20b84..feec93898 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1179,6 +1179,7 @@ jobs: - name: Install packages run: > brew install + wget glib pkgconfig boost @@ -1201,6 +1202,13 @@ jobs: libmtp create-dmg taglib + libplist + gnome-common + gdk-pixbuf + intltool + autoconf + automake + gtk-doc - name: Install Sparkle run: brew install --cask sparkle @@ -1210,6 +1218,30 @@ jobs: run: | sudo ln -s /usr/local/Caskroom/sparkle/$(ls /usr/local/Caskroom/sparkle | head -n1) /usr/local/opt/sparkle + - 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 -j8 + sudo make install + - name: Create Build Environment shell: bash run: cmake -E make_directory build @@ -1245,6 +1277,7 @@ jobs: - name: Install packages run: > brew install + wget glib pkgconfig boost @@ -1267,6 +1300,13 @@ jobs: libmtp create-dmg taglib + libplist + gnome-common + gdk-pixbuf + intltool + autoconf + automake + gtk-doc - name: Install Sparkle run: brew install --cask sparkle @@ -1276,6 +1316,30 @@ jobs: run: | sudo ln -s /usr/local/Caskroom/sparkle/$(ls /usr/local/Caskroom/sparkle | head -n1) /usr/local/opt/sparkle + - 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 -j8 + sudo make install + - name: Create Build Environment shell: bash run: cmake -E make_directory build