From 60abafcb0cfb7aa7c19f73dd96f6d4b5305d54b6 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Sun, 5 May 2019 11:25:01 +0000 Subject: [PATCH] New port: emulators/edumips64: Free, cross-platform, educational, visual MIPS64 CPU simulator EduMIPS64 is a free (as in free speech) visual and cross-platform MIPS64 CPU Simulator. The simulator was written in order to support Computer Architecture students with a free and cross-platform tool that allows them to run programs written in the MIPS64 assembly dialect and see how the CPU behaves during the execution, experimenting with various aspects of low-level programming that they learn throughout the course. EduMIPS64 started as a GPL Java port of WinMIPS64, a Windows-only MIPS64 simulator, but independently evolved soon after into a stand-alone open source application. WWW: https://www.edumips.org/ Reviewed by: mat (previous version), tobik Differential Revision: https://reviews.freebsd.org/D20143 --- emulators/Makefile | 1 + emulators/edumips64/Makefile | 48 ++++++++++++++++++++++++++ emulators/edumips64/distinfo | 7 ++++ emulators/edumips64/files/edumips64.in | 4 +++ emulators/edumips64/pkg-descr | 14 ++++++++ 5 files changed, 74 insertions(+) create mode 100644 emulators/edumips64/Makefile create mode 100644 emulators/edumips64/distinfo create mode 100644 emulators/edumips64/files/edumips64.in create mode 100644 emulators/edumips64/pkg-descr diff --git a/emulators/Makefile b/emulators/Makefile index 0dc428b47ee6..4fa460f8815f 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -32,6 +32,7 @@ SUBDIR += dynagui SUBDIR += dynamips-community SUBDIR += e-uae + SUBDIR += edumips64 SUBDIR += emulationstation SUBDIR += fceux SUBDIR += fmsx diff --git a/emulators/edumips64/Makefile b/emulators/edumips64/Makefile new file mode 100644 index 000000000000..1350fa245a16 --- /dev/null +++ b/emulators/edumips64/Makefile @@ -0,0 +1,48 @@ +# $FreeBSD$ + +PORTNAME= edumips64 +DISTVERSION= 1.2.5 +CATEGORIES= emulators java +MASTER_SITES= https://github.com/lupino3/${PORTNAME}/releases/download/v${DISTVERSION}/ +DISTFILES= ${DISTNAME}.jar +EXTRACT_ONLY= + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Free, cross-platform, educational, visual MIPS64 CPU simulator + +LICENSE= GPLv2 + +USE_JAVA= yes + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= ${JAVAJARDIR}/${JARFILE} bin/${PORTNAME} +PORTDOCS= ${DISTNAME}-manual-en.pdf \ + ${DISTNAME}-manual-it.pdf + +SUB_FILES= ${PORTNAME} +SUB_LIST= JAVA=${JAVA} JARFILE=${JARFILE} + +DESKTOP_ENTRIES="EduMIPS64" "${COMMENT}" "" "${PORTNAME}" \ + "Education;Emulator;" false + +OPTIONS_DEFINE= DOCS +DOCS_DISTFILES= ${DISTNAME}-manual-en.pdf \ + ${DISTNAME}-manual-it.pdf + +JARFILE= ${PORTNAME}.jar + +do-install: + ${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${JARFILE} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} \ + ${DISTDIR}/${DISTNAME}-manual-en.pdf \ + ${DISTDIR}/${DISTNAME}-manual-it.pdf \ + ${STAGEDIR}${DOCSDIR} + +.include diff --git a/emulators/edumips64/distinfo b/emulators/edumips64/distinfo new file mode 100644 index 000000000000..76ae7e799f41 --- /dev/null +++ b/emulators/edumips64/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1556991938 +SHA256 (edumips64-1.2.5.jar) = 39b678a7960babb24dec099aa48d685f074e5d431189e4550bf1f4e489e41b3b +SIZE (edumips64-1.2.5.jar) = 1409951 +SHA256 (edumips64-1.2.5-manual-en.pdf) = 036a3e4735a0b8627f67f3210d3cb57b24d9ead89d494008327f1534a453af3f +SIZE (edumips64-1.2.5-manual-en.pdf) = 174302 +SHA256 (edumips64-1.2.5-manual-it.pdf) = 3dce8209143fefe0a08f2aea1970612da7fc50cb96cff172ed8ff83eaefc4e74 +SIZE (edumips64-1.2.5-manual-it.pdf) = 180608 diff --git a/emulators/edumips64/files/edumips64.in b/emulators/edumips64/files/edumips64.in new file mode 100644 index 000000000000..7953b0815ddf --- /dev/null +++ b/emulators/edumips64/files/edumips64.in @@ -0,0 +1,4 @@ +#! /bin/sh - +# $FreeBSD$ + +exec "%%JAVA%%" -jar %%JAVAJARDIR%%/%%JARFILE%% "$@" diff --git a/emulators/edumips64/pkg-descr b/emulators/edumips64/pkg-descr new file mode 100644 index 000000000000..49faea80d848 --- /dev/null +++ b/emulators/edumips64/pkg-descr @@ -0,0 +1,14 @@ +EduMIPS64 is a free (as in free speech) visual and cross-platform MIPS64 CPU +Simulator. + +The simulator was written in order to support Computer Architecture students +with a free and cross-platform tool that allows them to run programs written +in the MIPS64 assembly dialect and see how the CPU behaves during the +execution, experimenting with various aspects of low-level programming +that they learn throughout the course. + +EduMIPS64 started as a GPL Java port of WinMIPS64, a Windows-only MIPS64 +simulator, but independently evolved soon after into a stand-alone +open source application. + +WWW: https://www.edumips.org/