Skip to content

Public sub-projects from LP: Quake1/Quake2 ports for GCW Zero, Raspberry Pi and Creator CI20

Notifications You must be signed in to change notification settings

savegame/sailfish-quake2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SailfishOS port of Quake2

First, some screenshots:

Снимок_Экрана_20210122_007 Снимок_Экрана_20210122_010
Снимок_Экрана_20210122_008 Снимок_Экрана_20210320_001

How to build

  1. first, install SailfishSDK
  2. prepare for build
  • on Linux: you should add SailfishSDK/bin folder to your PATH
    # by default, SailfishSDK installs to ~/SailfishOS
    export PATH=~/SailfishOS/bin/:${PATH}
    or just run sfdk tool, use absolute path, like
    ~/SailfishOS/bin/sfdk ...
  • on Windows, SailfishOS SDK bin folder should be too in PATH
  1. list SailfishOS targets names
sfdk engien exec sb2-config -l

it should show you something like

SailfishOS-4.0.1.48-armv7hl
SailfishOS-4.0.1.48-i486

this targets you should use in next step for build rpm files for SailfishOS
4. then, you can build game (on Windows and Linux, gae build in same way)

# first create buildroot 
mkdir -p `pwd`/build_rpm/SOURCES
# and create sources archive from current commit
git archive --output `pwd`/build_rpm/SOURCES/harbour-quake2.tar.gz HEAD
# if ypu change comething, you should first commit it, then build RPM, 
# or pack you sources by yourself, something like
# tar -czvf `pwd`/build_rpm/SOURCES/harbour-quake2.tar.gz Engine Ports SDL2 spec

# then install dependencies in arm target
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-armv7hl -R -m sdk-install zypper in -y pulseaudio-devel\
  wayland-devel libGLESv2-devel wayland-egl-devel wayland-protocols-devel libusb-devel  libxkbcommon-devel\
  mce-headers dbus-devel libvorbis-devel libogg-devel rsync
# and build ARM version of Quake2 
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-armv7hl rpmbuild --define "_topdir `pwd`/build_rpm" --define "_arch armv7hl" -ba spec/quake2.spec

# then install dependencies in i486 target
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-i486 -R -m sdk-install zypper in -y pulseaudio-devel\
  wayland-devel libGLESv2-devel wayland-egl-devel wayland-protocols-devel libusb-devel  libxkbcommon-devel\
  mce-headers dbus-devel libvorbis-devel libogg-devel rsync
# and build ч86 version of Quake2 
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-i486 rpmbuild --define "_topdir `pwd`/build_rpm" --define "_arch i486" -ba spec/quake2.spec

About

Public sub-projects from LP: Quake1/Quake2 ports for GCW Zero, Raspberry Pi and Creator CI20

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 76.2%
  • C++ 9.0%
  • HTML 4.0%
  • Makefile 3.3%
  • Shell 2.5%
  • Objective-C 2.0%
  • Other 3.0%