diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-02-24 03:05:53 +0330 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-08 22:29:53 +0100 |
commit | ce9f355b1233b3f6d858eedc7837a0a2e6994fc1 (patch) | |
tree | 75b0a5bd35014a19ae184ce0b2475f9cc54b6c38 /Ports/bdwgc/package.sh | |
parent | 5d51e26caff61516d6fcf612c2e9ba72a82b699f (diff) | |
download | serenity-ce9f355b1233b3f6d858eedc7837a0a2e6994fc1.zip |
Ports: Add a bdwgc (aka libgc) port
For all your ports' garbage collection needs :^)
Diffstat (limited to 'Ports/bdwgc/package.sh')
-rwxr-xr-x | Ports/bdwgc/package.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Ports/bdwgc/package.sh b/Ports/bdwgc/package.sh new file mode 100755 index 0000000000..54b6b388f1 --- /dev/null +++ b/Ports/bdwgc/package.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env -S bash ../.port_include.sh + +port=bdwgc +version=8.0.6 +use_fresh_config_sub=true +files="https://github.com/ivmai/bdwgc/releases/download/v$version/gc-$version.tar.gz bdwgc.tar.gz 3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11" +depends=(libatomic_ops) +workdir=gc-$version +auth_type=sha256 + +build() { + cd $workdir + mkdir build || true + cd build + cmake .. \ + -Denable_threads=ON \ + -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="$DESTDIR/usr/local/bin" \ + -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="$DESTDIR/usr/local/lib" + cmake --build . +} + +install() { + cd .. + cp -r include "$DESTDIR/usr/local/include/gc" +} |