mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Ports: Add port for harfbuzz
This commit is contained in:
parent
2f3ded4dfd
commit
611019e938
3 changed files with 34 additions and 0 deletions
21
Ports/harfbuzz/package.sh
Executable file
21
Ports/harfbuzz/package.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=harfbuzz
|
||||
useconfigure=true
|
||||
version=2.8.1
|
||||
depends="freetype libicu"
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt -DHB_HAVE_FREETYPE=ON -DHB_HAVE_ICU=ON"
|
||||
files="https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz harfbuzz-${version}.tar.xz 4124f663ec4bf4e294d9cf230668370b4249a48ff34deaf0f06e8fc82d891300"
|
||||
auth_type=sha256
|
||||
|
||||
configure() {
|
||||
run mkdir -p build
|
||||
run sh -c "cd build && cmake $configopts .."
|
||||
}
|
||||
|
||||
build() {
|
||||
run sh -c "cd build && make $makeopts"
|
||||
}
|
||||
|
||||
install() {
|
||||
run sh -c "cd build && make install"
|
||||
}
|
12
Ports/harfbuzz/patches/unused.patch
Normal file
12
Ports/harfbuzz/patches/unused.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur harfbuzz-2.8.1/src/hb-buffer.hh harfbuzz-2.8.1.serenity/src/hb-buffer.hh
|
||||
--- harfbuzz-2.8.1/src/hb-buffer.hh 2021-05-04 02:09:38.000000000 +0200
|
||||
+++ harfbuzz-2.8.1.serenity/src/hb-buffer.hh 2021-05-08 05:22:34.579810445 +0200
|
||||
@@ -166,7 +166,7 @@
|
||||
#ifndef HB_NDEBUG
|
||||
unsigned int end = start + count;
|
||||
assert (end <= 8);
|
||||
- unsigned int bits = (1u<<end) - (1u<<start);
|
||||
+ [[maybe_unused]] unsigned int bits = (1u<<end) - (1u<<start);
|
||||
assert (bits == (allocated_var_bits & bits));
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue