update mojoshader to changeset 1214
This allows running most recent FNA games to run (e.g. Sumico,
Unexplored).
No regressions on testing with FNA games, including:
Apotheon, At the Gates, Axiom Verge, Celeste, CometStriker, Dust AET,
FEZ, Flinthook, Flotilla, Hacknet, Rogue Legacy, Owlboy, Salt and
Sanctuary
2019-09-19 16:36:07 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2019/09/19 16:36:07 thfr Exp $
|
2018-01-12 22:50:45 +00:00
|
|
|
|
|
|
|
COMMENT = library to move calls to Direct3D shaders to OpenGL
|
|
|
|
|
|
|
|
# HG_CHANGESET and HG_COMMIT must be kept in sync.
|
update mojoshader to changeset 1214
This allows running most recent FNA games to run (e.g. Sumico,
Unexplored).
No regressions on testing with FNA games, including:
Apotheon, At the Gates, Axiom Verge, Celeste, CometStriker, Dust AET,
FEZ, Flinthook, Flotilla, Hacknet, Rogue Legacy, Owlboy, Salt and
Sanctuary
2019-09-19 16:36:07 +00:00
|
|
|
HG_CHANGESET = 1214
|
|
|
|
HG_COMMIT = 5887634ea695
|
2018-01-12 22:50:45 +00:00
|
|
|
|
|
|
|
DISTNAME = mojoshader-${HG_COMMIT}{${HG_COMMIT}}
|
|
|
|
PKGNAME = mojoshader-${HG_CHANGESET}
|
|
|
|
CATEGORIES = graphics
|
|
|
|
MASTER_SITES = https://hg.icculus.org/icculus/mojoshader/archive/
|
|
|
|
|
|
|
|
SHARED_LIBS += mojoshader 0.0 # Changeset 1181
|
|
|
|
|
|
|
|
HOMEPAGE = https://icculus.org/mojoshader/
|
|
|
|
|
2019-01-06 21:26:02 +00:00
|
|
|
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
|
2018-01-12 22:50:45 +00:00
|
|
|
|
|
|
|
# zlib
|
2019-07-12 20:46:54 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2018-01-12 22:50:45 +00:00
|
|
|
|
|
|
|
WANTLIB += m
|
|
|
|
|
|
|
|
MODULES = devel/cmake
|
|
|
|
|
|
|
|
BUILD_DEPENDS = devel/re2c \
|
|
|
|
devel/sdl2
|
|
|
|
|
|
|
|
TEST_DEPENDS = security/p5-Digest-SHA1
|
|
|
|
|
|
|
|
# FLIP_VIEWPORT is needed by some FNA games (FEZ if I recall correctly)
|
|
|
|
CONFIGURE_ARGS = -DBUILD_SHARED=1 -DFLIP_VIEWPORT=1
|
|
|
|
|
|
|
|
WRKDIST = ${WRKDIR}/mojoshader-${HG_COMMIT}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
sed -i -e 's,$${HG_CHANGESET},${HG_CHANGESET},g' \
|
|
|
|
-e 's,$${HG_COMMIT},${HG_COMMIT},g' ${WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
# No upstream install target
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mojoshader*.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/libmojoshader.so.${LIBmojoshader_VERSION} \
|
|
|
|
${PREFIX}/lib
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|