diff options
author | pkubaj <pkubaj@FreeBSD.org> | 2019-09-04 17:36:01 +0800 |
---|---|---|
committer | pkubaj <pkubaj@FreeBSD.org> | 2019-09-04 17:36:01 +0800 |
commit | df9615b4e16ff44dcb9aa815681afead71add842 (patch) | |
tree | 9afee734b57168798eda9852f3d371df9c3e6cc5 /games | |
parent | fd585e2b677d5b38bf85bb3b7b6602ea5ea33efd (diff) | |
download | freebsd-ports-gnome-df9615b4e16ff44dcb9aa815681afead71add842.tar.gz freebsd-ports-gnome-df9615b4e16ff44dcb9aa815681afead71add842.tar.zst freebsd-ports-gnome-df9615b4e16ff44dcb9aa815681afead71add842.zip |
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)
Diffstat (limited to 'games')
-rw-r--r-- | games/openomf/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/openomf/Makefile b/games/openomf/Makefile index d7af1ca20250..dc73b5bea7ca 100644 --- a/games/openomf/Makefile +++ b/games/openomf/Makefile @@ -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 |