diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template index 8705875175f..165999543ce 100644 --- a/srcpkgs/tbb/template +++ b/srcpkgs/tbb/template @@ -22,6 +22,12 @@ case "$XBPS_TARGET_MACHINE" in aarch64*) make_build_args="arch=arm64" ;; + ppc64*) + make_build_args="arch=ppc64" + ;; + ppc*) + make_build_args="arch=ppc" + ;; esac post_extract() { @@ -30,12 +36,10 @@ post_extract() { # alternative might be: # https://git.alpinelinux.org/cgit/aports/tree/testing/libtbb/glibc-struct-mallinfo.patch - case "$XBPS_TARGET_MACHINE" in - *-musl) - sed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \ - -i src/tbbmalloc/proxy.h - ;; - esac + if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + vsed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \ + -i src/tbbmalloc/proxy.h + fi } do_install() {