libtheora: use CONFIGURE_ARGS, fix build on armeb
authorDaniel Golle <[email protected]>
Sun, 22 Jun 2025 17:15:05 +0000 (18:15 +0100)
committerDaniel Golle <[email protected]>
Sun, 22 Jun 2025 19:50:27 +0000 (20:50 +0100)
Use CONFIGURE_ARGS instead of defining a custom Build/Configure target.
Set --disable-asm on armeb to fix build error:
  CC       apiwrapper.lo
In file included from state.h:56,
                 from apiwrapper.h:24,
                 from apiwrapper.c:21:
arm/armint.h:24:5: error: #error "Big-endian configurations are not supported by the ARM asm. " "Reconfigure with --disable-asm or undefine OC_ARM_ASM."
   24 | #   error "Big-endian configurations are not supported by the ARM asm. " \
      |     ^~~~~

Signed-off-by: Daniel Golle <[email protected]>
libs/libtheora/Makefile

index 19ed1e8f3c9eeb8e497a776008bf6f5b17cd8d69..58404b9ef1f7db527aa48cebb96feb5f84e7d594 100644 (file)
@@ -42,14 +42,15 @@ features supported by the decoder to improve over what is
 is possible with VP3.
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default, \
-               --disable-examples \
-               --disable-oggtest \
-               --disable-vorbistest \
-               --disable-sdltest \
-       )
-endef
+CONFIGURE_ARGS += \
+       --disable-examples \
+       --disable-oggtest \
+       --disable-vorbistest \
+       --disable-sdltest
+
+ifneq ($(findstring armeb,$(CONFIG_ARCH)),)
+CONFIGURE_ARGS += --disable-asm
+endif
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/theora/