2021-10-05 03:10:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2021/10/05 07:10:20 thfr Exp $
|
2020-10-05 12:05:26 -04:00
|
|
|
|
|
|
|
# versions are in sync with FNA versions
|
2021-10-05 03:10:20 -04:00
|
|
|
V = 21.10
|
2020-10-05 12:05:26 -04:00
|
|
|
COMMENT = 3D graphics library for FNA
|
|
|
|
DISTNAME = fna-${V:S/.//g}
|
|
|
|
PKGNAME = fna3d-${V}
|
|
|
|
|
2021-03-07 12:11:34 -05:00
|
|
|
SHARED_LIBS = FNA3D 2.0 # 21.03
|
2020-10-05 12:05:26 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-10-10 20:34:30 -04:00
|
|
|
# base-gcc does not have thread-local storage
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
COMPILER_LANGS = c
|
|
|
|
|
2020-10-05 12:05:26 -04:00
|
|
|
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>
|