Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2019 09:36:01 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511074 - head/games/openomf
Message-ID:  <201909040936.x849a2dN066462@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Sep  4 09:36:01 2019
New Revision: 511074
URL: https://svnweb.freebsd.org/changeset/ports/511074

Log:
  games/openomf: Fix build with non-x86 (non-SSE) architectures
  
  SSE is only available on x86 platforms and forcing it breaks compilation on other platforms.
  
  Clang on 12.0-RELEASE on amd64 enables SSE by default anyway and not-specifying -msse allows to build this port on other, non-SSE architectures.
  
  Also add USES=sdl.
  
  PR:		240093
  Approved by:	devel@stasyan.com (maintainer), linimon (mentor)

Modified:
  head/games/openomf/Makefile

Modified: head/games/openomf/Makefile
==============================================================================
--- head/games/openomf/Makefile	Wed Sep  4 09:32:45 2019	(r511073)
+++ head/games/openomf/Makefile	Wed Sep  4 09:36:01 2019	(r511074)
@@ -19,8 +19,6 @@ LIB_DEPENDS=	libconfuse.so:devel/libconfuse \
 		libenet.so:net/enet
 EXTRACT_DEPENDS=	unrar:archivers/unrar
 
-BROKEN_powerpc64=	fails to compile: gcc5: error: unrecognized command line option '-msse'
-
 USE_GITHUB=	yes
 GH_ACCOUNT=	omf2097
 GH_TAGNAME=	c36c421
@@ -45,6 +43,8 @@ post-extract:
 post-patch:
 	${REINPLACE_CMD} -e 's,%%PREFIX%%,"${PREFIX}",g' \
 		${WRKSRC}/src/resources/pathmanager.c
+	${REINPLACE_CMD} -e 's,-msse ,,' \
+		${WRKSRC}/external/dumb/dumb/cmake/CMakeLists.txt
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/openomf ${STAGEDIR}${PREFIX}/bin



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