From owner-dev-commits-ports-main@freebsd.org Fri Sep 10 23:09:50 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8FB0C66672A; Fri, 10 Sep 2021 23:09:50 +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 4H5s5p3h8bz3h9Q; Fri, 10 Sep 2021 23:09:50 +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 5AF941546A; Fri, 10 Sep 2021 23:09:50 +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 18AN9oL9055128; Fri, 10 Sep 2021 23:09:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18AN9oL0055127; Fri, 10 Sep 2021 23:09:50 GMT (envelope-from git) Date: Fri, 10 Sep 2021 23:09:50 GMT Message-Id: <202109102309.18AN9oL0055127@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 5402e0dd8685 - main - games/SRB2: 3D Sonic the Hedgehog fangame MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5402e0dd8685d3badfc8ca20610434d54778dccd Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 23:09:50 -0000 The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=5402e0dd8685d3badfc8ca20610434d54778dccd commit 5402e0dd8685d3badfc8ca20610434d54778dccd Author: Piotr Kubaj AuthorDate: 2021-09-10 22:54:03 +0000 Commit: Piotr Kubaj CommitDate: 2021-09-10 22:54:03 +0000 games/SRB2: 3D Sonic the Hedgehog fangame Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog fangame built using a modified version of the Doom Legacy port of Doom. SRB2 is closely inspired by the original Sonic games from the Sega Genesis, and attempts to recreate the design in 3D. While SRB2 isn't fully completed, it already features tons of levels, enemies, speed, and quite a lot of the fun that the original Sonic games provided. WWW: https://www.srb2.org/ --- games/Makefile | 1 + games/SRB2/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ games/SRB2/distinfo | 5 +++++ games/SRB2/pkg-descr | 8 ++++++++ games/SRB2/pkg-plist | 6 ++++++ 5 files changed, 66 insertions(+) diff --git a/games/Makefile b/games/Makefile index 74ccd9d71f34..90865e6d006d 100644 --- a/games/Makefile +++ b/games/Makefile @@ -18,6 +18,7 @@ SUBDIR += OpenDiablo2 SUBDIR += OpenLara SUBDIR += OpenTomb + SUBDIR += SRB2 SUBDIR += abbayedesmorts SUBDIR += abe SUBDIR += abstreet diff --git a/games/SRB2/Makefile b/games/SRB2/Makefile new file mode 100644 index 000000000000..6a653decd012 --- /dev/null +++ b/games/SRB2/Makefile @@ -0,0 +1,46 @@ +PORTNAME= SRB2 +PORTVERSION= 2.2.9 +DISTVERSIONPREFIX= SRB2_release_ +CATEGORIES= games +MASTER_SITES= https://github.com/STJr/SRB2/releases/download/SRB2_release_${PORTVERSION}/:assets +DISTFILES+= SRB2-v${PORTVERSION:C/\.//g}-Full.zip:assets +EXTRACT_ONLY= STJr-SRB2-SRB2_release_${PORTVERSION}_GH0.tar.gz + +MAINTAINER= pkubaj@FreeBSD.org +COMMENT= 3D Sonic the Hedgehog fangame + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libcurl.so:ftp/curl \ + libgme.so:audio/libgme \ + libopenmpt.so:audio/libopenmpt \ + libpng.so:graphics/png + +USES= cmake sdl + +USE_GITHUB= yes +GH_ACCOUNT= STJr + +USE_SDL= mixer2 sdl2 + +CXXFLAGS+= -DDEFAULTWADLOCATION5=${DATADIR} +LDFLAGS+= -lexecinfo -lm + +post-extract: + @${MKDIR} ${WRKSRC}/assets/installer + @cd ${WRKSRC}/assets/installer && ${UNZIP_NATIVE_CMD} ${DISTDIR}/SRB2-v229-Full.zip srb2.pk3 + @cd ${WRKSRC}/assets/installer && ${UNZIP_NATIVE_CMD} ${DISTDIR}/SRB2-v229-Full.zip player.dta + @cd ${WRKSRC}/assets/installer && ${UNZIP_NATIVE_CMD} ${DISTDIR}/SRB2-v229-Full.zip zones.pk3 + @cd ${WRKSRC}/assets/installer && ${UNZIP_NATIVE_CMD} ${DISTDIR}/SRB2-v229-Full.zip patch.pk3 + +post-install: + @${MKDIR} ${STAGEDIR}/${DATADIR} + @${MV} ${STAGEDIR}/${PREFIX}/srb2.pk3 ${STAGEDIR}/${DATADIR} + @${MV} ${STAGEDIR}/${PREFIX}/player.dta ${STAGEDIR}/${DATADIR} + @${MV} ${STAGEDIR}/${PREFIX}/zones.pk3 ${STAGEDIR}/${DATADIR} + @${MV} ${STAGEDIR}/${PREFIX}/patch.pk3 ${STAGEDIR}/${DATADIR} + @${MV} ${STAGEDIR}/${PREFIX}/srb2 ${STAGEDIR}/${PREFIX}/bin + @${MV} ${STAGEDIR}/${PREFIX}/srb2-${PORTVERSION} ${STAGEDIR}/${PREFIX}/bin + +.include diff --git a/games/SRB2/distinfo b/games/SRB2/distinfo new file mode 100644 index 000000000000..788670fa6553 --- /dev/null +++ b/games/SRB2/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1631304306 +SHA256 (SRB2-v229-Full.zip) = 48e644604bed81b5ce6b12ef23a2f4042d0118d0ba70f18c534dfe86ebe6f37d +SIZE (SRB2-v229-Full.zip) = 195309133 +SHA256 (STJr-SRB2-SRB2_release_2.2.9_GH0.tar.gz) = 5f7eeb08e90323e28cdcb02ad25c904eef25ce75316720609b995a1e4ffd154a +SIZE (STJr-SRB2-SRB2_release_2.2.9_GH0.tar.gz) = 59265756 diff --git a/games/SRB2/pkg-descr b/games/SRB2/pkg-descr new file mode 100644 index 000000000000..68b4e87dd092 --- /dev/null +++ b/games/SRB2/pkg-descr @@ -0,0 +1,8 @@ +Sonic Robo Blast 2 is a 3D open-source Sonic the Hedgehog fangame built using +a modified version of the Doom Legacy port of Doom. SRB2 is closely inspired by +the original Sonic games from the Sega Genesis, and attempts to recreate +the design in 3D. While SRB2 isn't fully completed, it already features +tons of levels, enemies, speed, and quite a lot of the fun that the original +Sonic games provided. + +WWW: https://www.srb2.org/ diff --git a/games/SRB2/pkg-plist b/games/SRB2/pkg-plist new file mode 100644 index 000000000000..384bfd0c0cf8 --- /dev/null +++ b/games/SRB2/pkg-plist @@ -0,0 +1,6 @@ +bin/srb2 +bin/srb2-2.2.9 +%%DATADIR%%/patch.pk3 +%%DATADIR%%/player.dta +%%DATADIR%%/srb2.pk3 +%%DATADIR%%/zones.pk3