From nobody Tue Nov 07 00:20:51 2023 X-Original-To: dev-commits-ports-all@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 4SPTQW6NV0z50p8B; Tue, 7 Nov 2023 00:20:51 +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 4SPTQW5N1cz4VZF; Tue, 7 Nov 2023 00:20:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699316451; 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=AZmITUFu0A06kRkeJesz7iVJedPiomyIL9gkswDzK90=; b=vn7oLv+F3I2fz2Fuh3EaOa1yeKde7KBXxQFVnyLp9H7HuRL3r1/KYeogve0e5MBuG7dzlk hLH4Pfw41G3L3dQBPEtyzMhL6XGUVxTqxPMNa0BP5ilOk45ChNOU1gUaBekY6CYq7cdmT1 kzUK0NRRN1DRJCiAv8hpayAiAFlF2JvQBDd0znd/om4gppyyM+/N5JhALHZXkNuzGE27KQ y2xlTOtPR54Z+oLocyMHVLE1O6fAPbfgGWy+susucrb8gjhKF4vWnB0NAvxhG7Mt6C+ul8 6kSuf8Sc2SAJpE/dO/0TaEZApnbOjvp6F40CRtF76WB9+DAmYEo1ZI5YcXQPzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699316451; 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=AZmITUFu0A06kRkeJesz7iVJedPiomyIL9gkswDzK90=; b=dZj6GyFCxXsQ238uGdrbSMoCE6mjX6soGn48eZ3/dI3lEEOatkpGJd40OgWqWGr7rPz7DR YgmhVL/FGAMONrjwjNHUB98q7uuX1k4m/3QG8wuCOgHjKwuYPZ4RsZPYCjup+4CGzX7PSs 1otQR4xqjsoDJxL2UTvGLnn8CQwpZXkZxJI8/98G7RkVWfR74Jco7LayyRURwK8VVH+1oe Z9HBiYdrIpGE4YWpT+mldMJmSZ7BOmfcEdwKgPRf9TSBJpzdvp6ZXwOIhvWWUQytzpKSf/ 6645fi6VpkVaxl/dkBolXhWsZARuBrokUFHiKtKbCFeZPURZOT9Qs241Qy1evA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699316451; a=rsa-sha256; cv=none; b=VCTk6QYKyE9Zy9rcJVfjjjkV0t3TBGJuqwun8KYi6sukpGyhOERrKWtJOF7XlGNquY/tHW EFT8S1GFEKYv/uxLDynGr7vYGy1hrzhRNrLX/b8jqctV7uW/tAb+vdDtJTA3h0ROFtYVbU UIzNMra1One5SbSqpSI8KJOg50I668dIurfgmcmCQ+iP1djIjVtWcNZKCTy4ZeVIoh0Uyz MY5Rk3jDH6/i0me+7FifCZJaykz9PNxAWd4aW04Qjlwb+v9rsDqKyVtlIBKbxJXZ6d4Rlx wUtGPBXzb/NgEvQ3D/UqDpqwOzHIz+ifzQnjZuH2MIf85HxBTSYs/mGOB1ZXlg== 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 4SPTQW4TL8zD00; Tue, 7 Nov 2023 00:20:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3A70Kpvd023910; Tue, 7 Nov 2023 00:20:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A70Kph5023907; Tue, 7 Nov 2023 00:20:51 GMT (envelope-from git) Date: Tue, 7 Nov 2023 00:20:51 GMT Message-Id: <202311070020.3A70Kph5023907@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 762073ef1e09 - main - games/libretro-desmume: new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 762073ef1e09c923950a79265d30e22880f011cf Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=762073ef1e09c923950a79265d30e22880f011cf commit 762073ef1e09c923950a79265d30e22880f011cf Author: Stephane D'Alu AuthorDate: 2023-10-27 09:12:13 +0000 Commit: Robert Clausecker CommitDate: 2023-11-07 00:16:55 +0000 games/libretro-desmume: new port PR: 274647 --- games/Makefile | 1 + games/libretro-desmume/Makefile | 39 ++++++++++++++++++++++ games/libretro-desmume/distinfo | 3 ++ ...me_src_libretro-common_features_features__cpu.c | 11 ++++++ ...desmume_src_libretro-common_rthreads_rthreads.c | 11 ++++++ games/libretro-desmume/pkg-descr | 1 + 6 files changed, 66 insertions(+) diff --git a/games/Makefile b/games/Makefile index b7a55a4b5538..3b7339247ff8 100644 --- a/games/Makefile +++ b/games/Makefile @@ -513,6 +513,7 @@ SUBDIR += libretro-boom3 SUBDIR += libretro-cap32 SUBDIR += libretro-core-info + SUBDIR += libretro-desmume SUBDIR += libretro-desmume2015 SUBDIR += libretro-dosbox SUBDIR += libretro-emux diff --git a/games/libretro-desmume/Makefile b/games/libretro-desmume/Makefile new file mode 100644 index 000000000000..2f59797b8846 --- /dev/null +++ b/games/libretro-desmume/Makefile @@ -0,0 +1,39 @@ +PORTNAME= libretro-desmume +DISTVERSION= 0.20231006 +CATEGORIES= games + +MAINTAINER= sdalu@sdalu.com +COMMENT= Port of Desmume to libretro +WWW= https://github.com/libretro/desmume + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/license.txt + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= fails to compile: invokes x86 assembler + +USES= gmake gl localbase:ldflags +USE_LDCONFIG= yes +USE_GL= gl + +USE_GITHUB= yes +GH_ACCOUNT= libretro +GH_PROJECT= desmume +GH_TAGNAME= 4ee1bb1d6a6c9695baea49d0c2dff34c10187502 + +PLIST_FILES= lib/libretro/desmume_libretro.so + +MAKEFILE= Makefile.libretro +BUILD_WRKSRC= ${WRKSRC}/desmume/src/frontend/libretro + +.include + +.if ${ARCH} != aarch64 && ${ARCH} != amd64 && !${ARCH:Marmv*} && ${ARCH} != i386 +MAKE_ENV+= DESMUME_JIT=0 +.endif + +do-install: + ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro + ${INSTALL_LIB} ${WRKSRC}/desmume/src/frontend/libretro/desmume_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro + +.include diff --git a/games/libretro-desmume/distinfo b/games/libretro-desmume/distinfo new file mode 100644 index 000000000000..52b825233ed5 --- /dev/null +++ b/games/libretro-desmume/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1698314795 +SHA256 (libretro-desmume-0.20231006-4ee1bb1d6a6c9695baea49d0c2dff34c10187502_GH0.tar.gz) = 2cc19bb94521bcc717f25fec2c6fc26af7660748573bcfc78d3fbe6e3216ded9 +SIZE (libretro-desmume-0.20231006-4ee1bb1d6a6c9695baea49d0c2dff34c10187502_GH0.tar.gz) = 11415777 diff --git a/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c b/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c new file mode 100644 index 000000000000..288dbb0b252d --- /dev/null +++ b/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c @@ -0,0 +1,11 @@ +--- desmume/src/libretro-common/features/features_cpu.c.orig 2021-02-16 18:16:47 UTC ++++ desmume/src/libretro-common/features/features_cpu.c +@@ -144,7 +144,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void) + tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L); + tv_usec = (long)(system_time.wMilliseconds * 1000); + time_ticks = (1000000 * tv_sec + tv_usec); +-#elif defined(__linux__) || defined(__QNX__) || defined(__MACH__) ++#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) || defined(__PSL1GHT__) + struct timespec tv = {0}; + if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) == 0) + time_ticks = (retro_perf_tick_t)tv.tv_sec * 1000000000 + diff --git a/games/libretro-desmume/files/patch-desmume_src_libretro-common_rthreads_rthreads.c b/games/libretro-desmume/files/patch-desmume_src_libretro-common_rthreads_rthreads.c new file mode 100644 index 000000000000..431f8e3a08bb --- /dev/null +++ b/games/libretro-desmume/files/patch-desmume_src_libretro-common_rthreads_rthreads.c @@ -0,0 +1,11 @@ +--- desmume/src/libretro-common/rthreads/rthreads.c.orig 2023-10-06 13:44:56 UTC ++++ desmume/src/libretro-common/rthreads/rthreads.c +@@ -55,7 +55,7 @@ + #include + #endif + +-#if defined(VITA) || defined(BSD) || defined(ORBIS) ++#if defined(VITA) || defined(BSD) || defined(ORBIS) || (__FreeBSD__ <= 12) + #include + #endif + diff --git a/games/libretro-desmume/pkg-descr b/games/libretro-desmume/pkg-descr new file mode 100644 index 000000000000..fb10fa0338b7 --- /dev/null +++ b/games/libretro-desmume/pkg-descr @@ -0,0 +1 @@ +Port of Desmume to libretro.