Skip to content

macports

macports #24

Workflow file for this run

name: macports
on:
workflow_dispatch:
env:
CC: clang
CXX: clang++
CPATH: /opt/local/include
LIBRARY_PATH: /opt/local/lib
CFLAGS: -g -O2 -Wno-deprecated-declarations
CROSSCFLAGS: -g -O2
LDFLAGS: -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.15
WINE_CONFIGURE: $GITHUB_WORKSPACE/sources/wine/configure
BUILDROOT: $GITHUB_WORKSPACE/build
WINE_INSTALLROOT: install
jobs:
wine-crossover:
strategy:
fail-fast: false
matrix:
CROSS_OVER_VERSION: [23.7.1] # 23.7.0, 23.6.0, 23.5.0, 23.0.1, 23.0.0
runs-on: macos-latest
env:
CROSS_OVER_SOURCE_URL: https://media.codeweavers.com/pub/crossover/source/crossover-sources-${{ matrix.CROSS_OVER_VERSION }}.tar.gz
CROSS_OVER_LOCAL_FILE: crossover-sources-${{ matrix.CROSS_OVER_VERSION }}
WINE_INSTALLATION: wine-cx-${{ matrix.CROSS_OVER_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bootstrap MacPorts
run: . .github/workflows/bootstrap.sh
- name: Adding MacPorts into $PATH
run: |
set -eu
echo "/opt/local/bin" >> $GITHUB_PATH
echo "/opt/local/sbin" >> $GITHUB_PATH
- name: Installing dependencies build
run: |
sudo port install \
bison \
gettext \
mingw-w64 \
pkgconfig
- name: Installing dependencies libraries
run: |
sudo port install \
freetype \
gettext-runtime \
gnutls \
gstreamer1 \
gstreamer1-plugins-base \
libinotify \
moltenvk \
libsdl2
- name: Downloading Crossover Sources
run: |
curl -o ${{ env.CROSS_OVER_LOCAL_FILE }}.tar.gz ${{ env.CROSS_OVER_SOURCE_URL }}
- name: Extract Crossover Sources
run: |
tar xf ${{ env.CROSS_OVER_LOCAL_FILE }}.tar.gz
- name: Add distversion.h
run: |
cp distversion.h sources/wine/programs/winedbg/distversion.h
- name: Configure wine64
run: |
mkdir -p ${{ env.BUILDROOT }}/wine64
pushd ${{ env.BUILDROOT }}/wine64
${{ env.WINE_CONFIGURE }} \
--prefix= \
--disable-tests \
--enable-win64 \
--without-alsa \
--without-capi \
--with-coreaudio \
--with-cups \
--without-dbus \
--without-fontconfig \
--with-freetype \
--with-gettext \
--without-gettextpo \
--without-gphoto \
--with-gnutls \
--without-gssapi \
--with-gstreamer \
--with-inotify \
--without-krb5 \
--with-mingw \
--without-netapi \
--with-opencl \
--with-opengl \
--without-oss \
--with-pcap \
--with-pthread \
--without-pulse \
--without-sane \
--with-sdl \
--without-udev \
--with-unwind \
--without-usb \
--without-v4l2 \
--with-vulkan \
--without-x
popd
- name: Build wine64
run: |
pushd ${{ env.BUILDROOT }}/wine64
make -j$(sysctl -n hw.ncpu 2>/dev/null)
popd
- name: Install wine64
run: |
pushd ${{ env.BUILDROOT }}/wine64
make install-lib DESTDIR="$GITHUB_WORKSPACE/${{ env.WINE_INSTALLROOT }}"
popd
- name: Tar Wine
run: |
tar -czvf ${{ env.WINE_INSTALLATION }}.tar.gz ${{ env.WINE_INSTALLROOT }}
- name: Upload Wine
uses: actions/upload-artifact@v4
with:
name: ${{ env.WINE_INSTALLATION }}
path: ${{ env.WINE_INSTALLATION }}.tar.gz