mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-19 21:13:19 +00:00
31 lines
909 B
Plaintext
31 lines
909 B
Plaintext
# description : Grand central dispatch, from swift corelibs
|
|
# homepage : https://github.com/apple/swift-corelibs-libdispatch
|
|
# depends : clang libbsd
|
|
|
|
name=libdispatch
|
|
version=5.5.3
|
|
release=1
|
|
source="$name-$version.tar.gz::https://github.com/apple/swift-corelibs-libdispatch/archive/swift-${version%.*}-RELEASE.tar.gz"
|
|
build() {
|
|
export CC=clang
|
|
export CXX=clang++
|
|
|
|
find swift-corelibs-* -name DispatchCompilerWarnings.cmake \
|
|
-exec sed -i "/-Werror/d" '{}' \;
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_LIBEXECDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-DBlocksRuntime_INCLUDE_DIR=/usr/include \
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=on ../swift-corelibs-$name-* \
|
|
-Wno-dev
|
|
ninja
|
|
DESTDIR=$PKG ninja install
|
|
}
|