forked from Lainports/freebsd-ports
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)
This commit is contained in:
parent
fede9bb84e
commit
249992e1be
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue