ea8c8ec7da
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= shaderc
|
|
DISTVERSIONPREFIX=v
|
|
DISTVERSION= 2018.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics devel
|
|
|
|
PATCH_SITES= https://github.com/haasn/${GH_PROJECT}/commit/
|
|
PATCHFILES= 21c8be385b3f.patch:-p1
|
|
|
|
MAINTAINER= greg@unrelenting.technology
|
|
COMMENT= GLSL/HLSL to SPIR-V shader compiler
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libSPIRV-Tools-opt.a:devel/spirv-tools \
|
|
${LOCALBASE}/lib/libHLSL.a:devel/glslang
|
|
|
|
USES= cmake compiler:c++11-lib pkgconfig localbase:ldflags python:build
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= google
|
|
|
|
CMAKE_ON+= SHADERC_SKIP_TESTS
|
|
CMAKE_OFF+= SHADERC_ENABLE_NV_EXTENSIONS
|
|
CMAKE_ARGS+= -DPYTHON_EXE:STRING="${PYTHON_CMD}"
|
|
CFLAGS+= -Wno-ignored-attributes -Wno-c++11-narrowing
|
|
|
|
# https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/shaderc
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} '/examples/d;/third_party/d' ${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} '/build-version/d' ${WRKSRC}/glslc/CMakeLists.txt
|
|
${ECHO} "\"${DISTVERSIONFULL}\"" > ${WRKSRC}/glslc/src/build-version.inc
|
|
|
|
.include <bsd.port.mk>
|