Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2014 10:21:09 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r365632 - head/games/doomlegacy
Message-ID:  <201408221021.s7MAL9m9055470@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408221021.s7MAL9m9055470>