svn commit: r511074 - head/games/openomf
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Sep 4 09:36:02 UTC 2019
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 at 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
More information about the svn-ports-all
mailing list