diff options
author | Eric L. Hernes <erich@FreeBSD.org> | 1996-11-15 16:35:35 +0000 |
---|---|---|
committer | Eric L. Hernes <erich@FreeBSD.org> | 1996-11-15 16:35:35 +0000 |
commit | 047a3cbbeed8b7d5eb5546c401a7891cc2cf3b24 (patch) | |
tree | 626c1579c8057831caf23cabfdd8ee759842aeac /emulators/vgb | |
parent | ad59d1ca17b716bf681ddd970793c4ae1c2016bf (diff) | |
download | ports-047a3cbbeed8b7d5eb5546c401a7891cc2cf3b24.tar.gz ports-047a3cbbeed8b7d5eb5546c401a7891cc2cf3b24.zip |
Notes
Diffstat (limited to 'emulators/vgb')
-rw-r--r-- | emulators/vgb/Makefile | 27 | ||||
-rw-r--r-- | emulators/vgb/distinfo | 1 | ||||
-rw-r--r-- | emulators/vgb/files/patch-aa | 21 | ||||
-rw-r--r-- | emulators/vgb/files/vgb.sh | 3 | ||||
-rw-r--r-- | emulators/vgb/pkg-comment | 1 | ||||
-rw-r--r-- | emulators/vgb/pkg-descr | 57 | ||||
-rw-r--r-- | emulators/vgb/pkg-plist | 4 |
7 files changed, 114 insertions, 0 deletions
diff --git a/emulators/vgb/Makefile b/emulators/vgb/Makefile new file mode 100644 index 000000000000..38a8db9560bd --- /dev/null +++ b/emulators/vgb/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: vgb +# Version required: 0.7 +# Date created: 31 October 1996 +# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp> +# +# $Id$ +# + +DISTNAME= GB +PKGNAME= vgb-0.7 +CATEGORIES= emulator +MASTER_SITES= ftp://freefall/pub/FreeBSD/LOCAL_PORTS/ +DISTFILES= VGB.tar.Z + +MAINTAINER= Nakai@Mlab.t.u-tokyo.ac.jp + +USE_X11= yes +CONFIGURE_ENV+= X11BASE=${X11BASE} + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/gblist ${PREFIX}/bin + @mkdir -p ${PREFIX}/libexec/VGB ${PREFIX}/share/VGB + @${INSTALL_PROGRAM} ${WRKSRC}/vgb ${PREFIX}/libexec/VGB + @${INSTALL_DATA} ${WRKSRC}/CART.GB ${PREFIX}/share/VGB + @${INSTALL_SCRIPT} ${WRKSRC}/vgb.sh ${PREFIX}/bin/vgb + +.include <bsd.port.mk> diff --git a/emulators/vgb/distinfo b/emulators/vgb/distinfo new file mode 100644 index 000000000000..1d56726c28ea --- /dev/null +++ b/emulators/vgb/distinfo @@ -0,0 +1 @@ +MD5 (VGB.tar.Z) = 215738517e7683d82210557e57a66e50 diff --git a/emulators/vgb/files/patch-aa b/emulators/vgb/files/patch-aa new file mode 100644 index 000000000000..ddf0522d1f98 --- /dev/null +++ b/emulators/vgb/files/patch-aa @@ -0,0 +1,21 @@ +*** Makefile.org Thu Oct 31 03:00:44 1996 +--- Makefile Thu Oct 31 03:01:14 1996 +*************** +*** 27,34 **** + # change the -L/usr/X11R6/lib to the directory where X11 + # libraries libX11.* and libXext.* are located on your system. + CC = gcc +! DEFINES = -DUNIX -DLSB_FIRST -DDEBUG -DMITSHM +! CFLAGS = -O2 -I/usr/X11/include -L/usr/X11/lib/ ${DEFINES} + OBJECTS = VGB.o GB.o Z80.o Debug.o Unix.o + + # Make the standard distribution: VGB, DASM, and utilities. +--- 27,34 ---- + # change the -L/usr/X11R6/lib to the directory where X11 + # libraries libX11.* and libXext.* are located on your system. + CC = gcc +! DEFINES = -DUNIX -DLSB_FIRST -DDEBUG +! CFLAGS = -O2 -I/usr/X11R6/include -L/usr/X11R6/lib/ ${DEFINES} + OBJECTS = VGB.o GB.o Z80.o Debug.o Unix.o + + # Make the standard distribution: VGB, DASM, and utilities. diff --git a/emulators/vgb/files/vgb.sh b/emulators/vgb/files/vgb.sh new file mode 100644 index 000000000000..eb3df1e036fa --- /dev/null +++ b/emulators/vgb/files/vgb.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +/usr/X11R6/libexec/VGB/vgb $* diff --git a/emulators/vgb/pkg-comment b/emulators/vgb/pkg-comment new file mode 100644 index 000000000000..9fdb4c3483c8 --- /dev/null +++ b/emulators/vgb/pkg-comment @@ -0,0 +1 @@ +Nintendo GameBoy(tm) emulator diff --git a/emulators/vgb/pkg-descr b/emulators/vgb/pkg-descr new file mode 100644 index 000000000000..2ada70f18924 --- /dev/null +++ b/emulators/vgb/pkg-descr @@ -0,0 +1,57 @@ +Virtual Game Boy is the Nintendo GameBoy(tm) emulator on X-Window. + + Test your VGB installation with the command(default): + + vgb /usr/X11R6/share/VGB/CART.GB + + If you want to know what the cartidge file is, type as: + + gblist <cartridge file> + + You buy the cartridges. GameBoy software is copyrighted and still sold. +Therefore, its distribution is an act of piracy. Nothing prohibits you +from backing up a cartridge you own and playing it on the emulator though. +To back up a GameBoy cartridge, you can use either SmartCard copier (about +$100 for a standalone version), or a self-built copier designed by Pascal +Felber, description of which is available at: + + http://www.freeflight.com/fms/GameBoy/ + +GameBoy-related archives with technical and other info are located at: + + http://www.freeflight.com/fms/GameBoy/ + ftp://ftp.komkon.org/pub/GameBoy/ + +Usage: vgb [-option1 [-option2...]] <filename> +<filename> = name of file to load as cartridge [CART.GB] +[-option] = + -verbose <level> - Select debugging messages [5] + 0 - Silent 1 - Startup messages + 2 - Illegal writes 4 - Illegal CPU ops + 8 - Bank switching + -vperiod <period> - Set VBlank interrupts period [69905 cycles] + -uperiod <period> - Number of interrupts per screen update [2] + -help - Print this help page + -cheat <GG code> - Activate a GameGenie cheat + -delay/-nodelay - Delay/don't delay line interrupts [-nodelay] + -crc/-nocrc - Check/don't check cartridge CRC [-crc] + -autoa/-noautoa - Autofire/No autofire for button A [-noautoa] + -autob/-noautob - Autofire/No autofire for button B [-noautob] + -logsnd <filename> - Write soundtrack to a file [off] + -trap <address> - Trap execution when PC reaches address [FFFFh] + -saver/-nosaver - Save/don't save CPU when inactive [-saver] + -colorN <name> - Change color #N [white,#989898,#585858,black] + -bcolorN <name> - Change background color #N [same] + -scolorN <name> - Change sprite color #N [same] + -wcolorN <name> - Change window color #N [same] + +Keyboard bindings: + [SPACE] - A button (also: A,S,D,F,G,H,J,K,L) + [LALT] - B button (also: Z,X,C,V,B,N,M) + [TAB] - SELECT button + [ENTER] - START button + [ESC] - Quit emulation (also: [F12]) + + [F1] - Go into built-in debugger + [F2] - Show LCD controller registers + diff --git a/emulators/vgb/pkg-plist b/emulators/vgb/pkg-plist new file mode 100644 index 000000000000..abefcac9f517 --- /dev/null +++ b/emulators/vgb/pkg-plist @@ -0,0 +1,4 @@ +bin/vgb +bin/gblist +libexec/VGB/vgb +share/VGB/CART.GB |