[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xm-7 (FM-7 emulator)



こんばんは。

FM-7のエミュレーターxm-7のpkgsrcです。

○実機を持っていないので動作確認ができていません(秋葉で3500
円だったような気がします)。

○元のソースはi386のときにアセンブラーのソースを使って高速か
をはかっていますが、その部分はできていません(何か見本はあり
ませんか?)。

# 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:
#
#	xm7
#	xm7/Makefile
#	xm7/files
#	xm7/files/md5
#	xm7/patches
#	xm7/patches/patch-aa
#	xm7/patches/patch-ab
#	xm7/patches/patch-ac
#	xm7/patches/patch-ad
#	xm7/pkg
#	xm7/pkg/PLIST
#
echo c - xm7
mkdir -p xm7 > /dev/null 2>&1
echo x - xm7/Makefile
sed 's/^X//' >xm7/Makefile << 'END-of-xm7/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=		xm71010s
XCATEGORIES=		emulators
XMASTER_SITES=		http://www.ipc-tokai.or.jp/~ytanaka/fm7/
XEXTRACT_SUFX=		.lzh
X
XNO_WRKSUBDIR=		# empty
XRESTRICTED=		source archive is not redistributable
XNO_SRC_ON_CDROM=	${RESTRICTED}
XNO_SRC_ON_FTP=		${RESTRICTED}
XMIRROR_DISTFILES=	no
X
XMAINTAINER=		tech-pkg-ja@jp.NetBSD.org
XHOMEPAGE=		http://www.ipc-tokai.or.jp/~ytanaka/fm7/xm7.shtml
X
X#LHA=			lha
X#BUILD_DEPENDS+=		lha:../../archivers/lha
X#DECOMPRESS_CMD=
X#EXTRACT_CMD=		${LHA} xtq ${DECOMPRESS_CMD} 
X
XBUILD_DEPENDS+=		nkf:../../japanese/nkf
XNO_CONFIGURE=		yes
X
Xpost-extract:
X	@cd ${WRKDIR}; ${MV} linux/* vm
X
Xpre-patch:
X	@cd ${WRKDIR/vm}; ${ECHO} -n 'a' | ${TR} 'a' '\012' >> Makefile.X11
X
Xpost-patch:
X	@cd ${WRKDIR}/vm; ${MAKE} -f Makefile.X11 convert
X
Xdo-build:
X	@cd ${WRKDIR}/vm; ${MAKE} -f Makefile.X11
X
X.include "../../mk/bsd.pkg.mk"
END-of-xm7/Makefile
echo c - xm7/files
mkdir -p xm7/files > /dev/null 2>&1
echo x - xm7/files/md5
sed 's/^X//' >xm7/files/md5 << 'END-of-xm7/files/md5'
X$NetBSD$
X
XMD5 (xm71010s.lzh) = bb0dba4de2ecc79118d799ecf37849aa
END-of-xm7/files/md5
echo c - xm7/patches
mkdir -p xm7/patches > /dev/null 2>&1
echo x - xm7/patches/patch-aa
sed 's/^X//' >xm7/patches/patch-aa << 'END-of-xm7/patches/patch-aa'
X$NetBSD$
X
X--- vm/Makefile.X11.orig	Thu Mar 23 01:01:00 2000
X+++ vm/Makefile.X11	Sat Aug 12 12:54:54 2000
X@@ -6,21 +6,29 @@
X 
X COMMONSRC = \
X 	debug.c disasm.c gui.c \
X-	cpu_x86.asm fdc.c keyboard.c kanji.c tapelp.c \
X+	fdc.c keyboard.c kanji.c tapelp.c \
X 	maincpu.c mainmem.c mainetc.c system.c multipag.c \
X 	subcpu.c submem.c display.c subctrl.c tools.c ttlpalet.c \
X 	opn.c opna.cpp fmgen.cpp psg.cpp 
X 
X+.if defined(__i386__)
X+COMMONSRC += cpu_x86.asm 
X+.endif
X+
X LOCALSRC = \
X 	xw_disp.c xw_key.c xw_main.c xw_file.c xw_snd.cpp
X 
X COMMONOBJ = \
X 	debug.o disasm.o gui.o \
X-	cpu_x86.o fdc.o keyboard.o kanji.o tapelp.o \
X+	fdc.o keyboard.o kanji.o tapelp.o \
X 	maincpu.o mainmem.o mainetc.o system.o multipag.o \
X 	subcpu.o submem.o display.o subctrl.o tools.o ttlpalet.o \
X 	opn.o opna.o fmgen.o psg.o
X 
X+.if defined(__i386__)
X+COMMONSRC += cpu_x86.o 
X+.endif
X+
X LOCALOBJ = \
X 	xw_disp.o xw_key.o xw_main.o xw_file.o xw_snd.o
X 
X@@ -29,22 +37,27 @@
X SRCS =	${COMMONSRC} ${LOCALSRC}
X OBJS =	${COMMONOBJ} ${LOCALOBJ}
X #LIBS = -L/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc
X-LIBS = -L/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc -lstdc++
X+LIBS = -L/usr/X11R6/lib -R/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc -lstdc++ \
X+       -lossaudio
X 
X #CFLAGS = 	-D_XWIN -DNDEBUG -O3 -funroll-loops -I/usr/X11R6/include -I.
X+.if defined(__i386__)
X CFLAGS = 	-D_XWIN -DNDEBUG -DCPU_ASM -O3 -I/usr/X11R6/include -I.
X+.else
X+CFLAGS = 	-D_XWIN -DNDEBUG -O3 -I/usr/X11R6/include -I.
X+.endif
X ASFLAGS =	-f elf -d _XWIN
X 
X all:	xm7
X 
X xm7:	${OBJS}
X-	gcc -o xm7 ${OBJS} ${LIBS}
X+	${CC} -o xm7 ${OBJS} ${LIBS}
X 
X .c.o:
X-	gcc ${CFLAGS} -o $@ -c $<
X+	${CC} ${CFLAGS} -o $@ -c $<
X 
X .cpp.o:
X-	g++ ${CFLAGS} -o $@ -c $<
X+	${CC} ${CFLAGS} -o $@ -c $<
X 
X .asm.o:
X 	nasm ${ASFLAGS} $<
X@@ -56,7 +69,7 @@
X 	find . -type l -exec rm -f {} \;
X 
X convert:
X-	./convert.sh
X+	sh ./convert.sh
X 
X symlink:
X-	./symlink.sh
X+	sh ./symlink.sh
END-of-xm7/patches/patch-aa
echo x - xm7/patches/patch-ab
sed 's/^X//' >xm7/patches/patch-ab << 'END-of-xm7/patches/patch-ab'
X$NetBSD$
X
X--- vm/convert.sh.orig	Sat Aug 12 12:17:15 2000
X+++ vm/convert.sh	Sat Aug 12 12:18:36 2000
X@@ -7,3 +7,7 @@
X rm t t.lzh
X done
X 
X+for X in *.cpp;do
X+nkf -e < $X > t
X+mv t $X
X+done
END-of-xm7/patches/patch-ab
echo x - xm7/patches/patch-ac
sed 's/^X//' >xm7/patches/patch-ac << 'END-of-xm7/patches/patch-ac'
X$NetBSD$
X
X--- vm/xw_disp.c.orig	Thu Mar 23 01:01:00 2000
X+++ vm/xw_disp.c	Sat Aug 12 12:32:32 2000
X@@ -24,11 +24,14 @@
X #include <X11/Xatom.h>
X #include <X11/keysym.h>
X #include <string.h>
X+#if defined(__NetBSD__)
X+#include <errno.h>
X+#endif
X #include <sys/time.h>
X #include <sys/errno.h>
X /**/
X #include <X11/extensions/XShm.h>
X-#ifdef __FreeBSD__
X+#if defined(__FreeBSD__) || defined(__NetBSD__)
X #include <machine/param.h>
X #endif
X #include <sys/types.h>
END-of-xm7/patches/patch-ac
echo x - xm7/patches/patch-ad
sed 's/^X//' >xm7/patches/patch-ad << 'END-of-xm7/patches/patch-ad'
X$NetBSD$
X
X--- vm/xw_snd.cpp.orig	Sat Aug 12 12:33:21 2000
X+++ vm/xw_snd.cpp	Sat Aug 12 12:36:19 2000
X@@ -24,6 +24,8 @@
X #include <sys/time.h>
X #ifdef __FreeBSD__
X #include <machine/soundcard.h>
X+#elif defined(__NetBSD__)
X+#include <soundcard.h>
X #else
X #include <linux/soundcard.h>
X #endif
END-of-xm7/patches/patch-ad
echo c - xm7/pkg
mkdir -p xm7/pkg > /dev/null 2>&1
echo x - xm7/pkg/PLIST
sed 's/^X//' >xm7/pkg/PLIST << 'END-of-xm7/pkg/PLIST'
X@comment $NetBSD$
END-of-xm7/pkg/PLIST
exit