From 9f8f3c92c634e5041769e608a64b680dfc074c80 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 14 Oct 2010 21:40:47 +0200 Subject: prboom: re-add big endian fixup Seems I misread configure.ac, the endianness detection is only used when not cross compiling. Signed-off-by: Peter Korsgaard --- package/games/prboom/prboom.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package/games') diff --git a/package/games/prboom/prboom.mk b/package/games/prboom/prboom.mk index a8c7f6548..3a50fd502 100644 --- a/package/games/prboom/prboom.mk +++ b/package/games/prboom/prboom.mk @@ -19,6 +19,16 @@ PRBOOM_CONF_OPT = \ --disable-sdltest \ --disable-gl +# endianness detection isn't used when cross compiling +define PRBOOM_BIG_ENDIAN_FIXUP + $(SED) 's,.*#undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \ + $(PRBOOM_DIR)/config.h +endef + +ifeq ($(BR2_ENDIAN),"BIG") +PRBOOM_POST_CONFIGURE_HOOKS += PRBOOM_BIG_ENDIAN_FIXUP +endif + define PRBOOM_INSTALL_TARGET_CMDS $(INSTALL) -D $(@D)/src/prboom $(TARGET_DIR)/usr/games/prboom $(INSTALL) -D $(@D)/src/prboom-game-server $(TARGET_DIR)/usr/games/prboom-game-server -- cgit v1.2.3