Files
haikuports/games-emulation/glukalka/glukalka-3.0.0.recipe
Gerasim Troeglazov 1e8dbde60e glukalka: add recipe
2024-02-19 23:03:07 +10:00

93 lines
2.7 KiB
Bash

SUMMARY="ZX Spectrum Emulator"
DESCRIPTION="Glukalka is a emulator of ZX Spectrum 48K/128K and Spectrum clones.
It runs on Linux, Windows, Haiku and Mac OS machines. Anroid version is also available.
The program is free software and is copyrighted under the GNU General Public License.
Emulates:
- ZX Spectrum 48K and 128K; Pentagon 128K; Scorpion ZS 256
- Spectrum's AY-3-8910 chip on workstations with sound card
- Spectrum's beeper on workstations with sound card
- Beta 128 interface by Technology Research Ltd
- Joysticks: Kempston, Sinclair and Cursor
Loads from:
- Snapshots in .SNA or .Z80 format
- Tape images in .TAP, .TZX or .WAV format
- Disk images in .TRD, .FDI or .SCL format
Saves to:
- Snapshots in .Z80 format
- Disk images in .TRD or .FDI format
- PSG music dump in .PSG format."
HOMEPAGE="http://www.sanarin.ru/glukalka/"
COPYRIGHT="Dmitry Sanarin"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://www.sanarin.ru/glukalka/glukalka3_download/glukalka3.tar.bz2"
CHECKSUM_SHA256="3270529dc40d1b4a3b5ea3bf67035bd6c9759b6cb034ff701ddd740affe3ac8a"
SOURCE_DIR="glukalka3"
PATCHES="glukalka-$portVersion.patchset"
ADDITIONAL_FILES="glukalka.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
glukalka$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:qmake$secondaryArchSuffix >= 5
cmd:make
"
BUILD()
{
qmake QT_CONFIG+=webkit
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
cp glukalka3 $appsDir/Glukalka
local APP_SIGNATURE="application/x-vnd.glukalka3"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/glukalka.rdef.in > glukalka.rdef
addResourcesToBinaries glukalka.rdef $appsDir/Glukalka
addAppDeskbarSymlink $appsDir/Glukalka
}