thfr b79bfaf0ed update FNA suite to 22.01; tested with Steel Assault
https://github.com/FNA-XNA/FNA/releases/tag/22.01
https://github.com/FNA-XNA/FAudio/releases/tag/22.01
https://github.com/FNA-XNA/FNA3D/releases/tag/22.01

New Features:
Update to FNA3D 22.01
Update to FAudio 22.01
Added SetVideoTrackEXT extension
Added SrgbEXT extension

Fixes:
The FNA3D log is now hooked later in FNAPlatform initialization, to try and load SDL before FNA3D
Partially works around a regression in the new dyld in macOS Monterey
Fixed DDSFromStreamEXT mip loading to calculate each mip level in full

New Features:
Added support for SRGB textures/renderbuffers

Removed Features:
The Metal renderer has been removed, in favor of Vulkan/MoltenVK

Fixes:
Vulkan: Various fixes for device support checks
Image: Log errors from stb_image
2022-01-08 16:22:00 +00:00

70 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2022/01/08 16:22:00 thfr Exp $
V = 22.01
COMMENT = XNA4 reimplementation for open platforms
DISTNAME = fna-${V:S/.//g}
PKGNAME = fna-${V}
CATEGORIES = games
HOMEPAGE = https://fna-xna.github.io/
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# MS-PL, includes lzxdecoder (dual MSPL/LGPL) and Mono.Xna (MIT)
# zlib (Vorbisfile-CS)
PERMIT_PACKAGE = Yes
NETSTUB = ebff244074bb3c28aeeb8cf7b383b5a029d7e28d
VORBISFILE = 521c8532f03b3608a141b36d7c1343e816b46cb1
MASTER_SITES = https://github.com/FNA-XNA/FNA/releases/download/${V}/
MASTER_SITES0 = https://github.com/FNA-XNA/FNA.NetStub/archive/
MASTER_SITES1 = https://github.com/flibitijibibo/Vorbisfile-CS/archive/
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
${NETSTUB}.tar.gz:0 \
${VORBISFILE}.tar.gz:1
DIST_SUBDIR = fna-${V}
EXTRACT_SUFX = .zip
MODULES = lang/mono
RUN_DEPENDS = audio/faudio \
devel/sdl2-image \
graphics/fna3d \
graphics/mojoshader
WRKDIST = ${WRKDIR}/FNA
NO_TEST = Yes
ALL_TARGET = release
SUBST_VARS += VORBISFILE
post-extract:
ln -sf ${WRKDIR}/FNA.NetStub-${NETSTUB} ${WRKDIR}/FNA.NetStub
do-gen:
cp ${FILESDIR}/FNA.Settings.props ${WRKSRC}/
${SUBST_CMD} ${WRKSRC}/FNA.Settings.props
# need to rm bin,obj before FNA.sln to build with FNA.Settings.props
do-build:
xbuild /p:Configuration=Release ${WRKSRC}/abi/Microsoft.Xna.Framework.sln
rm -rf ${WRKBUILD}/{bin,obj}
xbuild /p:Configuration=Release ${WRKSRC}/FNA.sln
do-install:
mkdir -p ${PREFIX}/share/FNA
${INSTALL_DATA} ${WRKBUILD}/bin/Release/FNA.dll ${PREFIX}/share/FNA/
${INSTALL_DATA} \
${WRKBUILD}/abi/bin/Release/FNA.NetStub.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Game.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.GamerServices.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Graphics.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Input.Touch.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Net.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Storage.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Video.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.Xact.dll \
${WRKBUILD}/abi/bin/Release/Microsoft.Xna.Framework.dll \
${PREFIX}/share/FNA/
${INSTALL_DATA} ${FILESDIR}/FNA.dll.config ${PREFIX}/share/FNA/
.include <bsd.port.mk>