From nobody Sat Dec 25 11:00:16 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 54E241919974; Sat, 25 Dec 2021 11:00:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JLgv50K4Dz4djj; Sat, 25 Dec 2021 11:00:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DEF4C160C4; Sat, 25 Dec 2021 11:00:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BPB0Gur031045; Sat, 25 Dec 2021 11:00:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPB0GaB031023; Sat, 25 Dec 2021 11:00:16 GMT (envelope-from git) Date: Sat, 25 Dec 2021 11:00:16 GMT Message-Id: <202112251100.1BPB0GaB031023@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 894b6047198a - main - emulators/catapult: re-add port: GUI for openMSX List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 894b6047198a926ba19f7da8ad4c5c702062eba4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640430017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lOeI62jJ2BiYKDQDEGCyEfuDuxfLkzyOI/d9hfsWWho=; b=MH+zmZfcsrv90j7pZ9GjEE9vm28TaxWvicgKXn7m1JOorr/blqZ8An1ygeePNT+VLlWP3i 4pysFJH7d012wrt+ZpakL0dna8fIZA2A8kEYhUQ/5PQgsm9NG8xF7vV76rTyN+MIf1wZlc wXdLD1wMAavPCGRS4Er82s8xPeMIJl0QINUFVn7I2Wm4JLO2oc0Ltez9+bKuX8HrO78Znq 1FqJZJl7mT4hGlpb+aSMUol2jpHZSISDw4uo9CGfW5B5ZchRjFZODCdlgvbcmowXZNoKv4 Ad+J3NPVClqAO+ZKbzFfV8GkmwELZpz9FlFvVemDhmD7+B6xqbYAd5aUO3CcQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640430017; a=rsa-sha256; cv=none; b=IxJkbX5k4m+9/sesJOqEkquwMxxxQgym4jBftvvTKtt9f+UegHQaWqTeRjsRX2LVGkrEyy na7HnjFctbJdR8Jinl6m5sWCCSzf7NAj0oqZEu0fm8YI0dhyYPwqNOj6LyexgNnXHuMe6s XR2WNp9Hv/VMbKtPDbUHYMOf0aVX3HkvE3mgr/e6jyHseCS65e/4YpXysPA5+fnRZMFtAi q49WJyWH1iy0he8jI0WRhkEoJ7nbiDegNaTzJ5WlDQBvwKYqWv8ub48Xglb5d5OLhu1Jbo 278Ba0KgejXYnOlwT3hvcnORyDqA7BBWybmIMveDyBiupB/i12HfN7AKQd15iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=894b6047198a926ba19f7da8ad4c5c702062eba4 commit 894b6047198a926ba19f7da8ad4c5c702062eba4 Author: Daniel Menelkir AuthorDate: 2021-12-25 10:56:53 +0000 Commit: Hiroki Tagato CommitDate: 2021-12-25 10:59:25 +0000 emulators/catapult: re-add port: GUI for openMSX Catapult is a frontend for OpenMSX, the open source MSX emulator that tries to achieve near-perfect emulation by using a novel emulation model. WWW: https://openmsx.org PR: 257892 Reported by: Daniel Menelkir (new maintainer) --- MOVED | 1 - emulators/Makefile | 1 + emulators/catapult/Makefile | 76 +++++++++++++++++++++++ emulators/catapult/distinfo | 3 + emulators/catapult/files/patch-build_detectsys.py | 11 ++++ emulators/catapult/pkg-descr | 5 ++ emulators/catapult/pkg-plist | 44 +++++++++++++ 7 files changed, 140 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index ada668c011c7..a31a3e3a6780 100644 --- a/MOVED +++ b/MOVED @@ -13750,7 +13750,6 @@ devel/pychecker||2020-01-27|Has expired: Unmaintained, uses EOLed python27 devel/pymacs||2020-01-27|Has expired: Unmaintained, uses EOLed python27 devel/trac-bitten||2020-01-27|Has expired: Unmaintained, uses EOLed python27 devel/wxGlade||2020-01-27|Has expired: Unmaintained, uses EOLed python27 -emulators/catapult||2020-01-27|Has expired: Unmaintained, uses EOLed python27 emulators/dynagui||2020-01-27|Has expired: Unmaintained, uses EOLed python27 finance/mybudget||2020-01-27|Has expired: Unmaintained, uses EOLed python27 finance/sabernetdcs-client||2020-01-27|Has expired: Unmaintained, uses EOLed python27 diff --git a/emulators/Makefile b/emulators/Makefile index 474bddb0bdd2..a5926fd975fc 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -10,6 +10,7 @@ SUBDIR += bochs SUBDIR += bsvc SUBDIR += cannonball + SUBDIR += catapult SUBDIR += cemu SUBDIR += cingb SUBDIR += citra diff --git a/emulators/catapult/Makefile b/emulators/catapult/Makefile new file mode 100644 index 000000000000..19aa630ec5e1 --- /dev/null +++ b/emulators/catapult/Makefile @@ -0,0 +1,76 @@ +PORTNAME= catapult +PORTVERSION= 17.0 +CATEGORIES= emulators +MASTER_SITES= https://github.com/openMSX/openMSX/releases/download/RELEASE_${PORTVERSION:S/./_/g}/ +DISTNAME= openmsx-${PORTNAME}-${PORTVERSION} + +MAINTAINER= menelkir@itroll.org +COMMENT= GUI for openMSX + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/doc/GPL.txt + +BUILD_DEPENDS= openmsx:emulators/openmsx +RUN_DEPENDS= openmsx:emulators/openmsx + +USES= gmake pkgconfig python gnome +USE_GNOME+= libxml2 +USE_WX= 3.0 +MAKEFILE= GNUmakefile +MAKE_ARGS= INSTALL_BASE="${PREFIX}" \ + INSTALL_SHARE_DIR="${DATADIR}" \ + INSTALL_DOC_DIR="${DOCSDIR}" \ + CATAPULT_FLAVOUR="portbld" \ + CATAPULT_OPENMSX_BINARY="${LOCALBASE}/bin/openmsx" \ + CATAPULT_OPENMSX_SHARE="${LOCALBASE}/share/openmsx" \ + CATAPULT_NO_DESKTOP_HOOKS="true" \ + SYMLINK_FOR_BINARY="false" \ + PYTHON="${PYTHON_CMD}" + +MAKE_JOBS_UNSAFE= yes + +OPTIONS_DEFINE= DEBUG DOCS + +.include + +.if ${PORT_OPTIONS:MDEBUG} +CFLAGS+= -DDEBUG +CATAPULT_STRIP= false +.else +CFLAGS+= -DNDEBUG +CATAPULT_STRIP= true +.endif + +post-extract: + ${CP} ${WRKSRC}/build/platform-freebsd.mk \ + ${WRKSRC}/build/platform-dragonfly.mk + +post-patch: + @${REINPLACE_CMD} 's|$$(INSTALL_BASE)|${DATADIR}|' \ + ${WRKSRC}/build/info2code.mk + @${REINPLACE_CMD} '/-Wno-literal/s|^CXXFLAGS|#CXXFLAGS| ; \ + /--cxx/s|^CXX|#CXX| ; \ + /COMPILE=/s|g++|$$(CXX)| ; \ + s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/build/main.mk + @${REINPLACE_CMD} 's|wx-config --|${WX_CONFIG:T} --|g' \ + ${WRKSRC}/build/probe.mk + @${REINPLACE_CMD} '/^Exec/s|%INSTALL_BASE%|${PREFIX}| ; \ + /^Icon/s|%INSTALL_BASE%|${DATADIR}| ; \ + /^DocPath/s|%INSTALL_BASE%/doc|${DOCSDIR}|' \ + ${WRKSRC}/desktop/openMSX-Catapult.desktop + @${ECHO_CMD} > ${WRKSRC}/build/flavour-portbld.mk + @${ECHO_CMD} 'CXXFLAGS+=${CXXFLAGS}' \ + >> ${WRKSRC}/build/flavour-portbld.mk + @${ECHO_CMD} 'LINK_FLAGS+=${LDFLAGS}' \ + >> ${WRKSRC}/build/flavour-portbld.mk + @${ECHO_CMD} 'CATAPULT_STRIP:=${CATAPULT_STRIP}' \ + >> ${WRKSRC}/build/flavour-portbld.mk + +post-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/resources/icons + ${INSTALL_DATA} ${WRKSRC}/src/catapult.xpm \ + ${STAGEDIR}${DATADIR}/resources/icons + cd ${WRKSRC}/desktop && ${INSTALL_DATA} openMSX-Catapult.desktop \ + ${STAGEDIR}${DESKTOPDIR} + +.include diff --git a/emulators/catapult/distinfo b/emulators/catapult/distinfo new file mode 100644 index 000000000000..a79a6e2e17fa --- /dev/null +++ b/emulators/catapult/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629146501 +SHA256 (openmsx-catapult-17.0.tar.gz) = e8b53765292b9692e4047247ee2726236c2eab7d9a9e5338bc316542501df871 +SIZE (openmsx-catapult-17.0.tar.gz) = 1196727 diff --git a/emulators/catapult/files/patch-build_detectsys.py b/emulators/catapult/files/patch-build_detectsys.py new file mode 100644 index 000000000000..7249b45bcab8 --- /dev/null +++ b/emulators/catapult/files/patch-build_detectsys.py @@ -0,0 +1,11 @@ +--- build/detectsys.py.orig 2021-08-16 20:45:31 UTC ++++ build/detectsys.py +@@ -10,7 +10,7 @@ def detectOS(): + Raises ValueError if no known OS is detected. + ''' + os = system().lower() +- if os in ('linux', 'darwin', 'freebsd', 'netbsd', 'openbsd', 'gnu'): ++ if os in ('linux', 'darwin', 'dragonfly', 'freebsd', 'netbsd', 'openbsd', 'gnu'): + return os + elif os.startswith('gnu/'): + # GNU userland on non-Hurd kernel, for example Debian GNU/kFreeBSD. diff --git a/emulators/catapult/pkg-descr b/emulators/catapult/pkg-descr new file mode 100644 index 000000000000..5905814d69e7 --- /dev/null +++ b/emulators/catapult/pkg-descr @@ -0,0 +1,5 @@ +Catapult is a frontend for OpenMSX, the open source MSX +emulator that tries to achieve near-perfect emulation by +using a novel emulation model. + +WWW: https://openmsx.org diff --git a/emulators/catapult/pkg-plist b/emulators/catapult/pkg-plist new file mode 100644 index 000000000000..2b0b2f7838b0 --- /dev/null +++ b/emulators/catapult/pkg-plist @@ -0,0 +1,44 @@ +bin/catapult +share/applications/openMSX-Catapult.desktop +%%DATADIR%%/resources/bitmaps/about.png +%%DATADIR%%/resources/bitmaps/diskimage.png +%%DATADIR%%/resources/bitmaps/eject.png +%%DATADIR%%/resources/bitmaps/file.png +%%DATADIR%%/resources/bitmaps/harddisk.png +%%DATADIR%%/resources/bitmaps/ledoff.png +%%DATADIR%%/resources/bitmaps/ledon.png +%%DATADIR%%/resources/bitmaps/romimage.png +%%DATADIR%%/resources/bitmaps/tapeimage.png +%%DATADIR%%/resources/dialogs/about.xrc +%%DATADIR%%/resources/dialogs/audiocontrols.xrc +%%DATADIR%%/resources/dialogs/catapult.xrc +%%DATADIR%%/resources/dialogs/checkconfigs.xrc +%%DATADIR%%/resources/dialogs/config.xrc +%%DATADIR%%/resources/dialogs/fullscreen.xrc +%%DATADIR%%/resources/dialogs/input.xrc +%%DATADIR%%/resources/dialogs/ipsselect.xrc +%%DATADIR%%/resources/dialogs/misccontrols.xrc +%%DATADIR%%/resources/dialogs/romtype.xrc +%%DATADIR%%/resources/dialogs/screenshot.xrc +%%DATADIR%%/resources/dialogs/session.xrc +%%DATADIR%%/resources/dialogs/status.xrc +%%DATADIR%%/resources/dialogs/videocontrols.xrc +%%DATADIR%%/resources/icons/catapult.xpm +%%PORTDOCS%%%%DOCSDIR%%/GPL.txt +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/authors.txt +%%PORTDOCS%%%%DOCSDIR%%/manual/audio.png +%%PORTDOCS%%%%DOCSDIR%%/manual/compile.html +%%PORTDOCS%%%%DOCSDIR%%/manual/index.html +%%PORTDOCS%%%%DOCSDIR%%/manual/input.png +%%PORTDOCS%%%%DOCSDIR%%/manual/mainscreen.png +%%PORTDOCS%%%%DOCSDIR%%/manual/manual-minty.css +%%PORTDOCS%%%%DOCSDIR%%/manual/manual-purple.css +%%PORTDOCS%%%%DOCSDIR%%/manual/manual.css +%%PORTDOCS%%%%DOCSDIR%%/manual/misc.png +%%PORTDOCS%%%%DOCSDIR%%/manual/session.png +%%PORTDOCS%%%%DOCSDIR%%/manual/status.png +%%PORTDOCS%%%%DOCSDIR%%/manual/user.html +%%PORTDOCS%%%%DOCSDIR%%/manual/video.png +%%PORTDOCS%%%%DOCSDIR%%/release-history.txt +%%PORTDOCS%%%%DOCSDIR%%/release-notes.txt