Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 16:23:40 +0100 (CET)
From:      Janos Mohacsi <mohacsi@niif.hu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45004: New port: yape - yet another Commodore +4 emulator version 0.23.3
Message-ID:  <200211061523.gA6FNejR072593@norfolk.ki.iif.hu>

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

>Number:         45004
>Category:       ports
>Synopsis:       New port: yape - yet another Commodore +4 emulator version 0.23.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 06 07:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Janos Mohacsi
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
NIIF
>Environment:
System: FreeBSD norfolk.ki.iif.hu 4.7-STABLE FreeBSD 4.7-STABLE #3: Sun Oct 20 22:09:30 CEST 2002 root@norfolk.ki.iif.hu:/usr/src/sys/compile/NORFOLK i386

>Description:
	New port: a Commodore +4 emulator originally written for Linux 
	version 0.23.3

>How-To-Repeat:
	Apply this shar.
>Fix:

# 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:
#
#	yape/
#	yape/pkg-plist
#	yape/pkg-descr
#	yape/pkg-comment
#	yape/files
#	yape/files/patch-Makefile
#	yape/files/patch-archdep.cpp
#	yape/files/patch-interface.cpp
#	yape/files/patch-main.h
#	yape/files/patch-sound.h
#	yape/Makefile
#	yape/distinfo
#
echo c - yape/
mkdir -p yape/ > /dev/null 2>&1
echo x - yape/pkg-plist
sed 's/^X//' >yape/pkg-plist << 'END-of-yape/pkg-plist'
Xbin/yape
X%%PORTDOCS%%share/doc/yape/README.Linux
X%%PORTDOCS%%@dirrm share/doc/yape
END-of-yape/pkg-plist
echo x - yape/pkg-descr
sed 's/^X//' >yape/pkg-descr << 'END-of-yape/pkg-descr'
XYet Another Commodore +4 Emulator
X
XYape features:
X
X  - full, cycle exact MOS 7501 CPU emulation
X  - almost full TED 7360 chip emulation
X  - full ROM banking
X  - almost full tape emulation
X  - joystick emulation via cursor keys
X  - color palette based on original Commodore specs
X  - PRG and TAP file format support
X  - fake disk LOAD/SAVE to the file system
X
XWWW: http://plus4.keepitretro.com
XJanos Mohacsi
END-of-yape/pkg-descr
echo x - yape/pkg-comment
sed 's/^X//' >yape/pkg-comment << 'END-of-yape/pkg-comment'
XYape - Yet Another Commodore +4 Emulator
END-of-yape/pkg-comment
echo c - yape/files
mkdir -p yape/files > /dev/null 2>&1
echo x - yape/files/patch-Makefile
sed 's/^X//' >yape/files/patch-Makefile << 'END-of-yape/files/patch-Makefile'
X--- Makefile.orig	Tue Aug  7 19:22:21 2001
X+++ Makefile	Thu Oct 31 23:57:14 2002
X@@ -13,13 +13,15 @@
X headers = $(objects:.o=.h)
X 
X CC = g++
X-cflags = -O3 -finline -frerun-loop-opt -Winline `sdl-config --cflags`
X-libs = `sdl-config --libs` 
X+cflags = -O3 -finline -frerun-loop-opt -Winline `sdl11-config --cflags`
X+libs = `sdl11-config --libs` 
X 
X #SDL_CFLAGS := $(shell sdl-config --cflags)
X #SDL_LDFLAGS := $(shell sdl-config --libs)
X 
X 
X+all: yapedebug
X+
X yapedebug : $(objects)
X 	$(CC) $(cflags) $(libs) -g -o yape $^
X 
END-of-yape/files/patch-Makefile
echo x - yape/files/patch-archdep.cpp
sed 's/^X//' >yape/files/patch-archdep.cpp << 'END-of-yape/files/patch-archdep.cpp'
X--- archdep.cpp.orig	Thu Oct 31 23:47:54 2002
X+++ archdep.cpp	Thu Oct 31 23:48:53 2002
X@@ -108,7 +108,7 @@
X 
X   strcpy( homedir , getenv( "HOME" ));
X   //strcpy( filter, filefilter);
X-  strcat( homedir, "/yape" );
X+  strcat( homedir, "/.yape" );
X   chdir ( homedir );
X   dirp = opendir( homedir );
X   //fprintf( stderr, "reading from %s\n", homedir);
X@@ -136,7 +136,7 @@
X int ad_makedirs(char *path)
X {
X   strcpy(temp,path);
X-  strcat(temp, "/yape");
X+  strcat(temp, "/.yape");
X   mkdir(temp, 0777);
X 
X   return 1;
X@@ -146,7 +146,7 @@
X {
X 
X 	strcpy( temp, tmpchr);
X-	strcat( temp, "/yape/yape.conf");
X+	strcat( temp, "/.yape/yape.conf");
X 
X 	return temp;
X }
END-of-yape/files/patch-archdep.cpp
echo x - yape/files/patch-interface.cpp
sed 's/^X//' >yape/files/patch-interface.cpp << 'END-of-yape/files/patch-interface.cpp'
X--- interface.cpp.orig	Thu Oct 31 23:43:08 2002
X+++ interface.cpp	Thu Oct 31 23:43:35 2002
X@@ -10,7 +10,7 @@
X 	(c) 2000, 2001 Attila Grósz
X */
X 
X-#include "SDL/SDL.h"
X+#include "SDL.h"
X #include "tedmem.h"
X #include "interface.h"
X #include "archdep.h"
END-of-yape/files/patch-interface.cpp
echo x - yape/files/patch-main.h
sed 's/^X//' >yape/files/patch-main.h << 'END-of-yape/files/patch-main.h'
X--- main.h.orig	Thu Oct 31 23:44:51 2002
X+++ main.h	Thu Oct 31 23:45:12 2002
X@@ -17,7 +17,7 @@
X #include <string.h>
X #include <ctype.h>
X #include <math.h>
X-#include "SDL/SDL.h"
X+#include "SDL.h"
X 
X #include "keyboard.h"
X #include "cpu.h"
END-of-yape/files/patch-main.h
echo x - yape/files/patch-sound.h
sed 's/^X//' >yape/files/patch-sound.h << 'END-of-yape/files/patch-sound.h'
X--- sound.h.orig	Thu Oct 31 23:44:15 2002
X+++ sound.h	Thu Oct 31 23:44:25 2002
X@@ -1,7 +1,7 @@
X #ifndef _SOUND_H
X #define _SOUND_H
X 
X-#include "SDL/SDL.h"
X+#include "SDL.h"
X 
X 
X class MEM;
END-of-yape/files/patch-sound.h
echo x - yape/Makefile
sed 's/^X//' >yape/Makefile << 'END-of-yape/Makefile'
X# New ports collection makefile for:    yape
X# Date created:         31.10.2002
X# Whom:                 Janos.Mohacsi@bsd.hu
X#
X# $FreeBSD$
X#
X
XPORTNAME=	yape
XPORTVERSION=	0.32.3
XCATEGORIES=	emulators
XMASTER_SITES=	http://www.keepitretro.com/plus4/download/
XDISTNAME=	yapeSDL-${PORTVERSION}
X
XMAINTAINER=	janos.mohacsi@bsd.hu
X
XLIB_DEPENDS=	SDL-1.1.4:${PORTSDIR}/devel/sdl12
X
XUSE_GMAKE=	yes
XNO_WRKSUBDIR=	yes
XSDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/yape ${PREFIX}/bin
X
Xpost-install:
X.ifndef(NOPORTDOCS)
X	@if [ ! -d ${PREFIX}/share/doc/yape ]; then \
X		${MKDIR} ${PREFIX}/share/doc/yape; fi
X	${INSTALL_DATA} ${WRKSRC}/README.Linux \
X		${PREFIX}/share/doc/yape
X.endif
X
X.include <bsd.port.mk>
END-of-yape/Makefile
echo x - yape/distinfo
sed 's/^X//' >yape/distinfo << 'END-of-yape/distinfo'
XMD5 (yapeSDL-0.32.3.tar.gz) = 454c538dc29c78d3bd0c8523d04da137
END-of-yape/distinfo
exit


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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