1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/SRB2/Makefile
Piotr Kubaj 5402e0dd86 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/
2021-09-10 22:54:03 +00:00

47 lines
1.5 KiB
Makefile

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 <bsd.port.mk>