44 lines
901 B
Makefile
44 lines
901 B
Makefile
# versions are in sync with FNA versions
|
|
V = 22.08
|
|
COMMENT = 3D graphics library for FNA
|
|
DISTNAME = fna-${V:S/.//g}
|
|
PKGNAME = fna3d-${V}
|
|
REVISION = 0
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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>
|