aboutsummaryrefslogtreecommitdiff
path: root/emulators/dtcyber
diff options
context:
space:
mode:
authorAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-09-17 05:00:47 +0000
committerAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-09-17 05:00:47 +0000
commitf7749bb96be50c86ee0c48b802df5185a4060be4 (patch)
tree2c02f74fed6675f0650ef6ed2c81d16eaab593c0 /emulators/dtcyber
parenta48bcc2d96919c349bb351472cee8d435d643a4c (diff)
downloadports-f7749bb96be50c86ee0c48b802df5185a4060be4.tar.gz
ports-f7749bb96be50c86ee0c48b802df5185a4060be4.zip
Notes
Diffstat (limited to 'emulators/dtcyber')
-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
6 files changed, 89 insertions, 0 deletions
diff --git a/emulators/dtcyber/Makefile b/emulators/dtcyber/Makefile
new file mode 100644
index 000000000000..1a50c7ca42c0
--- /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 000000000000..aaf8564c3070
--- /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 000000000000..36c8763e7f56
--- /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 000000000000..0db9b16e97c9
--- /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 000000000000..e965fb0f760e
--- /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 000000000000..d84764ee7ba6
--- /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/