1
0
forked from ports/contrib

shaderc: 2023.6 -> 2023.7

This commit is contained in:
John McQuah 2023-10-15 11:40:17 +00:00
parent 5f90cbb5e9
commit f5c4d953d5
3 changed files with 31 additions and 31 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF36hNRfsGYjwm4hGsG0YlUVu3DCURcB4MXLCkvfIM3jO2eDqcLsGK+4ipZhpgnHUiYxENnmsVk2pAgIAB5Y1FuAM= RWSagIOpLGJF31LleuoV+fwYJ3ATd92wswXIZNIQnxzGXahs6mwnooRwqsxetl3kU1fyb4nl1siV3vrl27fS2Pqeok2qww1chwU=
SHA256 (Pkgfile) = 68e1fe5427f34e83d53d352c1db55efead8546cec4708eb32ec3fd66d3932825 SHA256 (Pkgfile) = 6c25050bfa0e365f50e536f8d9c41c555de0e7b0f1b0d63c09a1e9a0a87e3814
SHA256 (.footprint) = 768c5796cba31503e5e8a1c1d874f1d8699d410d17d6b98d9a6588ae17462816 SHA256 (.footprint) = 768c5796cba31503e5e8a1c1d874f1d8699d410d17d6b98d9a6588ae17462816
SHA256 (shaderc-v2023.6.tar.gz) = e40fd4a87a56f6610e223122179f086d5c4f11a7e0e2aa461f0325c3a0acc6ae SHA256 (shaderc-v2023.7.tar.gz) = 681e1340726a0bf46bea7e31f10cbfe78e01e4446a35d90fedc2b78d400fcdeb
SHA256 (glslc.1) = eb44308e645bcba593460fbba662c291489b868467a19853b1b57b5f73448798 SHA256 (glslc.1) = 348294e9066b0bf7337faebee3823e99f5e9df337154321332c5d28cd4473e1a

View File

@ -5,39 +5,39 @@
# Optional: asciidoctor # Optional: asciidoctor
name=shaderc name=shaderc
version=2023.6 version=2023.7
release=1 release=1
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz
glslc.1) glslc.1)
build() { build() {
# de-vendor libs and disable git versioning # de-vendor libs and disable git versioning
sed '/examples/d;/third_party/d' -i $name-$version/CMakeLists.txt sed '/examples/d;/third_party/d' -i $name-$version/CMakeLists.txt
sed '/build-version/d' -i $name-$version/glslc/CMakeLists.txt sed '/build-version/d' -i $name-$version/glslc/CMakeLists.txt
cat <<- EOF > $name-$version/glslc/src/build-version.inc cat <<- EOF > $name-$version/glslc/src/build-version.inc
"${version}\\n" "${version}\\n"
"$(prt-get printf '%v\n' --filter=spirv-tools)" "$(prt-get printf '%v\n' --filter=spirv-tools)"
"$(prt-get printf '%v\n' --filter=glslang)" "$(prt-get printf '%v\n' --filter=glslang)"
EOF EOF
sed -i -e "s|\$<TARGET_FILE:spirv-dis>|spirv-dis|" \ sed -i -e "s|\$<TARGET_FILE:spirv-dis>|spirv-dis|" \
$name-$version/glslc/test/CMakeLists.txt $name-$version/glslc/test/CMakeLists.txt
cmake -S $name-$version -B build -G Ninja $PKGMK_SHADERC \ cmake -S $name-$version -B build -G Ninja $PKGMK_SHADERC \
-D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \ -D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \ -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \ -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
-D SHADERC_SKIP_TESTS=ON \ -D SHADERC_SKIP_TESTS=ON \
-D glslang_SOURCE_DIR:PATH='/usr/include/glslang' -D glslang_SOURCE_DIR:PATH='/usr/include/glslang'
cmake --build build -j ${JOBS:-1} cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build DESTDIR=$PKG cmake --install build
if [ -e '/usr/bin/asciidoctor' ]; then if prt-get isinst asciidoctor 2>/dev/null; then
sed 's/^`glslc`/glslc/' $name-$version/glslc/README.asciidoc \ sed 's/^`glslc`/glslc/' $name-$version/glslc/README.asciidoc \
| asciidoctor -q -b manpage -o glslc.1 - | asciidoctor -q -b manpage -o glslc.1 -
install -D -m 0644 -t $PKG/usr/share/man/man1 glslc.1 install -D -m 0644 -t $PKG/usr/share/man/man1 glslc.1
else else
install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/glslc.1 install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/glslc.1
fi fi
} }

View File

@ -2,12 +2,12 @@
.\" Title: glslc Manual .\" Title: glslc Manual
.\" Author: [see the "AUTHOR(S)" section] .\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.20 .\" Generator: Asciidoctor 2.0.20
.\" Date: 2023-07-19 .\" Date: 2023-10-15
.\" Manual: \ \& .\" Manual: \ \&
.\" Source: \ \& .\" Source: \ \&
.\" Language: English .\" Language: English
.\" .\"
.TH "GLSLC" "1" "2023-07-19" "\ \&" "\ \&" .TH "GLSLC" "1" "2023-10-15" "\ \&" "\ \&"
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.ss \n[.ss] 0 .ss \n[.ss] 0
@ -1427,4 +1427,4 @@ escaping in C.
The file argument is a relative path that is matched first against the including The file argument is a relative path that is matched first against the including
file\(cqs own directory and then against all \f(CR\-I\fP arguments in order of their file\(cqs own directory and then against all \f(CR\-I\fP arguments in order of their
appearance on the command line. If the file cannot be found, \f(CRglslc\fP aborts appearance on the command line. If the file cannot be found, \f(CRglslc\fP aborts
with an error. with an error.