Changeset View
Changeset View
Standalone View
Standalone View
graphics/shaderc/Makefile
- This file was added.
# $FreeBSD$ | |||||
PORTNAME= shaderc | |||||
DISTVERSIONPREFIX=v | |||||
DISTVERSION= 2018.0 | |||||
CATEGORIES= graphics devel | |||||
PATCH_SITES= https://github.com/haasn/${GH_PROJECT}/commit/ | |||||
PATCHFILES= 21c8be3.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 python:build | |||||
USE_LDCONFIG= yes | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= google | |||||
GH_PROJECT= ${PORTNAME} | |||||
tobik: Remove this. It's the default value for GH_PROJECT. | |||||
CMAKE_ON+= SHADERC_SKIP_TESTS | |||||
CMAKE_OFF+= SHADERC_ENABLE_NV_EXTENSIONS | |||||
CMAKE_ARGS+= -DPYTHON_EXE=${PYTHON_CMD} | |||||
tobikAuthorUnsubmitted Not Done Inline ActionsWhy += ? In practice it is only ever needed for C*FLAGS, and LDFLAGS because they are already set in sys.mk (and possible make.conf by the user) which is included before everything else and we do not want to override those. This is not the case for CMAKE_{ON,OFF,ARGS} or basically any other variable unless you have set it before in the Makefile. tobik: Why `+=` ? In practice it is only ever needed for C*FLAGS, and LDFLAGS because they are already… | |||||
CFLAGS+= -Wno-ignored-attributes -Wno-c++11-narrowing | |||||
LDFLAGS+=-L${LOCALBASE}/lib # not part of USES=localbase | |||||
tobikAuthorUnsubmitted Not Done Inline ActionsUSES=localbase:ldflags tobik: `USES=localbase:ldflags` | |||||
# 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} "\"${DISTVERSION}\"" > ${WRKSRC}/glslc/src/build-version.inc | |||||
tobikAuthorUnsubmitted Not Done Inline ActionsUse ECHO_CMD not ECHO (see Mk/bsd.commands.mk) tobik: Use `ECHO_CMD` not `ECHO` (see `Mk/bsd.commands.mk`) | |||||
.include <bsd.port.mk> |
Remove this. It's the default value for GH_PROJECT.