mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
openimageio: fix cross ppc{,-musl}
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
f8a4e58d1f
commit
fc08a7e361
1 changed files with 8 additions and 5 deletions
|
@ -21,21 +21,24 @@ checksum=a019086c05a6150d445a2240bab1723dff540dde5f5c327c36a97f0b5ae0e157
|
||||||
CXXFLAGS="-faligned-new"
|
CXXFLAGS="-faligned-new"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
|
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
|
||||||
armv[56]*|mips*) makedepends+=" libatomic-devel" ;;
|
armv[56]*|mips*|ppc|ppc-musl) makedepends+=" libatomic-devel" ;;
|
||||||
esac
|
esac
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
configure_args+=" -DUSE_STD_REGEX_EXITCODE=0 -DUSE_STD_REGEX_EXITCODE__TRYRUN_OUTPUT=0"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
local f
|
local f
|
||||||
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
|
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
|
||||||
sed -i src/cmake/compiler.cmake -e "s;-isystem;-I;g"
|
vsed -i src/cmake/compiler.cmake -e "s;-isystem;-I;g"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
armv[56]*|mips*)
|
armv[56]*|mips*|ppc|ppc-musl)
|
||||||
# Add libatomic to the targets
|
# Add libatomic to the targets
|
||||||
sed -i src/libOpenImageIO/CMakeLists.txt \
|
vsed -i src/libOpenImageIO/CMakeLists.txt \
|
||||||
-e "s;^\(target_link_libraries (OpenImageIO ${ZLIB_LIBRARIES}\));\1 atomic);"
|
-e "s;^\(target_link_libraries (OpenImageIO ${ZLIB_LIBRARIES}\));\1 atomic);"
|
||||||
for f in idiff igrep iconvert iinfo maketx testtex oiiotool; do
|
for f in idiff igrep iconvert iinfo maketx testtex oiiotool; do
|
||||||
sed -i src/${f}/CMakeLists.txt \
|
vsed -i src/${f}/CMakeLists.txt \
|
||||||
-e "s;^\(target_link_libraries .*\));\1 atomic);"
|
-e "s;^\(target_link_libraries .*\));\1 atomic);"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue