From c0c7db8dbd4435a4c2c9e729a75cae55d5b91a28 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 9 Aug 2015 10:34:22 +0200 Subject: [PATCH] Add recipe for 2cdt. --- dev-embedded/2cdt/2cdt-2014.01.03.recipe | 67 +++++++++++++++++++ .../2cdt/patches/2cdt-2014.01.03.patchset | 27 ++++++++ 2 files changed, 94 insertions(+) create mode 100644 dev-embedded/2cdt/2cdt-2014.01.03.recipe create mode 100644 dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset diff --git a/dev-embedded/2cdt/2cdt-2014.01.03.recipe b/dev-embedded/2cdt/2cdt-2014.01.03.recipe new file mode 100644 index 000000000..3351e1ad9 --- /dev/null +++ b/dev-embedded/2cdt/2cdt-2014.01.03.recipe @@ -0,0 +1,67 @@ +SUMMARY="Convert files into tape images for Amstrad computers" +DESCRIPTION="2CDT is a utility to transfer files into a \".CDT\" Tape-Image. + +A \".CDT\" is a tape-image file which describes the data stored on a cassette \ +tape. + +This file format is very powerful and can describe fast and custom loaders as \ +well as standard operating system formats. + +The \".CDT\" file format is identical to the \".TZX\" format. The extension is \ +used to differentiate between Spectrum and Amstrad Tape-Images. + +The \".TZX\" file format was originally designed to store Spectrum tape \ +programs, it's format can be found from various sources, one of these is \ +\"World Of Spectrum\": http://www.void.jump.org/ + +There are a number of tools which already create .TZX files, Taper, Voc2TZX \ +and MakeTZX. However, these are designed to recognise Spectrum tape loaders, \ +and so do not do well at creating a tape-image for Amstrad formats. + +This tool has been designed as a starting point for furthur Amstrad CDT tools, \ +and as a program to generate reference tape-images which can be used by \ +emulator authors to support this tape-image format in their programs. + +This tool is designed to \"inject\" one or more file into a \".CDT\" in the \ +format written by the Amstrad operating system. The tool allows the user to +define the \".CDT\" \"recording\" method and baud rate. +" +HOMEPAGE="http://cpctech.org.uk/" +REVISION="1" +LICENSE="GNU GPL v2" +ARCHITECTURES="x86_gcc2" +COPYRIGHT="2000-2014 Kevin Thacker" + +SOURCE_URI="http://cpctech.cpc-live.com/download/2cdt.zip" +CHECKSUM_SHA256="e6a4e69de46b256df51c9c265c6b9a50f8016264bfb3d35f5958152b91500e56" +SOURCE_DIR="2cdt" +PATCHES="2cdt-$portVersion.patchet" + +PROVIDES=" + 2cdt = $portVersion + cmd:2cdt +" + +REQUIRES=" + haiku +" + +BUILD_REQUIRES=" + haiku_devel +" + +BUILD_PREREQUIRES=" + cmd:gcc + cmd:make +" + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + mkdir -p $binDir + cp 2cdt $binDir +} diff --git a/dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset b/dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset new file mode 100644 index 000000000..01161ecfd --- /dev/null +++ b/dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset @@ -0,0 +1,27 @@ +From aa1d8d68e3b5539717e3f804cf877407051ad2e8 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 9 Aug 2015 10:31:43 +0200 +Subject: Remove useless include. + + +diff --git a/src/2cdt.c b/src/2cdt.c +index c3fb520..35e5a1c 100644 +--- a/src/2cdt.c ++++ b/src/2cdt.c +@@ -23,11 +23,13 @@ on the PC */ + #include + #include + #include ++#ifndef __HAIKU__ + #ifdef UNIX + #include + #else + #include + #endif ++#endif + #include "defs.h" + #include "tzxfile.h" + #include "getopt.h" +-- +2.2.2 +