svn commit: r365632 - head/games/doomlegacy
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Aug 22 10:21:09 UTC 2014
Author: danfe
Date: Fri Aug 22 10:21:08 2014
New Revision: 365632
URL: http://svnweb.freebsd.org/changeset/ports/365632
QAT: https://qat.redports.org/buildarchive/r365632/
Log:
Unbreak on big-endian architectures (e.g., PowerPC).
Modified:
head/games/doomlegacy/Makefile
Modified: head/games/doomlegacy/Makefile
==============================================================================
--- head/games/doomlegacy/Makefile Fri Aug 22 10:02:21 2014 (r365631)
+++ head/games/doomlegacy/Makefile Fri Aug 22 10:21:08 2014 (r365632)
@@ -44,6 +44,11 @@ post-patch: .SILENT
# Provide better support for relative paths (for `-iwad' switch)
${REINPLACE_CMD} -e "s|s\[0\] ==[^)]*|strchr(s, '/')|" \
${WRKSRC}/d_main.c
+# Unbreak on big-endian architectures
+ ${REINPLACE_CMD} -e '150s|^|#include "m_swap.h"|' \
+ ${WRKSRC}/p_spec.c
+ ${REINPLACE_CMD} -e '60s|^|#include "m_swap.h"|' \
+ ${WRKSRC}/p_switch.c
.if ! ${PORT_OPTIONS:MIPX}
${REINPLACE_CMD} -e '/USE_IPX/s|define|undef|' ${WRKSRC}/doomdef.h
${REINPLACE_CMD} -e 's| -lipx||' ${WRKSRC}/Makefile
More information about the svn-ports-all
mailing list