37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'libdispatch'
|
|
pkgname=libdispatch
|
|
version=5.10.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
|
hostmakedepends="clang"
|
|
short_desc="Concurrent multicore library"
|
|
maintainer="zlice <zlice555@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/apple/swift-corelibs-libdispatch"
|
|
distfiles="https://github.com/apple/swift-corelibs-libdispatch/archive/refs/tags/swift-${version}-RELEASE.tar.gz"
|
|
checksum=affa3544b0fdb60f8f175bc0d2846177436d5848ef8ca73e3e560d23986f38b3
|
|
|
|
# clang doesn't find cpu with 'march' but 'target'
|
|
pre_configure() {
|
|
export CC=clang
|
|
export CXX=clang++
|
|
if [ "$CROSS_BUILD" ] ; then
|
|
export CFLAGS+=" --target=${XBPS_CROSS_TRIPLET}"
|
|
export CXXFLAGS+=" --target=${XBPS_CROSS_TRIPLET}"
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
ctest --output-on-failure $makejobs --test-dir build -E dispatch_select # fail
|
|
}
|
|
|
|
libdispatch-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|