mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Add recipes for rasm and buildcpr, enable hideur_maikeur for 64bit Haiku
This commit is contained in:
committed by
PulkoMandy
parent
57be915ca8
commit
67b1f78ef9
39
dev-embedded/buildcpr/buildcpr-2014.recipe
Normal file
39
dev-embedded/buildcpr/buildcpr-2014.recipe
Normal file
@@ -0,0 +1,39 @@
|
||||
SUMMARY="Tool to create Amstrad CPC cartridges"
|
||||
DESCRIPTION="This utility will take any binary file up to 512k and make a \
|
||||
cartridge image from it (.CPR) which can be used with any CPC+ emulator."
|
||||
HOMEPAGE="http://www.cpctech.org.uk/"
|
||||
COPYRIGHT="2014 Kevin Thacker"
|
||||
LICENSE="MIT"
|
||||
SOURCE_URI="http://www.genesis8bit.fr/frontend/emu-uti/buildcpr.zip"
|
||||
CHECKSUM_SHA256="dd1edc0f6f3d13d56daf6938a3e964ff16e8e2e3ce5f8ad5a480302d08103dc8"
|
||||
SOURCE_DIR="src"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
#SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
buildcpr$secondaryArchSuffix = $portVersion
|
||||
cmd:buildcpr
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
gcc -O2 buildcpr.c -o buildcpr
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $prefix/bin
|
||||
cp buildcpr $prefix/bin
|
||||
}
|
||||
@@ -20,7 +20,7 @@ CHECKSUM_SHA256="02179640137ee5edeee52688e5f8c45f77f69cda20c1184af3d1ec2a12d35cc
|
||||
SOURCE_DIR="hideur_maikeur-1c4b0c4c08769eef189d819ca5ed01c369774d82"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="?all x86_gcc2"
|
||||
ARCHITECTURES="all"
|
||||
|
||||
PROVIDES="
|
||||
hideur_maikeur = $portVersion
|
||||
|
||||
24
dev-embedded/rasm/patches/rasm-2.0.patchset
Normal file
24
dev-embedded/rasm/patches/rasm-2.0.patchset
Normal file
@@ -0,0 +1,24 @@
|
||||
From 5ccf2381672cee95c237d5add7ac9fb707231f6c Mon Sep 17 00:00:00 2001
|
||||
From: PulkoMandy <pulkomandy@pulkomandy.tk>
|
||||
Date: Sun, 22 Oct 2023 14:43:15 +0200
|
||||
Subject: Remove -mcpu=native
|
||||
|
||||
To make sure no specific instructions are used that wouldn't work on
|
||||
some user's machine
|
||||
|
||||
diff --git a/makefile.MacOS b/makefile.MacOS
|
||||
index cbd5787..c62822f 100644
|
||||
--- a/makefile.MacOS
|
||||
+++ b/makefile.MacOS
|
||||
@@ -1,7 +1,7 @@
|
||||
CC=gcc
|
||||
EXEC=rasm
|
||||
|
||||
-CFLAGS=-lm -mcpu=native -o $(EXEC) -w
|
||||
+CFLAGS=-lm -o $(EXEC) -w
|
||||
CFLAGS_OPT = $(CFLAGS) -O2
|
||||
CFLAGS_DBG = $(CFLAGS) -g -pthread -DRDD
|
||||
|
||||
--
|
||||
2.42.0
|
||||
|
||||
51
dev-embedded/rasm/rasm-2.0.recipe
Normal file
51
dev-embedded/rasm/rasm-2.0.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Powerful and ultra-fast Z80 assembler"
|
||||
DESCRIPTION="Powerful and ultra-fast Z80 assembler:
|
||||
|
||||
- ultra-fast (30 times faster than his best chalenger)
|
||||
- crunched code section on the fly
|
||||
- symbols import/export, breakpoints export in file or snapshots
|
||||
- export binaries, cartridge, DSK, snapshot, AMSDOS
|
||||
- memory check, unlimited workspaces where all labels are shared, bank and rom management
|
||||
- local labels, proximity labels, structures
|
||||
- ALL instructions supported
|
||||
- conditional macros, unlimited imbricated loops, switch/case
|
||||
- math engine with correct rounding
|
||||
- MAXAM, AS80 and UZ80 compatibility"
|
||||
HOMEPAGE="http://www.roudoudou.com/rasm/"
|
||||
COPYRIGHT="2017-2021 Édouard Bergé"
|
||||
LICENSE="MIT"
|
||||
SOURCE_URI="https://github.com/EdouardBERGE/rasm/archive/refs/tags/v2.0.tar.gz"
|
||||
CHECKSUM_SHA256="d7af4102b2e3c3dbdad1bc6d4c7da482aafa5602420a56848140cc37b27a36f7"
|
||||
SOURCE_DIR="rasm-$portVersion"
|
||||
PATCHES="rasm-$portVersion.patchset"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
rasm$secondaryArchSuffix = $portVersion
|
||||
cmd:rasm = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make -f makefile.MacOS $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $prefix/bin
|
||||
cp rasm $prefix/bin/rasm
|
||||
}
|
||||
Reference in New Issue
Block a user