From 851bc9bed4021851082b049e18ec99ff092994e9 Mon Sep 17 00:00:00 2001 From: Gabriele Baldassarre Date: Sat, 6 Jun 2020 15:15:35 +0200 Subject: [PATCH] 64tass: new recipe (#5033) --- dev-lang/64tass/64tass-1.55.recipe | 67 ++++++++++++++++++++++++++++++ dev-lang/64tass/licenses/my_getopt | 22 ++++++++++ 2 files changed, 89 insertions(+) create mode 100644 dev-lang/64tass/64tass-1.55.recipe create mode 100644 dev-lang/64tass/licenses/my_getopt diff --git a/dev-lang/64tass/64tass-1.55.recipe b/dev-lang/64tass/64tass-1.55.recipe new file mode 100644 index 000000000..01494525b --- /dev/null +++ b/dev-lang/64tass/64tass-1.55.recipe @@ -0,0 +1,67 @@ +SUMMARY="Multi pass optimizing macro assembler for the 65xx series of processors" +DESCRIPTION="64tass is cross assembler targeting the 65xx series of micro processors \ +which features the familiar syntax of Omicron TASS and TASM." +HOMEPAGE="https://sourceforge.net/projects/tass64/" +COPYRIGHT="2013-2020 Soci/Singular + 1997-2001 Benjamin Sittler" +LICENSE="GNU LGPL v2.1 + my_getopt" +REVISION="1" +SOURCE_URI="https://github.com/irmen/64tass/archive/v$portVersion.2202.tar.gz" +CHECKSUM_SHA256="c9222531a711cf7f23fe0294dd953c2a7cda37f84070fdaeaf8c83a7284cc582" +SOURCE_DIR="64tass-$portVersion.2202" + +ARCHITECTURES="!x86_gcc2 x86_64 ?arm ?ppc ?sparc" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +portVersionCompat="$portVersion compat >= ${portVersion%%.*}" + +PROVIDES=" + 64tass$secondaryArchSuffix = $portVersionCompat + cmd:64tass$secondaryArchSuffix = $portVersionCompat" +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:gzip + cmd:make + cmd:which + " + +PATCH() +{ + sed -i "s|\$(exec_prefix)/bin|$commandBinDir|g" Makefile + sed -i "s|\$(prefix)/share|$dataRootDir|g" Makefile + sed -i "s|\$(datarootdir)/man|$manDir|g" Makefile + sed -i "s|\$(datarootdir)/doc/\$(TARGET)|$docDir|g" Makefile + sed -i "s|/usr/bin/install|`which install`|g" Makefile + sed -i "s|\sLICENSE-L\{0,1\}GPL-2.[0-1]||g;s|\sLICENSE-my_getopt||g" Makefile +} + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + make install $jobArgs + + # vim syntax + # TODO: better version checking, still ok until + # we are on the 8.2 branch or we repackage vim itself + mkdir -p $dataDir/vim/vim82/syntax + cp -r syntax/vim/syntax/*.vim $dataDir/vim/vim82/syntax +} diff --git a/dev-lang/64tass/licenses/my_getopt b/dev-lang/64tass/licenses/my_getopt new file mode 100644 index 000000000..2224aba0c --- /dev/null +++ b/dev-lang/64tass/licenses/my_getopt @@ -0,0 +1,22 @@ +my_getopt - a command-line argument parser +Copyright 1997-2001, Benjamin Sittler + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, copy, +modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.