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.
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2019/10/01 12:30:31 nia Exp $
|
|
|
|
PKGNAME= srb2-2.1.25
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.srb2.org/
|
|
COMMENT= Sonic the Hedgehog fan game built using the Doom Legacy engine
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
DISTFILES+= srb2.tar.gz
|
|
DISTFILES+= srb2-assets.7z
|
|
DISTFILES+= srb2-assets-opt.7z
|
|
|
|
SITES.srb2.tar.gz= \
|
|
-https://github.com/STJr/SRB2/archive/SRB2_release_${PKGVERSION_NOREV}.tar.gz
|
|
|
|
SITES.srb2-assets.7z= \
|
|
-https://github.com/mazmazz/SRB2/releases/download/SRB2_assets/SRB2-v2122-assets.7z
|
|
|
|
SITES.srb2-assets-opt.7z= \
|
|
-https://github.com/mazmazz/SRB2/releases/download/SRB2_assets/SRB2-v2122-optional-assets.7z
|
|
|
|
WRKSRC= ${WRKDIR}/SRB2-SRB2_release_${PKGVERSION_NOREV}
|
|
USE_CMAKE= yes
|
|
USE_TOOLS+= pkg-config
|
|
CONFIGURE_DIRS= build
|
|
CMAKE_ARG_PATH= ..
|
|
|
|
CMAKE_ARGS+= -DGME_INCLUDE_DIR=${BUILDLINK_DIR}/include
|
|
CMAKE_ARGS+= -DSDL2_INCLUDE_DIR=${BUILDLINK_DIR}/include
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
TOOL_DEPENDS+= nasm>=1.1:../../devel/nasm
|
|
.endif
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_MESSAGE.prefix= Setting PREFIX search paths.
|
|
SUBST_FILES.prefix+= src/sdl/i_system.c
|
|
SUBST_VARS.prefix+= PREFIX
|
|
|
|
INSTALLATION_DIRS+= bin
|
|
INSTALLATION_DIRS+= share/applications
|
|
INSTALLATION_DIRS+= share/pixmaps
|
|
INSTALLATION_DIRS+= share/srb2
|
|
|
|
CHECK_PORTABILITY_SKIP+= libs/miniupnpc/testminiwget.sh
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKSRC}/assets/installer
|
|
${MV} ${WRKDIR}/*.dta ${WRKDIR}/*.srb ${WRKSRC}/assets/installer
|
|
${MKDIR} ${WRKSRC}/build
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/bin/srb2 \
|
|
${DESTDIR}${PREFIX}/bin/srb2
|
|
${INSTALL_DATA} ${WRKSRC}/assets/installer/* \
|
|
${DESTDIR}${PREFIX}/share/srb2
|
|
${INSTALL_DATA} ${FILESDIR}/srb2.desktop \
|
|
${DESTDIR}${PREFIX}/share/applications/srb2.desktop
|
|
${INSTALL_DATA} ${WRKSRC}/srb2.png \
|
|
${DESTDIR}${PREFIX}/share/pixmaps/srb2.png
|
|
|
|
.include "../../audio/game-music-emu/buildlink3.mk"
|
|
.include "../../audio/SDL2_mixer/buildlink3.mk"
|
|
.include "../../devel/SDL2/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|