8f8d276d3b
main change is that the Vulkan backend is now stable; no longer experimental upstream is planning to default to Vulkan in the future after some more testing time; for now OpenGL remains the default At this point, Vulkan can be tested with FNA games by setting FNA3D_FORCE_DRIVER=Vulkan or appending /gldevice:Vulkan to the runtime command see https://github.com/FNA-XNA/FNA/wiki/7:-FNA-Environment-Variables tested with Rogue Legacy and Celeste without issues, including OpenGL and Vulkan backends
46 lines
982 B
Makefile
46 lines
982 B
Makefile
# $OpenBSD: Makefile,v 1.9 2021/10/05 07:10:20 thfr Exp $
|
|
|
|
# versions are in sync with FNA versions
|
|
V = 21.10
|
|
COMMENT = 3D graphics library for FNA
|
|
DISTNAME = fna-${V:S/.//g}
|
|
PKGNAME = fna3d-${V}
|
|
|
|
SHARED_LIBS = FNA3D 2.0 # 21.03
|
|
|
|
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>
|