Files
haikuports/app-emulation/fs-uae-launcher/fs_uae_launcher-3.1.68.recipe
John Bintz b5f0e02f11 fs_uae, fs_uae_launcher: Update FS-UAE to 3.1.66, patch Launcher for better exe finding (#10455)
* fs_uae_launcher: Better Haiku-friendly binary search

When updating fs-uae to 3.1.66, fs-uae-launcher was unable to find the
fs-uae binary when the launcher was launched from the Deskbar. This
changes the binary search code for Haiku to always look in the same
direcctory where fs-uae-launcher is to be installed.

* fs_uae: Update to 3.1.66

In order to get --with-glew to work, I had to manually add all of the C
flags and linker options via env variables. glew.pc eventually tries to
include gl.pc which doesn't exist. However, it seems that I only need to
provide -Lgl and the program should work correctly (and it does).

* Indent recpies using tabs
2024-05-20 19:00:17 +02:00

80 lines
2.0 KiB
Bash

SUMMARY="A GUI for FS-UAE"
DESCRIPTION="FS-UAE is a cross-platform Amiga emulator based on updated \
emulation code from WinUAE. FS-UAE uses SDL for input, OpenAL for audio \
and OpenGL for graphics.
This package contains the launcher, a graphical user interface for \
setting up FS-UAE."
HOMEPAGE="https://fs-uae.net/launcher/"
COPYRIGHT="2011-2017 Frode Solheim"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://fs-uae.net/files/FS-UAE-Launcher/Stable/$portVersion/fs-uae-launcher-$portVersion.tar.xz"
CHECKSUM_SHA256="e36104442db278e0f1d073dbc2be2f9a937cd33e964968b75b324c393f8ec030"
SOURCE_DIR="fs-uae-launcher-$portVersion"
ADDITIONAL_FILES="fs-uae-launcher.rdef.in"
PATCHES="fs_uae_launcher-3.1.68.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
fs_uae_launcher$secondaryArchSuffix = $portVersion
cmd:fs_uae_launcher
"
REQUIRES="
haiku$secondaryArchSuffix
fs_uae$secondaryArchSuffix
pip_python310$secondaryArchSuffix
pyqt5_python310$secondaryArchSuffix
requests_python310$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:msgfmt
cmd:python3.10
"
PATCH()
{
sed -i -e "s|python3|python3.10|g" Makefile
sed -i -e "s|share/|data/|g" Makefile
}
BUILD()
{
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@SHORT@|$SUMMARY|" \
$portDir/additional-files/fs-uae-launcher.rdef.in \
> fs-uae-launcher.rdef
make
}
INSTALL()
{
make install prefix=$prefix
# Installing extra-attribs
rc fs-uae-launcher.rdef
resattr -o "$prefix/data/fs-uae-launcher/fs-uae-launcher" fs-uae-launcher.rsrc
# Creating Deskbar link
addAppDeskbarSymlink "$binDir/fs-uae-launcher" "FS-UAE Launcher"
# Copy docs
mkdir -p $docDir
mv $prefix/data/doc/fs-uae-launcher/* $docDir
rm -rf $prefix/data/doc $prefix/share
}