diff --git a/emulators/Makefile b/emulators/Makefile index 1981bdf9ef9e..d4de3a284df3 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -1,185 +1,186 @@ # $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 += cemu 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 += dosbox-staging SUBDIR += dtcyber SUBDIR += dynamips-community SUBDIR += e-uae SUBDIR += edumips64 SUBDIR += elliott-803 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 += libretro-ppsspp SUBDIR += libspectrum SUBDIR += linux-c7 SUBDIR += linux-power10-functional-sim 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 += openmsx SUBDIR += p5-Acme-6502 SUBDIR += parallels-tools SUBDIR += pcem SUBDIR += pcemu SUBDIR += pcsxr 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-user-static SUBDIR += qemu-user-static-devel SUBDIR += qemu-utils SUBDIR += qemu31 SUBDIR += qemu41 SUBDIR += qemu42 SUBDIR += qemu50 SUBDIR += qmc2 SUBDIR += quasi88 SUBDIR += riscv-isa-sim SUBDIR += rpcs3 SUBDIR += rtc SUBDIR += rubygem-fission SUBDIR += simh SUBDIR += simh-hp2100 SUBDIR += simh-hp3000 SUBDIR += simh-hpdoc 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 += wine-proton SUBDIR += winetricks 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 diff --git a/emulators/cemu/Makefile b/emulators/cemu/Makefile new file mode 100644 index 000000000000..2eb8d35d3242 --- /dev/null +++ b/emulators/cemu/Makefile @@ -0,0 +1,43 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= cemu +PORTVERSION= 1.3 +DISTVERSIONPREFIX= v +CATEGORIES= emulators + +MAINTAINER= danfe@FreeBSD.org +COMMENT= TI-84 Plus CE and TI-83 Premium CE calculator emulator + +LICENSE= GPLv3 + +LIB_DEPENDS= libpng.so:graphics/png + +USES= desktop-file-utils gl libarchive pkgconfig qmake qt:5 \ + shared-mime-info +USE_GL= gl +USE_QT= buildtools_build core gui network widgets + +USE_GITHUB= yes +GH_ACCOUNT= CE-Programming +GH_PROJECT= CEmu +GH_TUPLE= CE-Programming:zdis:7eb89e5:zdis/core/debug/zdis + +QMAKE_SOURCE_PATH= gui/qt/CEmu.pro +_ICON_PREFIX= ${PREFIX}/share/icons/hicolor + +post-install: + ${LN} -s CEmu ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/gui/qt/resources/linux/${PORTNAME}.desktop \ + ${STAGEDIR}${PREFIX}/share/applications + @${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages + ${INSTALL_DATA} ${WRKSRC}/gui/qt/resources/linux/${PORTNAME}.xml \ + ${STAGEDIR}${PREFIX}/share/mime/packages +.for n in 16 20 22 24 32 36 40 42 48 64 72 96 128 160 192 256 512 + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${n}x${n}/apps + ${INSTALL_DATA} \ + ${WRKSRC}/gui/qt/resources/icons/linux/${PORTNAME}-${n}x${n}.png \ + ${STAGEDIR}${_ICON_PREFIX}/${n}x${n}/apps/${PORTNAME}.png +.endfor + +.include diff --git a/emulators/cemu/distinfo b/emulators/cemu/distinfo new file mode 100644 index 000000000000..b3da86c50769 --- /dev/null +++ b/emulators/cemu/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1561195244 +SHA256 (CE-Programming-CEmu-v1.3_GH0.tar.gz) = 581da0eff0c7e5b24dfbe19a125b9f0dd3f17c431a0ba50e1984e1ec4f65d2b5 +SIZE (CE-Programming-CEmu-v1.3_GH0.tar.gz) = 993425 +SHA256 (CE-Programming-zdis-7eb89e5_GH0.tar.gz) = 63cc483cc848f31a0cfbcb0d0733e91a574a1ba76881ba7623e8a8265fb5bd70 +SIZE (CE-Programming-zdis-7eb89e5_GH0.tar.gz) = 5504 diff --git a/emulators/cemu/files/patch-gui_qt_CEmu.pro b/emulators/cemu/files/patch-gui_qt_CEmu.pro new file mode 100644 index 000000000000..951a2ef67717 --- /dev/null +++ b/emulators/cemu/files/patch-gui_qt_CEmu.pro @@ -0,0 +1,63 @@ +--- gui/qt/CEmu.pro.orig 2019-06-22 09:20:44 UTC ++++ gui/qt/CEmu.pro +@@ -6,7 +6,7 @@ lessThan(QT_MINOR_VERSION, 5) : error("You need at lea + + # CEmu version and info + CEMU_RELEASE = true +-CEMU_GIT_SHA = $$system(git describe --abbrev=7 --always) ++CEMU_GIT_SHA = 87c3b43 # XXX: don't forget to change for the next version! + isEmpty(CEMU_VERSION) { + CEMU_VERSION = v1.3dev + CEMU_RELEASE = false +@@ -23,7 +23,7 @@ CI = $$(CI) + DISTFILES += ../../.astylerc + + # Linux desktop files +-if (linux) { ++if (unix) { + isEmpty(PREFIX) { + PREFIX = /usr + } +@@ -77,12 +77,13 @@ if (!win32-msvc*) { + isEmpty(CI) { + # Only enable opts for non-CI release builds + # -flto might cause an internal compiler error on GCC in some circumstances (with -g3?)... Comment it if needed. +- CONFIG(release, debug|release): GLOBAL_FLAGS += -O3 -flto ++ #CONFIG(release, debug|release): GLOBAL_FLAGS += -O3 -flto + } + + if (contains(DEFINES, LIB_ARCHIVE_SUPPORT)) { + CONFIG += link_pkgconfig +- PKGCONFIG += zlib libarchive ++ PKGCONFIG += zlib ++ LIBS += -larchive + } + # You should run ./capture/get_libpng-apng.sh first! + isEmpty(USE_LIBPNG) { +@@ -157,7 +158,7 @@ if (!win32-msvc*) { + } + } + +-if (macx|linux) { ++if (macx|unix) { + # Be more secure by default... + GLOBAL_FLAGS += -fPIE -Wstack-protector -fstack-protector-strong --param=ssp-buffer-size=1 + # Use ASAN on debug builds. Watch out about ODR crashes when built with -flto. detect_odr_violation=0 as an env var may help. +@@ -165,7 +166,7 @@ if (macx|linux) { + } + + macx: QMAKE_LFLAGS += -Wl,-dead_strip +-linux: QMAKE_LFLAGS += -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections -pie ++unix: QMAKE_LFLAGS += -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections -pie + + QMAKE_CFLAGS += $$GLOBAL_FLAGS + QMAKE_CXXFLAGS += $$GLOBAL_FLAGS +@@ -256,7 +257,7 @@ SOURCES += \ + keyhistorywidget.cpp \ + tablewidget.cpp + +-linux|macx: SOURCES += ../../core/os/os-linux.c ++unix|macx: SOURCES += ../../core/os/os-linux.c + win32: SOURCES += ../../core/os/os-win32.c win32-console.cpp + win32: LIBS += -lpsapi + diff --git a/emulators/cemu/pkg-descr b/emulators/cemu/pkg-descr new file mode 100644 index 000000000000..fe9a8e4d2281 --- /dev/null +++ b/emulators/cemu/pkg-descr @@ -0,0 +1,8 @@ +CEmu is a TI-84 Plus CE/TI-83 Premium CE calculator emulator, focused +on developer features. + +CEmu works natively on Windows, macOS, and Unix-like operating systems. +For performance and portability, the core is programmed in C and its +customizable GUI in C++ with Qt. + +WWW: https://ce-programming.github.io/CEmu/ diff --git a/emulators/cemu/pkg-plist b/emulators/cemu/pkg-plist new file mode 100644 index 000000000000..3c4123d27ea2 --- /dev/null +++ b/emulators/cemu/pkg-plist @@ -0,0 +1,21 @@ +bin/CEmu +bin/cemu +share/applications/cemu.desktop +share/icons/hicolor/16x16/apps/cemu.png +share/icons/hicolor/20x20/apps/cemu.png +share/icons/hicolor/22x22/apps/cemu.png +share/icons/hicolor/24x24/apps/cemu.png +share/icons/hicolor/32x32/apps/cemu.png +share/icons/hicolor/36x36/apps/cemu.png +share/icons/hicolor/40x40/apps/cemu.png +share/icons/hicolor/42x42/apps/cemu.png +share/icons/hicolor/48x48/apps/cemu.png +share/icons/hicolor/64x64/apps/cemu.png +share/icons/hicolor/72x72/apps/cemu.png +share/icons/hicolor/96x96/apps/cemu.png +share/icons/hicolor/192x192/apps/cemu.png +share/icons/hicolor/128x128/apps/cemu.png +share/icons/hicolor/160x160/apps/cemu.png +share/icons/hicolor/256x256/apps/cemu.png +share/icons/hicolor/512x512/apps/cemu.png +share/mime/packages/cemu.xml