Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2003 19:13:23 +0300 (MSK)
From:      "Alexey V. Antipovsky" <kemm@in-line.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58639: New port: emulators/fuse (depends on emulators/lib765 and emulators/libspectrum)
Message-ID:  <200310281613.h9SGDNjo067364@redsun.in-line.ru>
Resent-Message-ID: <200310281620.h9SGKGDb011220@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         58639
>Category:       ports
>Synopsis:       New port: emulators/fuse (depends on emulators/lib765 and emulators/libspectrum)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 08:20:16 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alexey V. Antipovsky
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Inline Technologies
>Environment:
System: FreeBSD redsun.in-line.ru 4.8-STABLE FreeBSD 4.8-STABLE #4: Mon May 26 17:27:11 MSD 2003 root@redsun.in-line.ru:/usr/obj/usr/src/sys/REDSUN i386

>Description:
fuse is a free version of a ZX Spectrum emulator. It emulates
the 48K/128K/+2/+2A/+3 Speccy and Timex TC2048 machine, supports
loading from .tzx files, has sound and kempston joystick emulation,
and emulates various printers you could attach to the Spectrum.
It supports the new RZX input recording file format.

>How-To-Repeat:
>Fix:

--- fuse.shar begins here ---
# 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:
#
#	fuse
#	fuse/pkg-plist
#	fuse/pkg-descr
#	fuse/distinfo
#	fuse/Makefile
#	fuse/files
#	fuse/files/patch-z80_z80.pl
#	fuse/files/patch-compat.h
#	fuse/files/patch-osssound.c
#	fuse/files/patch-ui_ggi_ggikeyboard.c.patch
#
echo c - fuse
mkdir -p fuse > /dev/null 2>&1
echo x - fuse/pkg-plist
sed 's/^X//' >fuse/pkg-plist << 'END-of-fuse/pkg-plist'
Xbin/fuse
Xshare/fuse/disk_plus3.z80
Xshare/fuse/keyboard.scr
Xshare/fuse/tape_128.z80
Xshare/fuse/tape_16.z80
Xshare/fuse/tape_2048.z80
Xshare/fuse/tape_2068.z80
Xshare/fuse/tape_48.z80
Xshare/fuse/tape_plus2.z80
Xshare/fuse/tape_plus2a.z80
Xshare/fuse/tape_plus3.z80
Xshare/fuse/tape_pentagon.z80
Xshare/fuse/128-0.rom
Xshare/fuse/128-1.rom
Xshare/fuse/48.rom
Xshare/fuse/plus2-0.rom
Xshare/fuse/plus2-1.rom
Xshare/fuse/plus3-0.rom
Xshare/fuse/plus3-1.rom
Xshare/fuse/plus3-2.rom
Xshare/fuse/plus3-3.rom
Xshare/fuse/tc2048.rom
Xshare/fuse/tc2068-0.rom
Xshare/fuse/tc2068-1.rom
Xshare/fuse/128p-0.rom
Xshare/fuse/128p-1.rom
Xshare/fuse/trdos.rom
X@dirrm share/fuse
END-of-fuse/pkg-plist
echo x - fuse/pkg-descr
sed 's/^X//' >fuse/pkg-descr << 'END-of-fuse/pkg-descr'
Xfuse is a free version of a ZX Spectrum emulator. It emulates
Xthe 48K/128K/+2/+2A/+3 Speccy and Timex TC2048 machine, supports
Xloading from .tzx files, has sound and kempston joystick emulation,
Xand emulates various printers you could attach to the Spectrum.
XIt supports the new RZX input recording file format.
X
X-- 
XAlexey V. Antipovsky
Xkemm@in-line.ru
END-of-fuse/pkg-descr
echo x - fuse/distinfo
sed 's/^X//' >fuse/distinfo << 'END-of-fuse/distinfo'
XMD5 (fuse-0.6.1.1.tar.gz) = 6738574d0f01f758ed352a6d3cb5f4b1
END-of-fuse/distinfo
echo x - fuse/Makefile
sed 's/^X//' >fuse/Makefile << 'END-of-fuse/Makefile'
X# New ports collection makefile for: fuse
X# Date created:                      28 October 2003
X# Whom:                              Alexey V. Antipovsky <kemm@in-line.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		fuse
XPORTVERSION=		0.6.1.1
XCATEGORIES=		emulators
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	fuse-emulator
X
XMAINTAINER=		kemm@in-line.ru
XCOMMENT=		Sinclair ZX-Spectrum emulator
X
XLIB_DEPENDS=		spectrum.2:${PORTSDIR}/emulators/libspectrum \
X			765.3:${PORTSDIR}/emulators/lib765 \
X			xml2.5:${PORTSDIR}/textproc/libxml2 \
X			png.5:${PORTSDIR}/graphics/png
X
XMAN1=			fuse.1
X
XUSE_XLIB=		yes
XUSE_GMAKE=		yes
XGNU_CONFIGURE=		yes
XUSE_PERL5=		yes
XCONFIGURE_ARGS+=	--with-plus3-disk-prefix=${LOCALBASE}
X
X.if defined(SMALL_MEM)
XCONFIGURE_ARGS+=	--enable-smallmem
X.endif
X
X.if !defined(WITHOUT_GTK)
XUSE_GNOME=		gtk12
X.else
XCONFIGURE_ARGS+=	--without-gtk
X.endif
X
X.if defined(WITH_SDL)
XCONFIGURE_ARGS+=	--with-sdl
XCONFIGURE_ENV+=		SDL_CONFIG=${LOCALBASE}/bin/sdl11-config
XLIB_DEPENDS+=		SDL-1.1.5:${PORTSDIR}/devel/sdl12
X.endif
X
X.if defined(WITH_SVGALIB)
XCONFIGURE_ARGS+=	--with-svgalib
XLIB_DEPENDS+=		vga.1:${PORTSDIR}/graphics/svgalib
X.endif
X
X.if defined(WITH_GGI)
XCONFIGURE_ARGS+=	--with-ggi
XLIB_DEPENDS+=		ggi.2:${PORTSDIR}/graphics/libggi
X.endif
X
X.if defined(WITH_GTK2)
XCONFIGURE_ARGS+=	--with-gtk2
XUSE_GNOME+=		gtk20
X.endif
X
Xpre-everything::
X	@${ECHO_MSG} ${CONFIGURE_ARGS}
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "You may use the following build options:"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "  SMALL_MEM=yes         low memory compile needed"
X	@${ECHO_MSG} "  WITHOUT_GTK=yes       don't use GTK1 user interface"
X	@${ECHO_MSG} "  WITH_SDL=yes          use SDL user interface"
X	@${ECHO_MSG} "  WITH_SVGALIB=yes      use SVGAlib user interface"
X	@${ECHO_MSG} "  WITH_GGI=yes          use GGI user interface"
X	@${ECHO_MSG} "  WITH_GTK2=yes         use GTK2 user interface"
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
END-of-fuse/Makefile
echo c - fuse/files
mkdir -p fuse/files > /dev/null 2>&1
echo x - fuse/files/patch-z80_z80.pl
sed 's/^X//' >fuse/files/patch-z80_z80.pl << 'END-of-fuse/files/patch-z80_z80.pl'
X--- z80/z80.pl.orig	Sat Sep 13 16:53:54 2003
X+++ z80/z80.pl	Tue Oct 28 13:00:53 2003
X@@ -1128,9 +1128,10 @@
X 
X     {
X 	no strict qw( refs );
X+	my $func = "opcode_$opcode";
X 
X-	if( exists &{ "opcode_$opcode" } ) {
X-	    "opcode_$opcode"->( @arguments );
X+	if( defined (&$func) ) {
X+	    &$func( @arguments );
X 	}
X     }
X 
END-of-fuse/files/patch-z80_z80.pl
echo x - fuse/files/patch-compat.h
sed 's/^X//' >fuse/files/patch-compat.h << 'END-of-fuse/files/patch-compat.h'
X--- compat.h.orig	Sat Sep 13 16:53:04 2003
X+++ compat.h	Tue Oct 28 12:48:07 2003
X@@ -45,7 +45,7 @@
X 
X /* Replacement functions */
X #ifndef HAVE_GETOPT_LONG
X-#include "compat/getopt.h"
X+#include "getopt.h"
X #endif				/* #ifndef HAVE_GETOPT_LONG */
X 
X #ifndef HAVE_MKSTEMP
END-of-fuse/files/patch-compat.h
echo x - fuse/files/patch-osssound.c
sed 's/^X//' >fuse/files/patch-osssound.c << 'END-of-fuse/files/patch-osssound.c'
X--- osssound.c.orig	Sat Sep 13 16:53:12 2003
X+++ osssound.c	Tue Oct 28 17:19:06 2003
X@@ -107,6 +107,7 @@
X   return 1;
X   }
X 
X+#if 0
X if(*freqptr>8250) frag++;
X if(*freqptr>16500) frag++;
X if(*freqptr>33000) frag++;
X@@ -118,6 +119,7 @@
X   close(soundfd);
X   return 1;
X   }
X+#endif
X 
X return 0;	/* success */
X }
END-of-fuse/files/patch-osssound.c
echo x - fuse/files/patch-ui_ggi_ggikeyboard.c.patch
sed 's/^X//' >fuse/files/patch-ui_ggi_ggikeyboard.c.patch << 'END-of-fuse/files/patch-ui_ggi_ggikeyboard.c.patch'
X--- ui/ggi/ggikeyboard.c.orig	Sat Sep 13 16:53:48 2003
X+++ ui/ggi/ggikeyboard.c	Tue Oct 28 14:52:14 2003
X@@ -43,6 +43,8 @@
X #include "widget/widget.h"
X #endif                          /* #ifdef USE_WIDGET */
X 
X+#include "fuse.h"
X+
X void
X ggikeyboard_keypress( int keysym )
X {
END-of-fuse/files/patch-ui_ggi_ggikeyboard.c.patch
exit
--- fuse.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310281613.h9SGDNjo067364>