Build on macOS with libgpod

This commit is contained in:
Jonas Kvinge
2021-05-01 20:30:13 +02:00
parent 2b15dae806
commit f2c7df3a3b

View File

@@ -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