summaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authoralexbl <alexbl@FreeBSD.org>2006-09-17 05:00:47 +0000
committeralexbl <alexbl@FreeBSD.org>2006-09-17 05:00:47 +0000
commit5410f69a039c60d311f314284352fd8d6affe9a3 (patch)
tree4554499b056e53e87a59f6cd6c16325bf9ea9cf6 /emulators
parentce2676660ace853dfd0c9bd7bb264a7b6e8023c6 (diff)
downloadFreeBSD-ports-5410f69a039c60d311f314284352fd8d6affe9a3.zip
FreeBSD-ports-5410f69a039c60d311f314284352fd8d6affe9a3.tar.gz
Add dtcyber 2.0b1, desktop CYBER Emulator.
PR: ports/102820 Submitted by: trasz <trasz at pin.if.uz.zgora.pl> Approved by: novel (mentor)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/Makefile1
-rw-r--r--emulators/dtcyber/Makefile41
-rw-r--r--emulators/dtcyber/distinfo3
-rw-r--r--emulators/dtcyber/files/patch-types.h11
-rw-r--r--emulators/dtcyber/files/patch-window_x11.c15
-rw-r--r--emulators/dtcyber/files/pkg-message.in8
-rw-r--r--emulators/dtcyber/pkg-descr11
7 files changed, 90 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile
index d9f63be..9f7c903 100644
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -20,6 +20,7 @@
SUBDIR += dlx
SUBDIR += dosbox
SUBDIR += doscmd
+ SUBDIR += dtcyber
SUBDIR += dynamips
SUBDIR += e-uae
SUBDIR += extract-xiso
diff --git a/emulators/dtcyber/Makefile b/emulators/dtcyber/Makefile
new file mode 100644
index 0000000..1a50c7c
--- /dev/null
+++ b/emulators/dtcyber/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: dtcyber
+# Date created: 2006-09-03
+# Whom: trasz <trasz@pin.if.uz.zgora.pl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dtcyber
+PORTVERSION= 2.0b1
+CATEGORIES= emulators
+MASTER_SITES= http://members.iinet.net.au/~tom-hunter/
+DISTNAME= dtcyber20b1
+
+MAINTAINER= trasz@pin.if.uz.zgora.pl
+COMMENT= Desktop CYBER Emulator
+
+USE_ZIP= yes
+USE_DOS2UNIX= yes
+NO_WRKSUBDIR= yes
+USE_XLIB= yes
+INSTALL_TARGET=
+MAKEFILE= Makefile.x11
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PLIST_FILES= bin/dtcyber %%EXAMPLESDIR%%/cyber.ini %%EXAMPLESDIR%%/cos.tap
+PLIST_DIRS= %%EXAMPLESDIR%%
+
+pre-patch:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile.x11
+ ${REINPLACE_CMD} -e 's|CFLAGS = -O2|CFLAGS+= |' ${WRKSRC}/Makefile.x11
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dtcyber ${PREFIX}/bin
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cyber.ini ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Os/cos.tap ${EXAMPLESDIR}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/emulators/dtcyber/distinfo b/emulators/dtcyber/distinfo
new file mode 100644
index 0000000..aaf8564
--- /dev/null
+++ b/emulators/dtcyber/distinfo
@@ -0,0 +1,3 @@
+MD5 (dtcyber20b1.zip) = 34c75e992043e0ccc96e35e910567cd0
+SHA256 (dtcyber20b1.zip) = 82ecf79b289b99bd30832fdec1a2c08eff79a7a92ba3f907bcb080958b3a8cba
+SIZE (dtcyber20b1.zip) = 197493
diff --git a/emulators/dtcyber/files/patch-types.h b/emulators/dtcyber/files/patch-types.h
new file mode 100644
index 0000000..36c8763
--- /dev/null
+++ b/emulators/dtcyber/files/patch-types.h
@@ -0,0 +1,11 @@
+--- types.h.orig Sat Sep 16 12:32:39 2006
++++ types.h Sat Sep 16 12:35:48 2006
+@@ -35,7 +35,7 @@
+ typedef unsigned __int64 u64;
+ #define FMT60_020o "%020I64o"
+ #elif defined (__GNUC__)
+- #if defined(__alpha__) || defined(__powerpc64__) || (defined(__sparc64__) && defined(__arch64__))
++ #if defined(__alpha__) || defined(__amd64__) || defined(__ia64__) || defined(__powerpc64__) || (defined(__sparc64__) && defined(__arch64__))
+ /*
+ ** 64 bit systems
+ */
diff --git a/emulators/dtcyber/files/patch-window_x11.c b/emulators/dtcyber/files/patch-window_x11.c
new file mode 100644
index 0000000..0db9b16
--- /dev/null
+++ b/emulators/dtcyber/files/patch-window_x11.c
@@ -0,0 +1,15 @@
+--- window_x11.c.orig Sun Sep 3 16:44:07 2006
++++ window_x11.c Sun Sep 3 16:44:16 2006
+@@ -354,9 +354,9 @@
+ /*
+ ** Load three Cyber fonts.
+ */
+- hSmallFont = XLoadFont(disp, "-*-lucidatypewriter-medium-*-*-*-10-*-*-*-*-*-*-*\0");
+- hMediumFont = XLoadFont(disp, "-*-lucidatypewriter-medium-*-*-*-14-*-*-*-*-*-*-*\0");
+- hLargeFont = XLoadFont(disp, "-*-lucidatypewriter-medium-*-*-*-24-*-*-*-*-*-*-*\0");
++ hSmallFont = XLoadFont(disp, "-*-fixed-medium-*-*-*-10-*-*-*-*-*-*-*\0");
++ hMediumFont = XLoadFont(disp, "-*-fixed-medium-*-*-*-14-*-*-*-*-*-*-*\0");
++ hLargeFont = XLoadFont(disp, "-*-fixed-medium-*-*-*-24-*-*-*-*-*-*-*\0");
+
+ /*
+ ** Setup fore- and back-ground colors.
diff --git a/emulators/dtcyber/files/pkg-message.in b/emulators/dtcyber/files/pkg-message.in
new file mode 100644
index 0000000..e965fb0
--- /dev/null
+++ b/emulators/dtcyber/files/pkg-message.in
@@ -0,0 +1,8 @@
+************************************************************************
+
+Additional files were installed into %%EXAMPLESDIR%%/.
+
+See http://members.iinet.net.au/~tom-hunter/dtcyber.pdf for usage
+instructions.
+
+************************************************************************
diff --git a/emulators/dtcyber/pkg-descr b/emulators/dtcyber/pkg-descr
new file mode 100644
index 0000000..d84764e
--- /dev/null
+++ b/emulators/dtcyber/pkg-descr
@@ -0,0 +1,11 @@
+The Desktop CYBER Emulator is a project which successfully brought
+back to life the revolutionary design of Control Data Corporation
+CYBER mainframes. The software provides a reasonable emulation of
+a "typical" CDC CYBER 6600, 7x, 17x based system including common
+peripherals such as console, tape and disk drives, card reader,
+printer and terminal multiplexer. The emulation runs the following
+CDC operating systems: ChippewaOS, SMM, KRONOS 2.1, NOS 1.2, NOS
+1.3, NOS 1.4, NOS 2.2 and NOS 2.8.2. It does not support NOS/VE
+which requires virtual mode only available in CYBER 180s.
+
+WWW: http://members.iinet.net.au/~tom-hunter/
OpenPOWER on IntegriCloud