diff --git a/srcpkgs/pioneer/patches/endian.patch b/srcpkgs/pioneer/patches/endian.patch new file mode 100644 index 00000000000..695d367a223 --- /dev/null +++ b/srcpkgs/pioneer/patches/endian.patch @@ -0,0 +1,19 @@ +commit b2bfa86a8d01c38a907a837fc58a85577697a6f0 +Author: q66 +Date: Sun Jan 5 22:02:18 2020 +0100 + + Fix big endian build + +diff --git src/PngWriter.cpp src/PngWriter.cpp +index 76bfb0e..5908480 100644 +--- src/PngWriter.cpp ++++ src/PngWriter.cpp +@@ -10,7 +10,7 @@ void write_png(FileSystem::FileSourceFS &fs, const std::string &path, const Uint + // Set up the pixel format color masks for RGB(A) byte arrays. + Uint32 rmask, gmask, bmask, amask; + #if SDL_BYTEORDER == SDL_BIG_ENDIAN +- int shift = ((sd.bpp == 3) ? 8 : 0; ++ int shift = (bytes_per_pixel == 3) ? 8 : 0; + rmask = 0xff000000 >> shift; + gmask = 0x00ff0000 >> shift; + bmask = 0x0000ff00 >> shift; diff --git a/srcpkgs/pioneer/template b/srcpkgs/pioneer/template index 3fa2cecd63e..8ace72f2f34 100644 --- a/srcpkgs/pioneer/template +++ b/srcpkgs/pioneer/template @@ -22,6 +22,10 @@ if [ "$CROSS_BUILD" ]; then hostmakedepends+=" pioneer-modelcompiler" fi +if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then + broken="Not yet implemented" +fi + pioneer-modelcompiler_package() { short_desc+=" -modelcompiler" pkg_install() {