svn commit: r473698 - head/emulators/simh
Mark Linimon
linimon at FreeBSD.org
Mon Jul 2 03:08:58 UTC 2018
Author: linimon
Date: Mon Jul 2 03:08:57 2018
New Revision: 473698
URL: https://svnweb.freebsd.org/changeset/ports/473698
Log:
Attempt to see if the build can be fixed on non-clang-based archs.
Approved by: portmgr (tier-2 blanket)
Modified:
head/emulators/simh/Makefile
Modified: head/emulators/simh/Makefile
==============================================================================
--- head/emulators/simh/Makefile Mon Jul 2 03:08:02 2018 (r473697)
+++ head/emulators/simh/Makefile Mon Jul 2 03:08:57 2018 (r473698)
@@ -17,13 +17,11 @@ COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, S
LICENSE= BSD3CLAUSE
-BROKEN_powerpc64= fails to compile: cc1: error: unrecognized command line option "-Wno-logical-op-parentheses"
-
NO_WRKSUBDIR= yes
USES= gmake dos2unix zip
DOS2UNIX_GLOB= *.c *.h *.txt *.mak *.ini makefile
-CFLAGS+= -Wno-format-extra-args -Wno-comment -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-shift-negative-value
+CFLAGS+= -Wno-format-extra-args -Wno-comment
MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
MAKEFILE= makefile
@@ -34,6 +32,12 @@ PORTDOCS= ${READMES} pdf/*
OPTIONS_DEFINE= DOCS
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386
+CFLAGS+= -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-shift-negative-value
+.endif
+
pre-patch:
@${MKDIR} ${WRKSRC}/BIN
@@ -61,4 +65,4 @@ do-install-DOCS-on:
(cd ${WRKSRC} && ${INSTALL_DATA} ${READMES} ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdf ${STAGEDIR}${DOCSDIR})
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list