summaryrefslogtreecommitdiff
path: root/emulators/xhomer
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-12-06 12:56:27 +0000
committerobache <obache@pkgsrc.org>2008-12-06 12:56:27 +0000
commit29995e3c8ccdacb0831949cebacb0827476993b5 (patch)
tree5562a24facd314c34f0c146f53e2100ac6922a17 /emulators/xhomer
parent38777576ceba2d7f625ff3c63e3eabed4062047b (diff)
downloadpkgsrc-29995e3c8ccdacb0831949cebacb0827476993b5.tar.gz
Import xhomer-9.16.06 as emulators/xhomer.
Based on PR 39980 by John Maier. Xhomer is a machine emulator for the Digital Equipment Corporation (DEC) Pro 350 computer, a PDP-11-based machine that was sold in the early to mid-'80's. Xhomer is based on the PDP-11 CPU core from the SIMH simulator, and is written entirely in C.
Diffstat (limited to 'emulators/xhomer')
-rw-r--r--emulators/xhomer/DESCR4
-rw-r--r--emulators/xhomer/Makefile35
-rw-r--r--emulators/xhomer/PLIST42
-rw-r--r--emulators/xhomer/distinfo6
-rw-r--r--emulators/xhomer/patches/patch-aa36
5 files changed, 123 insertions, 0 deletions
diff --git a/emulators/xhomer/DESCR b/emulators/xhomer/DESCR
new file mode 100644
index 00000000000..8adc664843d
--- /dev/null
+++ b/emulators/xhomer/DESCR
@@ -0,0 +1,4 @@
+Xhomer is a machine emulator for the Digital Equipment Corporation (DEC)
+Pro 350 computer, a PDP-11-based machine that was sold in the early
+to mid-'80's. Xhomer is based on the PDP-11 CPU core from the SIMH simulator,
+and is written entirely in C.
diff --git a/emulators/xhomer/Makefile b/emulators/xhomer/Makefile
new file mode 100644
index 00000000000..9dc8da22260
--- /dev/null
+++ b/emulators/xhomer/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/06 12:56:27 obache Exp $
+
+DISTNAME= xhomer-9-16-06
+PKGNAME= xhomer-9.16.06
+CATEGORIES= emulators
+MASTER_SITES= http://xhomer.isani.org/xhomer/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jmaier@happymolars.org
+HOMEPAGE= http://xhomer.isani.org/xhomer/
+COMMENT= DEC Pro 350/380 emulator
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gmake
+
+NO_CONFIGURE= yes
+
+BUILD_TARGET= xhomer
+
+MAKE_FLAGS+= X11DIR=${X11BASE} USE_DGA2=Y USE_DGA1=N
+
+INSTALLATION_DIRS= bin share/examples/xhomer share/doc/xhomer
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xhomer ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bat.ram ${DESTDIR}${PREFIX}/share/examples/xhomer
+ ${INSTALL_DATA} ${WRKSRC}/xhomer.cfg ${DESTDIR}${PREFIX}/share/examples/xhomer/
+ ${INSTALL_DATA} ${WRKSRC}/DOC/* ${DESTDIR}${PREFIX}/share/doc/xhomer
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXxf86dga/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/xhomer/PLIST b/emulators/xhomer/PLIST
new file mode 100644
index 00000000000..ccfeb1b8f22
--- /dev/null
+++ b/emulators/xhomer/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/06 12:56:27 obache Exp $
+bin/xhomer
+share/doc/xhomer/battery_backed_ram.html
+share/doc/xhomer/building.html
+share/doc/xhomer/change_log.html
+share/doc/xhomer/configuration_file.html
+share/doc/xhomer/contact.gif
+share/doc/xhomer/control_menu.html
+share/doc/xhomer/display.html
+share/doc/xhomer/emulated_hardware.html
+share/doc/xhomer/floppy_drive.html
+share/doc/xhomer/hard_drive.html
+share/doc/xhomer/index.html
+share/doc/xhomer/lk201_mapping.html
+share/doc/xhomer/performance.html
+share/doc/xhomer/pro_software.html
+share/doc/xhomer/problems.html
+share/doc/xhomer/running.html
+share/doc/xhomer/rx50_floppies.html
+share/doc/xhomer/screen1.gif
+share/doc/xhomer/screen10.gif
+share/doc/xhomer/screen11.gif
+share/doc/xhomer/screen2.gif
+share/doc/xhomer/screen3.gif
+share/doc/xhomer/screen4.gif
+share/doc/xhomer/screen5.gif
+share/doc/xhomer/screen6.gif
+share/doc/xhomer/screen7.gif
+share/doc/xhomer/screen8.gif
+share/doc/xhomer/screen9.gif
+share/doc/xhomer/screen_shots.html
+share/doc/xhomer/serial_devices.html
+share/doc/xhomer/title.gif
+share/doc/xhomer/topics.html
+share/doc/xhomer/xhomer.html
+share/doc/xhomer/xhomer.html.head
+share/doc/xhomer/xhomer.html.middle
+share/doc/xhomer/xhomer.html.tail
+share/examples/xhomer/bat.ram
+share/examples/xhomer/xhomer.cfg
+@dirrm share/examples/xhomer
+@dirrm share/doc/xhomer
diff --git a/emulators/xhomer/distinfo b/emulators/xhomer/distinfo
new file mode 100644
index 00000000000..bcb702cfc2e
--- /dev/null
+++ b/emulators/xhomer/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/06 12:56:27 obache Exp $
+
+SHA1 (xhomer-9-16-06.tgz) = ebb9762b60121dd9caafd973b8161254fb8bb629
+RMD160 (xhomer-9-16-06.tgz) = 7d6ed8ec8cd0a1b43ed9a87f2835fe53efee73ae
+Size (xhomer-9-16-06.tgz) = 318277 bytes
+SHA1 (patch-aa) = a765656930ca2748766d27bc15008b9d5d49b5e5
diff --git a/emulators/xhomer/patches/patch-aa b/emulators/xhomer/patches/patch-aa
new file mode 100644
index 00000000000..d25d831c03a
--- /dev/null
+++ b/emulators/xhomer/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/12/06 12:56:27 obache Exp $
+
+--- Makefile.orig 2004-02-08 22:37:24.000000000 +0000
++++ Makefile
+@@ -115,17 +115,17 @@ PRO_VERSION = `cat VERSION`
+ # C-Compiler configuration
+
+ # All the rest of the flags in this section assume gcc
+-CC=gcc -Wall
++#CC=gcc -Wall
+ # -Wchar-subscripts -W -Wshadow -Wconversion
+ # -Wtraditional -Wstrict-prototypes
+
+ # This prevents "undesirable excess precision" on some machines, says gcc
+-CC += -ffloat-store
++#CC += -ffloat-store
+
+ # The 1st choice runs about 15% slower than the 2nd (-O3 -fomit-frame-pointer).
+ # but it (re)compiles faster and unlike the second choice, it is debuggable.
+ # CC += -g -O -fno-inline
+-CC += -O3 -Winline -fomit-frame-pointer
++#CC += -O3 -Winline -fomit-frame-pointer
+
+ # Some older gcc's need this on i386 to work around a bug. As long as
+ # omit-frame-pointer is also set, it doesn't seem to hurt performance, so
+@@ -184,8 +184,8 @@ ifeq ($(PRO),Y)
+
+ # Try this as the default place for X11 stuff and ncurses
+
+- CCINCS = -I$(X11DIR)/include -I/usr/X11/include -I$(NCURSESINC)
+- CCLIBS = -L$(X11DIR)/lib -L/usr/X11/lib -L$(NCURSESLIB)
++ CCINCS = $(CFLAGS)
++ CCLIBS = $(LDFLAGS)
+
+ # But some vendors put things in non-standard places
+