1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:57:34 +00:00

Ports/bdwgc: Build using automake

This provides the necessary pkg-config files for other automake ports
that depend on it.
This commit is contained in:
Peter Elliott 2022-05-07 00:44:52 -06:00 committed by Andreas Kling
parent bccf0a9346
commit 8a007e755d
9 changed files with 52 additions and 32 deletions

View file

@ -8,18 +8,8 @@ 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"
useconfigure=true
configopts=("--enable-threads=posix")
pre_configure() {
run ./autogen.sh
}