From 66a69766fd2faca1a25d8a2a853bcfce31d269f9 Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Sun, 15 Oct 2017 19:56:33 +0100 Subject: [PATCH] fs-uae-launcher: new recipe (#1635) --- .../additional-files/fs-uae-launcher.rdef.in | 53 +++++++++++ .../fs_uae_launcher-2.8.3.recipe | 88 +++++++++++++++++++ .../patches/fs_uae_launcher-2.8.3.patchset | 49 +++++++++++ 3 files changed, 190 insertions(+) create mode 100644 app-emulation/fs-uae-launcher/additional-files/fs-uae-launcher.rdef.in create mode 100644 app-emulation/fs-uae-launcher/fs_uae_launcher-2.8.3.recipe create mode 100644 app-emulation/fs-uae-launcher/patches/fs_uae_launcher-2.8.3.patchset diff --git a/app-emulation/fs-uae-launcher/additional-files/fs-uae-launcher.rdef.in b/app-emulation/fs-uae-launcher/additional-files/fs-uae-launcher.rdef.in new file mode 100644 index 000000000..b7c0b43cb --- /dev/null +++ b/app-emulation/fs-uae-launcher/additional-files/fs-uae-launcher.rdef.in @@ -0,0 +1,53 @@ + +resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + variety = B_APPV_FINAL, + internal = 0, + short_info = "@SHORT@" +}; + +resource app_signature "application/x-vnd.fs-uae-launcher"; + +resource vector_icon { + $"6E636966080501020116063E40000000000000003E400048400048400000FF62" + $"FFADE4CFE8F8CEECD904018D03FF000005890500020106033E8F3CB093332E6E" + $"AB3C6AECC1B6BA4A59705A2693CB7A2ED8CEC6007F33020006033E0CF3BF0EB8" + $"3A9A06397D5F4A566C4906714E00FF0080EAFF06CBFF06061202043A24C23324" + $"B88424243A24B88424C2333A50B88450C23350503A50C23350B884021F3A24BE" + $"A4243A2450384E2EC64CBD704A36C532BD06C1AEB9FFBCCAB5F83C2CBCA8B5CC" + $"BC4AB5AFBC6FB5C4BBF5B57F362636B563BB71B5682E282E282E284C3EC475BE" + $"CFC4A7BF324E46C5D0C26242402A2E2E322A2EB524BA4DB5A3B9B1B4E1BA9E48" + $"4A404AC3174A444EC220C57C3A4C263A263A263A2640B4AEBF3FB5C4C0043A50" + $"3A503AC5B1324EBCB7C7B4B96EC4A32640B54DC1D8B56CBEFB263C26BE1F26C2" + $"FF3A50B88450C11C503A503A503AC5B15238C6D4BCFEC70CBBF8503A50BDFD50" + $"BD404C2EC460B7A84E3A2E4C364AB77CC4CD2A4AB740C437B6DBC382482CC1CE" + $"BBA7C341B6B046284628C31C2828463434B57EC32D2640B513C07B2C32C0F5B5" + $"5D342AC154B5430A04B8C0C0BEBE5DC8C7C16BC8C7BBCDC0BE0A04B8C0C0BEBE" + $"5DC8C7C16BC8C7BBCDC0BE0A04BB86C0BEC124C8C7C16BC8C7BBCDC0BE0A04BB" + $"86C0BEC124C8C7C16BC8C7BBCDC0BE0A04CC6DB4AFBE60C8C7C16DC8C7CF7AB4" + $"AF0A04CC6DB4AFBE60C8C7C16DC8C7CF7AB4AF0A04CF33B4AFC126C8C7C16DC8" + $"C7CF7AB4AF0A04CF33B4AFC126C8C7C16DC8C7CF7AB4AF0A04B537C0BEBAD4C8" + $"C7BDE2C8C7B844C0BE0A04B537C0BEBAD4C8C7BDE2C8C7B844C0BE0A04B7FDC0" + $"BEBD9BC8C7BDE2C8C7B844C0BE0A04B7FDC0BEBD9BC8C7BDE2C8C7B844C0BE0A" + $"04C8E4B4AFBAD7C8C7BDE4C8C7CBF1B4AF0A04C8E4B4AFBAD7C8C7BDE4C8C7CB" + $"F1B4AF0A04CBAAB4AFBD9DC8C7BDE4C8C7CBF1B4AF0A04CBAAB4AFBD9DC8C7BD" + $"E4C8C7CBF1B4AF140A02010002402E8B0000000000003DB13B4668BA4A02760A" + $"0101002022220A0301012022220A00010030222201178300040A060102023FD1" + $"980000000000003FD198C46090443D800A050103123FD1980000000000003FD1" + $"98C46090443D8001178022040A050104023FD1980000000000003FD198C46090" + $"443D800A050105123FD1980000000000003FD198C46090443D8001178022040A" + $"070106023F5A4F0000000000003F57C4C0DB6946BEF30A050107123F5B1A0000" + $"000000003F5820C0EF4046BE4901178022040A050108023F4335000000000000" + $"3F57C43AF1E846BEF30A050109123F27BF0000000000003F5809403CB646BE74" + $"01178022040A06010A023FD1980000000000003FD198C46090443D800A05010B" + $"123FD1980000000000003FD198C46090443D8001178022040A05010C023FD198" + $"0000000000003FD198C46090443D800A05010D123FD1980000000000003FD198" + $"C46090443D8001178022040A07010E023F5A4F0000000000003F57C4C2764646" + $"BEF30A05010F123F5B1A0000000000003F5820C27E6E46BE4901178022040A05" + $"0110023F5FAF0000000000003F6C12C194C24679950A050111123F605D000000" + $"0000003F5809C1A3E646BE740117802204" +}; diff --git a/app-emulation/fs-uae-launcher/fs_uae_launcher-2.8.3.recipe b/app-emulation/fs-uae-launcher/fs_uae_launcher-2.8.3.recipe new file mode 100644 index 000000000..eb62603c3 --- /dev/null +++ b/app-emulation/fs-uae-launcher/fs_uae_launcher-2.8.3.recipe @@ -0,0 +1,88 @@ +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="1" +SOURCE_URI="https://fs-uae.net/stable/$portVersion/fs-uae-launcher-$portVersion.tar.gz" +CHECKSUM_SHA256="8ce764031013516daab76e996eff9e9fdead6c0f00b4e497fc927f7719d8a233" +SOURCE_DIR="fs-uae-launcher-$portVersion" +PATCHES="fs_uae_launcher-$portVersion.patchset" +ADDITIONAL_FILES="fs-uae-launcher.rdef.in" + +ARCHITECTURES="?x86 !x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + fs_uae_launcher$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix + pyqt_python3$secondaryArchSuffix + pip_python3$secondaryArchSuffix + fs_uae$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " + +BUILD_PREREQUIRES=" + cmd:make + cmd:msgfmt + cmd:python3 + " + +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() +{ + local FS_UAE_LAUNCHER_NAME="FS-UAE Launcher" + + make install + + mkdir -p "$appsDir/$FS_UAE_LAUNCHER_NAME" + cp -a usr/local/share/fs-uae-launcher/* "$appsDir/$FS_UAE_LAUNCHER_NAME" + + chmod +x "$appsDir/$FS_UAE_LAUNCHER_NAME/fs-uae-launcher" + + # Installing extra-attribs + rc fs-uae-launcher.rdef + resattr -o "$appsDir/$FS_UAE_LAUNCHER_NAME/fs-uae-launcher" \ + fs-uae-launcher.rsrc + + # Rename the main program + mv "$appsDir/$FS_UAE_LAUNCHER_NAME/fs-uae-launcher" \ + "$appsDir/$FS_UAE_LAUNCHER_NAME/$FS_UAE_LAUNCHER_NAME" + + # Creating Deskbar link + addAppDeskbarSymlink "$appsDir/$FS_UAE_LAUNCHER_NAME/$FS_UAE_LAUNCHER_NAME" \ + "$FS_UAE_LAUNCHER_NAME" + + # Copy docs + mkdir -p $docDir + cp -a usr/local/share/doc/fs-uae-launcher/* $docDir + + # Tidy up + rm -rf usr +} diff --git a/app-emulation/fs-uae-launcher/patches/fs_uae_launcher-2.8.3.patchset b/app-emulation/fs-uae-launcher/patches/fs_uae_launcher-2.8.3.patchset new file mode 100644 index 000000000..5abb48b0b --- /dev/null +++ b/app-emulation/fs-uae-launcher/patches/fs_uae_launcher-2.8.3.patchset @@ -0,0 +1,49 @@ +From 5c22ad1fae1b33eb3536922a07573e65534c70bb Mon Sep 17 00:00:00 2001 +From: Chris Moore +Date: Tue, 12 Sep 2017 20:02:46 +0100 +Subject: Stop linking the program to another directory + + +diff --git a/Makefile b/Makefile +index f33d513..3cc0053 100644 +--- a/Makefile ++++ b/Makefile +@@ -106,12 +106,10 @@ ifeq ($(DESTDIR),) + python3 setup.py install --install-lib=$(prefix)/share/fs-uae-launcher --install-scripts=$(prefix)/share/fs-uae-launcher + install -d $(DESTDIR)$(prefix)/bin + rm -f $(DESTDIR)$(prefix)/bin/fs-uae-launcher +- ln -s ../share/fs-uae-launcher/fs-uae-launcher $(DESTDIR)$(prefix)/bin/fs-uae-launcher + else + python3 setup.py install --root=$(DESTDIR) --install-lib=$(prefix)/share/fs-uae-launcher --install-scripts=$(prefix)/share/fs-uae-launcher + install -d $(DESTDIR)$(prefix)/bin + rm -f $(DESTDIR)$(prefix)/bin/fs-uae-launcher +- ln -s ../share/fs-uae-launcher/fs-uae-launcher $(DESTDIR)$(prefix)/bin/fs-uae-launcher + endif + + install-data: mo +-- +2.13.1 + + +From d6c8205fdc64ed0af5b6a42f36026b59cf8d8bc6 Mon Sep 17 00:00:00 2001 +From: Chris Moore +Date: Tue, 12 Sep 2017 20:07:32 +0100 +Subject: Create files in local directories + + +diff --git a/Makefile b/Makefile +index 3cc0053..977a385 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ dist_name = fs-uae-launcher-$(version) + dist_dir := $(build_dir)/$(dist_name) + + DESTDIR := +-prefix := /usr/local ++prefix := usr/local + + ifeq ($(wildcard OpenGL),) + OpenGL_dir := "." +-- +2.13.1 +