Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2019 18:07:30 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r498489 - branches/2019Q2/multimedia/kissdx
Message-ID:  <201904091807.x39I7URO008391@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Tue Apr  9 18:07:29 2019
New Revision: 498489
URL: https://svnweb.freebsd.org/changeset/ports/498489

Log:
  MFH: r498488
  
  Add -fnested-functions to CFLAGS when using base GCC to fix build.
  
  While here, pet portlint.
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  branches/2019Q2/multimedia/kissdx/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/multimedia/kissdx/Makefile
==============================================================================
--- branches/2019Q2/multimedia/kissdx/Makefile	Tue Apr  9 18:02:36 2019	(r498488)
+++ branches/2019Q2/multimedia/kissdx/Makefile	Tue Apr  9 18:07:29 2019	(r498489)
@@ -13,14 +13,12 @@ COMMENT=	Multimedia streaming server for KiSS/Linksys 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libgd.so:graphics/gd \
-		libdvdread.so:multimedia/libdvdread
-
 BROKEN_armv6=		fails to compile: kissdx.c: function definition is not allowed here
 BROKEN_armv7=		fails to compile: kissdx.c: function definition is not allowed here
-BROKEN_mips64=		fails to compile: kissdx.c: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to compile: kissdx.c: nested functions are disabled, use -fnested-functions to re-enable
 
+LIB_DEPENDS=	libgd.so:graphics/gd \
+		libdvdread.so:multimedia/libdvdread
+
 USES=		compiler:nestedfct dos2unix iconv jpeg
 MAKE_ENV=	FreeBSD=defined
 
@@ -44,6 +42,10 @@ post-patch:
 		's|-liconv|${ICONV_LIB}| ; \
 		 s|^\.o :|${PORTNAME}: $$(OBJS)| ; \
 		 /^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile
+
+.if exists(/usr/lib/libstdc++.so)
+CFLAGS+=	-fnested-functions
+.endif
 
 pre-build:
 	@${RM} ${WRKSRC}/kissdx.o



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904091807.x39I7URO008391>