svn commit: r492284 - head/audio/funktrackergold

Mark Linimon linimon at FreeBSD.org
Wed Feb 6 00:44:29 UTC 2019


Author: linimon
Date: Wed Feb  6 00:44:28 2019
New Revision: 492284
URL: https://svnweb.freebsd.org/changeset/ports/492284

Log:
  If compiling with base GCC, -fnested-functions needs to be passed.
  
  PR:		235541
  Submitted by:	Piotr Kubaj

Modified:
  head/audio/funktrackergold/Makefile

Modified: head/audio/funktrackergold/Makefile
==============================================================================
--- head/audio/funktrackergold/Makefile	Wed Feb  6 00:39:32 2019	(r492283)
+++ head/audio/funktrackergold/Makefile	Wed Feb  6 00:44:28 2019	(r492284)
@@ -15,9 +15,6 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BROKEN_armv6=		fails to compile: function definition is not allowed here
 BROKEN_armv7=		fails to compile: function definition is not allowed here
-BROKEN_mips=		fails to compile: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_mips64=		fails to compile: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to compile: nested functions are disabled, use -fnested-functions to re-enable
 
 USES=		compiler:nestedfct ncurses tar:tgz
 
@@ -29,6 +26,12 @@ PLIST_FILES=	bin/funkgold
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE:Mgcc}
+CFLAGS+=	-fnested-functions
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/funkgold ${STAGEDIR}${PREFIX}/bin
 
@@ -38,4 +41,4 @@ do-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list