svn commit: r557234 - in head/emulators: . cemu cemu/files
Alexey Dokuchaev
danfe at FreeBSD.org
Mon Dec 7 15:43:56 UTC 2020
Author: danfe
Date: Mon Dec 7 15:43:54 2020
New Revision: 557234
URL: https://svnweb.freebsd.org/changeset/ports/557234
Log:
CEmu is a TI-84 Plus CE/TI-83 Premium CE calculator emulator, focused
on developer features.
WWW: https://ce-programming.github.io/CEmu/
Added:
head/emulators/cemu/
head/emulators/cemu/Makefile (contents, props changed)
head/emulators/cemu/distinfo (contents, props changed)
head/emulators/cemu/files/
head/emulators/cemu/files/patch-gui_qt_CEmu.pro (contents, props changed)
head/emulators/cemu/pkg-descr (contents, props changed)
head/emulators/cemu/pkg-plist (contents, props changed)
Modified:
head/emulators/Makefile
Modified: head/emulators/Makefile
==============================================================================
--- head/emulators/Makefile Mon Dec 7 15:08:09 2020 (r557233)
+++ head/emulators/Makefile Mon Dec 7 15:43:54 2020 (r557234)
@@ -15,6 +15,7 @@
SUBDIR += bochs
SUBDIR += bsvc
SUBDIR += cannonball
+ SUBDIR += cemu
SUBDIR += cinc
SUBDIR += cingb
SUBDIR += citra
Added: head/emulators/cemu/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/cemu/Makefile Mon Dec 7 15:43:54 2020 (r557234)
@@ -0,0 +1,43 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= cemu
+PORTVERSION= 1.3
+DISTVERSIONPREFIX= v
+CATEGORIES= emulators
+
+MAINTAINER= danfe at 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 <bsd.port.mk>
Added: head/emulators/cemu/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/cemu/distinfo Mon Dec 7 15:43:54 2020 (r557234)
@@ -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
Added: head/emulators/cemu/files/patch-gui_qt_CEmu.pro
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/cemu/files/patch-gui_qt_CEmu.pro Mon Dec 7 15:43:54 2020 (r557234)
@@ -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
+
Added: head/emulators/cemu/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/cemu/pkg-descr Mon Dec 7 15:43:54 2020 (r557234)
@@ -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/
Added: head/emulators/cemu/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/cemu/pkg-plist Mon Dec 7 15:43:54 2020 (r557234)
@@ -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
More information about the svn-ports-all
mailing list