mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Add recipe for 2cdt.
This commit is contained in:
67
dev-embedded/2cdt/2cdt-2014.01.03.recipe
Normal file
67
dev-embedded/2cdt/2cdt-2014.01.03.recipe
Normal 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
|
||||
}
|
||||
27
dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset
Normal file
27
dev-embedded/2cdt/patches/2cdt-2014.01.03.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user