Add recipe for 2cdt.

This commit is contained in:
Adrien Destugues
2015-08-09 10:34:22 +02:00
parent f9b27f3b4b
commit c0c7db8dbd
2 changed files with 94 additions and 0 deletions

View File

@@ -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
}

View File

@@ -0,0 +1,27 @@
From aa1d8d68e3b5539717e3f804cf877407051ad2e8 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifndef __HAIKU__
#ifdef UNIX
#include <sys/io.h>
#else
#include <io.h>
#endif
+#endif
#include "defs.h"
#include "tzxfile.h"
#include "getopt.h"
--
2.2.2