Index: head/emulators/Makefile =================================================================== --- head/emulators/Makefile (revision 439435) +++ head/emulators/Makefile (revision 439436) @@ -1,190 +1,191 @@ # $FreeBSD$ # COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += advancemame SUBDIR += advancemenu SUBDIR += advancemess SUBDIR += aftp + SUBDIR += almostti SUBDIR += aqemu SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += catapult SUBDIR += cinc SUBDIR += cingb SUBDIR += citra SUBDIR += citra-qt5 SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dboxfe SUBDIR += desmume SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += dtcyber SUBDIR += dynagen SUBDIR += dynagui SUBDIR += dynamips-community SUBDIR += e-uae SUBDIR += fceux SUBDIR += fmsx SUBDIR += frodo SUBDIR += fs-uae SUBDIR += fs-uae-launcher SUBDIR += fuse SUBDIR += fuse-roms SUBDIR += fuse-utils SUBDIR += gbe SUBDIR += gem5 SUBDIR += generator SUBDIR += generator-cbiere SUBDIR += gens SUBDIR += gngb SUBDIR += gngeo SUBDIR += gns3 SUBDIR += gnuboy SUBDIR += gxemul SUBDIR += hatari SUBDIR += hercules SUBDIR += higan SUBDIR += hugo SUBDIR += i386-wine SUBDIR += i386-wine-devel SUBDIR += i386-wine-staging SUBDIR += ia64sim SUBDIR += ines SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += kcemu SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libdsk SUBDIR += libspectrum SUBDIR += linux-c6 SUBDIR += linux-c7 SUBDIR += linux_base-c6 SUBDIR += linux_base-c7 SUBDIR += lisaem SUBDIR += loemu SUBDIR += m2000 SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mess SUBDIR += mtools SUBDIR += mupen64plus SUBDIR += mupen64plus-audio-sdl SUBDIR += mupen64plus-core SUBDIR += mupen64plus-input-sdl SUBDIR += mupen64plus-plugins SUBDIR += mupen64plus-rsp-cxd4 SUBDIR += mupen64plus-rsp-hle SUBDIR += mupen64plus-rsp-z64 SUBDIR += mupen64plus-ui-console SUBDIR += mupen64plus-video-arachnoid SUBDIR += mupen64plus-video-glide64 SUBDIR += mupen64plus-video-glide64mk2 SUBDIR += mupen64plus-video-rice SUBDIR += mupen64plus-video-z64 SUBDIR += nestopia SUBDIR += nonpareil SUBDIR += o2em SUBDIR += ods2reader SUBDIR += open-vm-tools SUBDIR += open-vm-tools-nox11 SUBDIR += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcemu SUBDIR += pcsxr SUBDIR += pearpc SUBDIR += pipelight SUBDIR += playonbsd SUBDIR += ppsspp SUBDIR += ppsspp-qt5 SUBDIR += py-gns3-converter SUBDIR += py-nova SUBDIR += py-unicorn SUBDIR += q4wine SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-cheri128 SUBDIR += qemu-cheri128m SUBDIR += qemu-devel SUBDIR += qemu-launcher SUBDIR += qemu-riscv SUBDIR += qemu-sbruno SUBDIR += qemu-user-static SUBDIR += qemu-utils SUBDIR += qmc2 SUBDIR += qtemu SUBDIR += quasi88 SUBDIR += raine SUBDIR += riscv-fesvr SUBDIR += riscv-isa-sim SUBDIR += rtc SUBDIR += rubygem-fission SUBDIR += simh SUBDIR += skyeye SUBDIR += snes9express SUBDIR += snes9x SUBDIR += snes9x-gtk SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += swine SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme SUBDIR += tpm-emulator SUBDIR += tuxnes SUBDIR += uae SUBDIR += ucon64 SUBDIR += unicorn SUBDIR += vba SUBDIR += vboxtool SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice SUBDIR += virtio-kmod SUBDIR += virtualbox-ose SUBDIR += virtualbox-ose-additions SUBDIR += virtualbox-ose-additions-nox11 SUBDIR += virtualbox-ose-kmod SUBDIR += virtualbox-ose-nox11 SUBDIR += visualboyadvance-m SUBDIR += vmips SUBDIR += vmsbackup SUBDIR += vmw SUBDIR += vpcs SUBDIR += vxtools SUBDIR += wine SUBDIR += wine-devel SUBDIR += wine-gecko SUBDIR += wine-gecko-devel SUBDIR += wine-mono SUBDIR += wine-mono-devel SUBDIR += wine-staging SUBDIR += winetricks SUBDIR += wxmupen64plus SUBDIR += x48 SUBDIR += x49gp SUBDIR += xbraitenberg SUBDIR += xcpc SUBDIR += xen SUBDIR += xen-kernel SUBDIR += xhomer SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yabause SUBDIR += yape SUBDIR += zsnes .include Index: head/emulators/almostti/Makefile =================================================================== --- head/emulators/almostti/Makefile (nonexistent) +++ head/emulators/almostti/Makefile (revision 439436) @@ -0,0 +1,36 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= almostti +PORTVERSION= 1.3 +CATEGORIES= emulators +MASTER_SITES= http://fms.komkon.org/ATI85/ +DISTNAME= AlmostTI13-Unix-DougMelton-051409 + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Emulator for Z80 series of Texas Instruments calculators + +USES= gmake +USE_XORG= x11 xext + +WRKSRC= ${WRKDIR}/AlmostTI-DougMelton-Source +BUILD_WRKSRC= ${WRKSRC}/ATI85/Unix + +DESKTOP_ENTRIES= "ATI85" "${COMMENT}" "ati85" "ati85" \ + "Utility;Calculator;Emulator;" false + +post-patch: + @${REINPLACE_CMD} -e 's,\./,${DATADIR}/,' ${WRKSRC}/ATI85/TI85.c + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/ati85 ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} +.for model in 82 83 83P 83SE 84SE 85 86 + ${INSTALL_DATA} ${WRKSRC}/ATI85/Maemo/Package/TI${model}.png \ + ${STAGEDIR}${DATADIR} +.endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps + ${INSTALL_DATA} ${WRKSRC}/ATI85/Maemo/Package/ati85-64x64.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/ati85.png + +.include Property changes on: head/emulators/almostti/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/distinfo =================================================================== --- head/emulators/almostti/distinfo (nonexistent) +++ head/emulators/almostti/distinfo (revision 439436) @@ -0,0 +1,3 @@ +TIMESTAMP = 1261815086 +SHA256 (AlmostTI13-Unix-DougMelton-051409.tar.gz) = c3dcd7d2c03959c62f4f4aba2e7cb911a9fc516487d2c99bdf3f3ac2461d37ae +SIZE (AlmostTI13-Unix-DougMelton-051409.tar.gz) = 1983210 Property changes on: head/emulators/almostti/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/files/patch-ATI85_TI85.c =================================================================== --- head/emulators/almostti/files/patch-ATI85_TI85.c (nonexistent) +++ head/emulators/almostti/files/patch-ATI85_TI85.c (revision 439436) @@ -0,0 +1,35 @@ +--- ATI85/TI85.c.orig 2009-12-17 07:37:54 UTC ++++ ATI85/TI85.c +@@ -61,14 +61,14 @@ int LinkPort = 8385; /* Li + /** Configuration, by model **********************************/ + const TIConfig Config[] = + { +- { ATI_TI85, "TI85.png", "TI85.ROM", 0x20000, "TI85.RAM", 0x8000 }, +- { ATI_TI86, "TI86.png", "TI86.ROM", 0x40000, "TI86.RAM", 0x20000 }, +- { ATI_TI82, "TI82.png", "TI82.ROM", 0x20000, "TI82.RAM", 0x8000 }, +- { ATI_TI83, "TI83.png", "TI83.ROM", 0x40000, "TI83.RAM", 0x8000 }, +- { ATI_TI83P, "TI83P.png", "TI83P.ROM", 0x80000, "TI83P.RAM", 0x8000 }, +- { ATI_TI83SE,"TI83SE.png","TI83SE.ROM",0x200000,"TI83SE.RAM",0x20000 }, +- { ATI_TI84P, "TI84P.png", "TI84P.ROM", 0x100000,"TI84P.RAM", 0x20000 }, +- { ATI_TI84SE,"TI84SE.png","TI84SE.ROM",0x200000,"TI84SE.RAM",0x20000 }, ++ { ATI_TI85, "./" "TI85.png", "TI85.ROM", 0x20000, "TI85.RAM", 0x8000 }, ++ { ATI_TI86, "./" "TI86.png", "TI86.ROM", 0x40000, "TI86.RAM", 0x20000 }, ++ { ATI_TI82, "./" "TI82.png", "TI82.ROM", 0x20000, "TI82.RAM", 0x8000 }, ++ { ATI_TI83, "./" "TI83.png", "TI83.ROM", 0x40000, "TI83.RAM", 0x8000 }, ++ { ATI_TI83P, "./" "TI83P.png", "TI83P.ROM", 0x80000, "TI83P.RAM", 0x8000 }, ++ { ATI_TI83SE,"./" "TI83SE.png","TI83SE.ROM",0x200000,"TI83SE.RAM",0x20000 }, ++ { ATI_TI84P, "./" "TI84P.png", "TI84P.ROM", 0x100000,"TI84P.RAM", 0x20000 }, ++ { ATI_TI84SE,"./" "TI84SE.png","TI84SE.ROM",0x200000,"TI84SE.RAM",0x20000 }, + { 0,0,0,0,0,0 } + }; + +@@ -274,6 +274,9 @@ int ResetTI85(int NewMode) + RAMSize = Config[M].RAMSize; + ROMSize = Config[M].ROMSize; + ++ /* Set RAMFile to enable state saving */ ++ RAMFile = Config[M].RAMFile; ++ + /* Clear memory contents */ + memset(RAM,NORAM,RAMSize); + Property changes on: head/emulators/almostti/files/patch-ATI85_TI85.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/files/patch-ATI85_Unix_Unix.c =================================================================== --- head/emulators/almostti/files/patch-ATI85_Unix_Unix.c (nonexistent) +++ head/emulators/almostti/files/patch-ATI85_Unix_Unix.c (revision 439436) @@ -0,0 +1,101 @@ +--- ATI85/Unix/Unix.c.orig 2009-12-17 08:32:38 UTC ++++ ATI85/Unix/Unix.c +@@ -228,11 +228,19 @@ int ShowBackdrop(const char *FileName) + printf("error: %d\n", decoder.error); + return(0); + } ++#ifndef PORTRAIT + if (decoder.infoPng.width != WIDTH) { ++#else ++ if (decoder.infoPng.height != WIDTH) { ++#endif + printf("error: skin width != %d\n", WIDTH); + return(0); + } ++#ifndef PORTRAIT + if (decoder.infoPng.height != HEIGHT) { ++#else ++ if (decoder.infoPng.width != HEIGHT) { ++#endif + printf("error: skin height != %d\n", HEIGHT); + return(0); + } +@@ -242,10 +250,20 @@ int ShowBackdrop(const char *FileName) + pixel *P = (pixel *)OutImage.Data; + unsigned char *Q = image; + ++#ifndef PORTRAIT + for (j = HEIGHT * WIDTH; j; j--) { + *P++ = X11GetColor(*Q++,*Q++,*Q++); + Q++; + } ++#else ++ uint k; ++ for (k = 0; k < HEIGHT; k++) { ++ for (j = WIDTH; j > 0; j--) { ++ Q = image + (j * HEIGHT + k) * 4; ++ *P++ = X11GetColor(*Q++,*Q++,*Q++); ++ } ++ } ++#endif + + // Cleanup decoder + free(image); +@@ -291,11 +309,25 @@ void HandleKeys(unsigned int Key) + case XK_Up: KBD_RES(KBD_UP);KeyReady=1;break; + case XK_Down: KBD_RES(KBD_DOWN);KeyReady=1;break; + case XK_greater: KBD_RES(KBD_STO);KeyReady=1;break; +- case XK_Delete: +- case XK_BackSpace: KBD_RES(KBD_DEL);KeyReady=1;break; +- case XK_Home: KBD_RES(KBD_CLEAR);KeyReady=1;break; ++ case XK_Delete: KBD_RES(KBD_DEL);KeyReady=1;break; ++ case XK_BackSpace: KBD_RES(KBD_CLEAR);KeyReady=1;break; + case XK_Alt_L: + case XK_Alt_R: KBD_RES(KBD_ALPHA);KeyReady=1;break; ++ case XK_KP_Home: KBD_RES(KBD_7);KeyReady=1;break; ++ case XK_KP_Up: KBD_RES(KBD_8);KeyReady=1;break; ++ case XK_KP_Page_Up: KBD_RES(KBD_9);KeyReady=1;break; ++ case XK_KP_Left: KBD_RES(KBD_4);KeyReady=1;break; ++ case XK_KP_Begin: KBD_RES(KBD_5);KeyReady=1;break; ++ case XK_KP_Right: KBD_RES(KBD_6);KeyReady=1;break; ++ case XK_KP_End: KBD_RES(KBD_1);KeyReady=1;break; ++ case XK_KP_Down: KBD_RES(KBD_2);KeyReady=1;break; ++ case XK_KP_Page_Down: KBD_RES(KBD_3);KeyReady=1;break; ++ case XK_KP_Insert: KBD_RES(KBD_0);KeyReady=1;break; ++ case XK_KP_Delete: KBD_RES(KBD_DOT);KeyReady=1;break; ++ case XK_KP_Divide: KBD_RES(KBD_DIV);KeyReady=1;break; ++ case XK_KP_Multiply: KBD_RES(KBD_MUL);KeyReady=1;break; ++ case XK_KP_Subtract: KBD_RES(KBD_MINUS);KeyReady=1;break; ++ case XK_KP_Add: KBD_RES(KBD_PLUS);KeyReady=1;break; + default: + Key&=CON_KEYCODE; + if((Key>=' ')&&(Key<0x80)) { KBD_RES(Key);KeyReady=1; } +@@ -343,11 +375,25 @@ void HandleKeys(unsigned int Key) + case XK_Up: KBD_SET(KBD_UP);KeyReady=1;break; + case XK_Down: KBD_SET(KBD_DOWN);KeyReady=1;break; + case XK_greater: KBD_SET(KBD_STO);KeyReady=1;break; +- case XK_Delete: +- case XK_BackSpace: KBD_SET(KBD_DEL);KeyReady=1;break; +- case XK_Home: KBD_SET(KBD_CLEAR);KeyReady=1;break; ++ case XK_Delete: KBD_SET(KBD_DEL);KeyReady=1;break; ++ case XK_BackSpace: KBD_SET(KBD_CLEAR);KeyReady=1;break; + case XK_Alt_L: + case XK_Alt_R: KBD_SET(KBD_ALPHA);KeyReady=1;break; ++ case XK_KP_Home: KBD_SET(KBD_7);KeyReady=1;break; ++ case XK_KP_Up: KBD_SET(KBD_8);KeyReady=1;break; ++ case XK_KP_Page_Up: KBD_SET(KBD_9);KeyReady=1;break; ++ case XK_KP_Left: KBD_SET(KBD_4);KeyReady=1;break; ++ case XK_KP_Begin: KBD_SET(KBD_5);KeyReady=1;break; ++ case XK_KP_Right: KBD_SET(KBD_6);KeyReady=1;break; ++ case XK_KP_End: KBD_SET(KBD_1);KeyReady=1;break; ++ case XK_KP_Down: KBD_SET(KBD_2);KeyReady=1;break; ++ case XK_KP_Page_Down: KBD_SET(KBD_3);KeyReady=1;break; ++ case XK_KP_Insert: KBD_SET(KBD_0);KeyReady=1;break; ++ case XK_KP_Delete: KBD_SET(KBD_DOT);KeyReady=1;break; ++ case XK_KP_Divide: KBD_SET(KBD_DIV);KeyReady=1;break; ++ case XK_KP_Multiply: KBD_SET(KBD_MUL);KeyReady=1;break; ++ case XK_KP_Subtract: KBD_SET(KBD_MINUS);KeyReady=1;break; ++ case XK_KP_Add: KBD_SET(KBD_PLUS);KeyReady=1;break; + default: + Key&=CON_KEYCODE; + if((Key>=' ')&&(Key<0x80)) { KBD_SET(Key);KeyReady=1; } Property changes on: head/emulators/almostti/files/patch-ATI85_Unix_Unix.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/files/patch-EMULib_Rules.Unix =================================================================== --- head/emulators/almostti/files/patch-EMULib_Rules.Unix (nonexistent) +++ head/emulators/almostti/files/patch-EMULib_Rules.Unix (revision 439436) @@ -0,0 +1,12 @@ +--- EMULib/Rules.Unix.orig 2009-12-17 07:37:54 UTC ++++ EMULib/Rules.Unix +@@ -6,7 +6,7 @@ + + include ../../EMULib/Rules.gcc + +-CFLAGS += -I$(EMULIB)/Unix -I/usr/X11R6/include ++CFLAGS += -I$(EMULIB)/Unix -I$(LOCALBASE)/include + DEFINES+= -DUNIX -DMITSHM -DBPS16 +-LIBS += -lX11 -lXext ++LIBS += -L$(LOCALBASE)/lib -lX11 -lXext + OBJECTS+= $(EMUUNIX) Property changes on: head/emulators/almostti/files/patch-EMULib_Rules.Unix ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/files/patch-EMULib_Rules.gcc =================================================================== --- head/emulators/almostti/files/patch-EMULib_Rules.gcc (nonexistent) +++ head/emulators/almostti/files/patch-EMULib_Rules.gcc (revision 439436) @@ -0,0 +1,17 @@ +--- EMULib/Rules.gcc.orig 2009-12-17 07:37:54 UTC ++++ EMULib/Rules.gcc +@@ -5,11 +5,11 @@ LIBZ80 = $(BASEDIR)/Z80 + LIB6502 = $(BASEDIR)/M6502 + LIBGBZ = $(BASEDIR)/GBZ80 + +-CXX = g++ +-CC = gcc ++CXX = c++ ++CC = cc + CPP = cpp + SDT2GAS = perl $(EMULIB)/Tools/sdt2gas.pl +-CFLAGS = -O3 -pthread -I. -I.. -I$(EMULIB) ++CFLAGS += -pthread -I. -I.. -I$(EMULIB) + DEFINES = -DZLIB + LIBS = -lz -lpthread + Property changes on: head/emulators/almostti/files/patch-EMULib_Rules.gcc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/files/patch-EMULib_Unix_NetUnix.c =================================================================== --- head/emulators/almostti/files/patch-EMULib_Unix_NetUnix.c (nonexistent) +++ head/emulators/almostti/files/patch-EMULib_Unix_NetUnix.c (revision 439436) @@ -0,0 +1,10 @@ +--- EMULib/Unix/NetUnix.c.orig 2009-12-17 07:37:54 UTC ++++ EMULib/Unix/NetUnix.c +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + + static int IsServer = 0; + static int Socket = -1; Property changes on: head/emulators/almostti/files/patch-EMULib_Unix_NetUnix.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/pkg-descr =================================================================== --- head/emulators/almostti/pkg-descr (nonexistent) +++ head/emulators/almostti/pkg-descr (revision 439436) @@ -0,0 +1,9 @@ +AlmostTI is a program that emulates Z80-based graphing calculators made by +Texas Instruments. Currently, it supports TI-82, TI-83, TI-83+, TI-83+SE, +TI-84+, TI-84+SE, TI-85, and TI-86. + +It requires ROM image to operate, which must be obtained separately. RAM +state is preserved across different runs, making complex usage scenarios +possible. + +WWW: http://fms.komkon.org/ATI85/ Property changes on: head/emulators/almostti/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/emulators/almostti/pkg-plist =================================================================== --- head/emulators/almostti/pkg-plist (nonexistent) +++ head/emulators/almostti/pkg-plist (revision 439436) @@ -0,0 +1,9 @@ +bin/ati85 +%%DATADIR%%/TI82.png +%%DATADIR%%/TI83.png +%%DATADIR%%/TI83P.png +%%DATADIR%%/TI83SE.png +%%DATADIR%%/TI84SE.png +%%DATADIR%%/TI85.png +%%DATADIR%%/TI86.png +share/icons/hicolor/64x64/apps/ati85.png Property changes on: head/emulators/almostti/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property