openbsd-ports/graphics/fna3d/Makefile

46 lines
982 B
Makefile
Raw Normal View History

# $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>