Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2018 14:36:48 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473386 - head/audio/cmus
Message-ID:  <201806261436.w5QEam8n059340@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Jun 26 14:36:48 2018
New Revision: 473386
URL: https://svnweb.freebsd.org/changeset/ports/473386

Log:
  audio/cmus: Fix build on powerpc
  
  checking for successful build of ffmpeg.c...
  cc1: error: unrecognized command line option "-std=gnu11"
  no
  configure failed.
  
  track_info.o: In function `track_info_new':
  track_info.c:(.text+0x2c): undefined reference to `__atomic_fetch_add_8'
  
  Allow build on powerpc64 again as the error in BROKEN looks to be
  same as the first error on powerc.

Modified:
  head/audio/cmus/Makefile

Modified: head/audio/cmus/Makefile
==============================================================================
--- head/audio/cmus/Makefile	Tue Jun 26 13:16:07 2018	(r473385)
+++ head/audio/cmus/Makefile	Tue Jun 26 14:36:48 2018	(r473386)
@@ -18,11 +18,9 @@ COMMENT=	Console-based music player with really cool f
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_powerpc64=	fails to configure: checking for successful build of ffmpeg.c... no
-
+USES=		compiler:c11 gmake iconv ncurses pkgconfig
 USE_GITHUB=	yes
 
-USES=		gmake iconv ncurses pkgconfig
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	prefix=${PREFIX} mandir=${MANPREFIX}/man \
 		exampledir=${EXAMPLESDIR}
@@ -31,7 +29,8 @@ CONFIGURE_ARGS=	prefix=${PREFIX} mandir=${MANPREFIX}/m
 CONFIGURE_ARGS+=	HOSTCC=${CC}
 
 # Verbose build makes it easier to spot problems
-MAKE_ARGS=	V=2
+MAKE_ARGS=	V=2 ${MAKE_ARGS_${ARCH:U}}
+MAKE_ARGS_powerpc=	COMPAT_LIBS="-latomic" # undefined reference to `__atomic_fetch_add_8'
 
 # Disable all configure options first.  These will be overwritten by
 # enabled port options later.  The args to cmus' configure script



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