New package: libdispatch-5.10.1
This commit is contained in:
parent
b2dca28712
commit
d862f1bec8
5 changed files with 61 additions and 0 deletions
|
@ -400,6 +400,8 @@ libpostproc.so.57 libpostproc6-6.0_1
|
|||
libavcodec.so.60 libavcodec6-6.0_1
|
||||
libavutil.so.58 libavutil6-6.0_1
|
||||
libavfilter.so.9 libavfilter6-6.0_1
|
||||
libdispatch.so libdispatch-5.10.1_1
|
||||
libBlocksRuntime.so libdispatch-5.10.1_1
|
||||
libavdevice.so.58 libavdevice-4.0_1
|
||||
libavformat.so.58 libavformat-4.0_1
|
||||
libswscale.so.5 libswscale-4.0_1
|
||||
|
|
1
srcpkgs/libdispatch-devel
Symbolic link
1
srcpkgs/libdispatch-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libdispatch
|
12
srcpkgs/libdispatch/patches/musl.patch
Normal file
12
srcpkgs/libdispatch/patches/musl.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
https://git.alpinelinux.org/aports/tree/community/libdispatch/getprogname-musl.patch
|
||||
--- a/src/shims/getprogname.h
|
||||
+++ b/src/shims/getprogname.h
|
||||
@@ -37,7 +37,7 @@
|
||||
static inline char *
|
||||
getprogname(void)
|
||||
{
|
||||
-# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
|
||||
+# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME || !(defined(__GLIBC__))
|
||||
return program_invocation_short_name;
|
||||
# elif defined(__ANDROID__)
|
||||
return __progname;
|
10
srcpkgs/libdispatch/patches/werror.patch
Normal file
10
srcpkgs/libdispatch/patches/werror.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
https://aur.archlinux.org/cgit/aur.git/tree/remove-werror.patch?h=libdispatch
|
||||
--- a/cmake/modules/DispatchCompilerWarnings.cmake 2020-05-12 13:13:59.619689872 +0300
|
||||
+++ b/cmake/modules/DispatchCompilerWarnings.cmake 2020-05-12 13:13:35.216171428 +0300
|
||||
@@ -2,7 +2,6 @@
|
||||
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
|
||||
# TODO: someone needs to provide the msvc equivalent warning flags
|
||||
else()
|
||||
- add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror>)
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wall>)
|
||||
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wextra>)
|
36
srcpkgs/libdispatch/template
Normal file
36
srcpkgs/libdispatch/template
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 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
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue