Bug 97803 - New port: emulators/xhomer - Emulator for the DEC Pro 350 computer
Summary: New port: emulators/xhomer - Emulator for the DEC Pro 350 computer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-24 19:20 UTC by trasz
Modified: 2006-07-16 21:03 UTC (History)
0 users

See Also:


Attachments
xhomer.sh (4.62 KB, application/x-sh)
2006-07-16 10:26 UTC, trasz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description trasz 2006-05-24 19:20:13 UTC
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       xhomer
#       xhomer/Makefile
#       xhomer/distinfo
#       xhomer/pkg-descr
#       xhomer/pkg-plist
#       xhomer/files
#       xhomer/files/patch-Makefile
#
echo c - xhomer
mkdir -p xhomer > /dev/null 2>&1
echo x - xhomer/Makefile
sed 's/^X//' >xhomer/Makefile << 'END-of-xhomer/Makefile'
X# New ports collection makefile for:   xhomer
X# Date created:                        24 May 2006
X# Whom:                                trasz
X#
X# $FreeBSD$
X#
X
XPORTNAME=      xhomer
XDISTVERSION=   12-14-03
XCATEGORIES=    emulators
XMASTER_SITES=  http://xhomer.isani.org/xhomer/
XEXTRACT_SUFX=  .tgz
X
XMAINTAINER=    trasz@pin.if.uz.zgora.pl
XCOMMENT=       Emulator for the DEC Pro 350 computer
X
XUSE_GMAKE=     yes
XUSE_XLIB=      yes
XALL_TARGET=    clean xhomer
XINSTALL_TARGET=
XCFLAGS+=       -Wall -ffloat-store
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X       ${MKDIR} ${DOCSDIR}
X       ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X       ${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
X       ${INSTALL_MAN} ${WRKSRC}/COPYING ${DOCSDIR}
X.endif
X       ${INSTALL_PROGRAM} ${WRKSRC}/xhomer ${PREFIX}/bin
X       ${INSTALL_DATA} ${WRKSRC}/xhomer.cfg ${PREFIX}/etc
X
X.include <bsd.port.mk>
END-of-xhomer/Makefile
echo x - xhomer/distinfo
sed 's/^X//' >xhomer/distinfo << 'END-of-xhomer/distinfo'
XMD5 (xhomer-12-14-03.tgz) = 7eab258f5a130be9950c2032a9e10946
XSHA256 (xhomer-12-14-03.tgz) = ed043165ef650997b79aadcf675bdeeddce7bcaae8572222d2bfa09c95f277fc
XSIZE (xhomer-12-14-03.tgz) = 312166
END-of-xhomer/distinfo
echo x - xhomer/pkg-descr
sed 's/^X//' >xhomer/pkg-descr << 'END-of-xhomer/pkg-descr'
XXhomer is a machine emulator for the Digital Equipment Corporation
X(DEC) Pro 350 computer, a PDP-11-based machine that was sold in the
Xearly to mid-'80's.  Xhomer is based on the PDP-11 CPU core from
Xthe SIMH simulator, and is written entirely in C.
X
XWWW: http://xhomer.isani.org/
END-of-xhomer/pkg-descr
echo x - xhomer/pkg-plist
sed 's/^X//' >xhomer/pkg-plist << 'END-of-xhomer/pkg-plist'
Xbin/xhomer
Xetc/xhomer.cfg
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X@dirrm %%PORTDOCS%%%%DOCSDIR%%
END-of-xhomer/pkg-plist
echo c - xhomer/files
mkdir -p xhomer/files > /dev/null 2>&1
echo x - xhomer/files/patch-Makefile
sed 's/^X//' >xhomer/files/patch-Makefile << 'END-of-xhomer/files/patch-Makefile'
X--- Makefile.orig      Tue Dec  9 18:36:07 2003
X+++ Makefile   Wed May 24 19:59:13 2006
X@@ -115,17 +115,17 @@
X # C-Compiler configuration
X 
X # All the rest of the flags in this section assume gcc
X-CC=gcc -Wall
X+#CC=gcc -Wall
X # -Wchar-subscripts -W -Wshadow -Wconversion
X # -Wtraditional -Wstrict-prototypes
X 
X # This prevents "undesirable excess precision" on some machines, says gcc
X-CC += -ffloat-store
X+#CC += -ffloat-store
X 
X # The 1st choice runs about 15% slower than the 2nd (-O3 -fomit-frame-pointer).
X # but it (re)compiles faster and unlike the second choice, it is debuggable.
X # CC += -g -O -fno-inline
X-CC += -O3 -Winline -fomit-frame-pointer
X+#CC += -O3 -Winline -fomit-frame-pointer
X 
X # Some older gcc's need this on i386 to work around a bug.  As long as
X # omit-frame-pointer is also set, it doesn't seem to hurt performance, so
X@@ -184,8 +184,8 @@
X 
X   # Try this as the default place for X11 stuff and ncurses
X 
X-  CCINCS = -I$(X11DIR)/include -I/usr/X11/include -I$(NCURSESINC)
X-  CCLIBS = -L$(X11DIR)/lib     -L/usr/X11/lib     -L$(NCURSESLIB)
X+  CCINCS = -I$(X11DIR)/include
X+  CCLIBS = -L$(X11DIR)/lib -L$(NCURSESLIB)
X 
X   # But some vendors put things in non-standard places
X 
END-of-xhomer/files/patch-Makefile
exit
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2006-06-10 18:20:26 UTC
State Changed
From-To: open->feedback


- Please don't install COPYING (the GPL), but if you install the file 
LICENSE, install also the file SIMH. 

- The configuration file is installed under ${PREFIX}/etc, but it is not 
found; I guess that pro_init.c should be patched. 

- Warning: it would be better to install this config file as a template 
(.sample), or don't install it if it has been updated. 

- This port is not useful without a hard disk image file (pos32.rd or 
venix2.rd; it would be fine to install it together, or to provide 
separate slave ports. 



Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2006-06-10 18:20:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry


Take it.
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2006-07-14 14:30:49 UTC
On Thu 13 jul 06 at 13:08:22 +0200, trasz@pin.if.uz.zgora.pl <trasz@pin.if.uz.zgora.pl>
 wrote:
> Sorry about the delay.  I thought i sent this mail, while in fact
> i postponed it.
> 
> On 0610T1728, Thierry Thomas wrote:
> > Synopsis: New port: emulators/xhomer - Emulator for the DEC Pro 350 computer
> > 
> > State-Changed-From-To: open->feedback
> > State-Changed-By: thierry
> > State-Changed-When: Sat Jun 10 17:20:26 UTC 2006
> > State-Changed-Why: 
> > 
> > - Please don't install COPYING (the GPL), but if you install the file
> >   LICENSE, install also the file SIMH.
> 
> OK.
> 
> > - The configuration file is installed under ${PREFIX}/etc, but it is not
> >   found; I guess that pro_init.c should be patched.
> 
> Well, the config of this emulator is inherently per-user - user is
> supposed to change at least the path to the disk image.  Maybe just
> put xhomer.cfg.sample into ${PREFIX}/share/examples/xhomer/?

OK, in this case you could remove the suffix ".sample", and add a
notice about it in pkg-message.

> > - Warning: it would be better to install this config file as a template
> >   (.sample), or don't install it if it has been updated.
> 
> OK.
> 
> > - This port is not useful without a hard disk image file (pos32.rd or
> >   venix2.rd; it would be fine to install it together, or to provide
> >   separate slave ports.
> 
> Emulator needs to access these files in read/write mode, so they should
> be per-user, i think.  I could add a pkg-message for this port, indicated
> where the filesystem images can be downloaded from.

Fine! Please do.

Regards,
-- 
Th. Thomas.
Comment 4 trasz 2006-07-16 10:26:00 UTC
Attached is a (hopefully) better version.  Thanks for advice.  :-)
Comment 5 Thierry Thomas freebsd_committer freebsd_triage 2006-07-16 21:02:55 UTC
State Changed
From-To: feedback->closed


New port added, thanks! 

(with minor modifications)