Date: Tue, 9 Apr 2019 18:02:37 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r498488 - head/multimedia/kissdx Message-ID: <201904091802.x39I2bTg007944@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904091802.x39I2bTg007944>