svn commit: r498488 - head/multimedia/kissdx

Mark Linimon linimon at FreeBSD.org
Tue Apr 9 18:02:38 UTC 2019


Author: linimon
Date: Tue Apr  9 18:02:36 2019
New Revision: 498488
URL: https://svnweb.freebsd.org/changeset/ports/498488

Log:
  Add -fnested-functions to CFLAGS when using base GCC to fix build.
  
  While here, pet portlint.

Modified:
  head/multimedia/kissdx/Makefile

Modified: head/multimedia/kissdx/Makefile
==============================================================================
--- head/multimedia/kissdx/Makefile	Tue Apr  9 18:00:27 2019	(r498487)
+++ head/multimedia/kissdx/Makefile	Tue Apr  9 18:02:36 2019	(r498488)
@@ -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


More information about the svn-ports-all mailing list