Index: head/emulators/Makefile =================================================================== --- head/emulators/Makefile (revision 529250) +++ head/emulators/Makefile (revision 529251) @@ -1,178 +1,180 @@ # $FreeBSD$ # COMMENT = Emulators for other operating systems SUBDIR += adamem SUBDIR += advancemame SUBDIR += advancemenu SUBDIR += advancemess SUBDIR += almostti SUBDIR += anese SUBDIR += aqemu SUBDIR += atari800 SUBDIR += bfe SUBDIR += bochs SUBDIR += bsvc SUBDIR += cannonball SUBDIR += cinc SUBDIR += cingb SUBDIR += citra SUBDIR += citra-qt5 SUBDIR += cpmemu SUBDIR += cpmtools SUBDIR += cpmtools2 SUBDIR += darcnes SUBDIR += dgen-sdl SUBDIR += dolphin-emu SUBDIR += dosbox SUBDIR += dtcyber SUBDIR += dynagen SUBDIR += dynamips-community SUBDIR += e-uae SUBDIR += edumips64 SUBDIR += emu64 SUBDIR += emulationstation 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 += gens SUBDIR += gngb SUBDIR += gngeo SUBDIR += gxemul SUBDIR += hatari SUBDIR += hercules SUBDIR += higan SUBDIR += hugo SUBDIR += i386-wine SUBDIR += i386-wine-devel SUBDIR += ines SUBDIR += javatari SUBDIR += joytran SUBDIR += jzintv SUBDIR += kcemu SUBDIR += klh10 SUBDIR += lib765 SUBDIR += libdsk SUBDIR += libspectrum SUBDIR += linux-c7 SUBDIR += linux-power9-functional-sim SUBDIR += linux_base-c7 SUBDIR += lisaem SUBDIR += mame SUBDIR += mastergear SUBDIR += mednafen SUBDIR += mesen SUBDIR += mess SUBDIR += mgba SUBDIR += mtools SUBDIR += mupen64plus SUBDIR += mupen64plus-audio-sdl SUBDIR += mupen64plus-core SUBDIR += mupen64plus-input-sdl SUBDIR += mupen64plus-plugins SUBDIR += mupen64plus-qt 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 += nemu SUBDIR += nestopia SUBDIR += nonpareil SUBDIR += o2em SUBDIR += ods2reader SUBDIR += open-vm-tools SUBDIR += open-vm-tools-nox11 SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsxr SUBDIR += playonbsd SUBDIR += ppsspp SUBDIR += ppsspp-qt5 SUBDIR += py-gns3-converter SUBDIR += py-unicorn SUBDIR += qemu SUBDIR += qemu-cheri SUBDIR += qemu-devel SUBDIR += qemu-powernv SUBDIR += qemu-sbruno SUBDIR += qemu-user-static SUBDIR += qemu-user-static-devel SUBDIR += qemu-utils SUBDIR += qemu30 SUBDIR += qemu31 SUBDIR += qemu40 SUBDIR += qmc2 SUBDIR += quasi88 SUBDIR += riscv-fesvr SUBDIR += riscv-isa-sim SUBDIR += rpcs3 SUBDIR += rtc SUBDIR += rubygem-fission SUBDIR += simh SUBDIR += skyeye SUBDIR += snes9x-gtk SUBDIR += spim SUBDIR += stella SUBDIR += stonx SUBDIR += teo SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme SUBDIR += tpm-emulator SUBDIR += tuxnes SUBDIR += uae SUBDIR += ucon64 SUBDIR += ukncbtl SUBDIR += unicorn SUBDIR += vba SUBDIR += vboxtool SUBDIR += vgb-bin SUBDIR += vgba-bin SUBDIR += vice 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 += winetricks SUBDIR += wxmupen64plus + SUBDIR += x16-emulator + SUBDIR += x16-rom SUBDIR += x48 SUBDIR += x49gp SUBDIR += xbraitenberg SUBDIR += xcpc SUBDIR += xen-kernel SUBDIR += xhomer SUBDIR += xsystem35 SUBDIR += xzx SUBDIR += yuzu SUBDIR += yuzu-qt5 SUBDIR += zsnes .include Index: head/emulators/x16-emulator/Makefile =================================================================== --- head/emulators/x16-emulator/Makefile (nonexistent) +++ head/emulators/x16-emulator/Makefile (revision 529251) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= x16-emulator +DISTVERSION= r37 +CATEGORIES= emulators + +MAINTAINER= makc@FreeBSD.org +COMMENT= Emulator for the Commander X16 8-bit computer + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${DATADIR}/rom.bin:emulators/x16-rom + +USES= gmake sdl + +USE_SDL= sdl2 +USE_GITHUB= yes +GH_ACCOUNT= commanderx16 + +DESKTOP_ENTRIES= "Commander X16" \ + "" \ + "" \ + "x16emu" \ + "" \ + true + +PLIST_FILES= bin/x16emu + +post-patch: + ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/main.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/x16emu ${STAGEDIR}${PREFIX}/bin + +.include Property changes on: head/emulators/x16-emulator/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/x16-emulator/distinfo =================================================================== --- head/emulators/x16-emulator/distinfo (nonexistent) +++ head/emulators/x16-emulator/distinfo (revision 529251) @@ -0,0 +1,3 @@ +TIMESTAMP = 1585317045 +SHA256 (commanderx16-x16-emulator-r37_GH0.tar.gz) = 0c9dbf76ceb5668c32d3b9f04538cdfe891826eaac6bf57c68b13a0152ce15d2 +SIZE (commanderx16-x16-emulator-r37_GH0.tar.gz) = 130968 Property changes on: head/emulators/x16-emulator/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/x16-emulator/files/patch-Makefile =================================================================== --- head/emulators/x16-emulator/files/patch-Makefile (nonexistent) +++ head/emulators/x16-emulator/files/patch-Makefile (revision 529251) @@ -0,0 +1,13 @@ +--- Makefile.orig 2020-01-03 23:42:34 UTC ++++ Makefile +@@ -10,8 +10,8 @@ else + SDL2CONFIG=sdl2-config + endif + +-CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src +-LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm ++CFLAGS += $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src ++LDFLAGS += $(shell $(SDL2CONFIG) --libs) -lm + + OUTPUT=x16emu + Property changes on: head/emulators/x16-emulator/files/patch-Makefile ___________________________________________________________________ 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/x16-emulator/files/patch-main.c =================================================================== --- head/emulators/x16-emulator/files/patch-main.c (nonexistent) +++ head/emulators/x16-emulator/files/patch-main.c (revision 529251) @@ -0,0 +1,11 @@ +--- main.c.orig 2020-01-22 19:56:11 UTC ++++ main.c +@@ -442,7 +442,7 @@ main(int argc, char **argv) + + run_after_load = false; + +- char *base_path = SDL_GetBasePath(); ++ char *base_path = "%%PREFIX%%/share/x16-emulator/"; + + // This causes the emulator to load ROM data from the executable's directory when + // no ROM file is specified on the command line. Property changes on: head/emulators/x16-emulator/files/patch-main.c ___________________________________________________________________ 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/x16-emulator/pkg-descr =================================================================== --- head/emulators/x16-emulator/pkg-descr (nonexistent) +++ head/emulators/x16-emulator/pkg-descr (revision 529251) @@ -0,0 +1,3 @@ +This is an emulator for the Commander X16 - modern 8-bit computer. + +WWW: https://github.com/commanderx16 Property changes on: head/emulators/x16-emulator/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/x16-rom/Makefile =================================================================== --- head/emulators/x16-rom/Makefile (nonexistent) +++ head/emulators/x16-rom/Makefile (revision 529251) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= x16-rom +DISTVERSION= r37 +CATEGORIES= emulators + +MAINTAINER= makc@FreeBSD.org +COMMENT= Commander X16 ROM + +BUILD_DEPENDS= cc65:devel/cc65 + +USES= gmake + +USE_GITHUB= yes +GH_ACCOUNT= commanderx16 + +DATADIR= ${PREFIX}/share/x16-emulator +PORTDATA= rom.bin + +post-patch: + ${REINPLACE_CMD} '1s,bash,sh,' ${WRKSRC}/scripts/symbolize.sh + +do-install: + ${MKDIR} ${STAGEDIR}/${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/build/x16/rom.bin ${STAGEDIR}/${DATADIR} + +.include Property changes on: head/emulators/x16-rom/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/x16-rom/distinfo =================================================================== --- head/emulators/x16-rom/distinfo (nonexistent) +++ head/emulators/x16-rom/distinfo (revision 529251) @@ -0,0 +1,3 @@ +TIMESTAMP = 1585316000 +SHA256 (commanderx16-x16-rom-r37_GH0.tar.gz) = 6d33326ac95c12f09efa328bbee4e8a4c285a42599199d8d5a93d28b5801deef +SIZE (commanderx16-x16-rom-r37_GH0.tar.gz) = 468369 Property changes on: head/emulators/x16-rom/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/x16-rom/pkg-descr =================================================================== --- head/emulators/x16-rom/pkg-descr (nonexistent) +++ head/emulators/x16-rom/pkg-descr (revision 529251) @@ -0,0 +1,3 @@ +ROM containing BASIC, KERNAL, DOS and GEOS for the Commander X16 emulator. + +WWW: https://github.com/commanderx16 Property changes on: head/emulators/x16-rom/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