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

46 lines
983 B
Makefile

# $OpenBSD: Makefile,v 1.11 2022/01/08 16:22:00 thfr Exp $
# versions are in sync with FNA versions
V = 22.01
COMMENT = 3D graphics library for FNA
DISTNAME = fna-${V:S/.//g}
PKGNAME = fna3d-${V}
SHARED_LIBS = FNA3D 3.1 # 22.01
CATEGORIES = graphics
HOMEPAGE = https://github.com/FNA-XNA/FNA3D
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# zlib
PERMIT_PACKAGE = Yes
WANTLIB += SDL2 mojoshader
MASTER_SITES = https://github.com/FNA-XNA/FNA/releases/download/${V}/
EXTRACT_SUFX = .zip
# base-gcc does not have thread-local storage
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2 \
graphics/mojoshader
USE_GMAKE = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/FNA/lib/FNA3D
SUBST_VARS += LIBFNA3D_VERSION
do-gen:
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/
${INSTALL_DATA} ${WRKBUILD}/libFNA3D.so.${LIBFNA3D_VERSION} ${PREFIX}/lib/
.include <bsd.port.mk>