Bug 185059 - [patch] audio/musicpd: gcc, configure options
Summary: [patch] audio/musicpd: gcc, configure options
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-21 08:50 UTC by Matthieu Volat
Modified: 2013-12-21 17:00 UTC (History)
0 users

See Also:


Attachments
file.diff (614 bytes, patch)
2013-12-21 08:50 UTC, Matthieu Volat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Volat 2013-12-21 08:50:00 UTC
Last update of audio/musicpd will build without needing a "modern" gcc on freebsd 10 using clang and base libc++. While this was not tested, it may also work with base/clang in the 9.x series.

In that case the --disable-alsa argument should be passed to the configure, the alsa backend do not compile with clang and is mostly useless, I guess.

Fix: Patch tentative :
How-To-Repeat: Described above
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-21 08:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->crees

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-21 16:52:18 UTC
Author: crees
Date: Sat Dec 21 16:52:11 2013
New Revision: 337153
URL: http://svnweb.freebsd.org/changeset/ports/337153

Log:
  Clang can build musicpd fine on FreeBSD 10+
  
  PR:		ports/185059
  Submitted by:	mat

Modified:
  head/audio/musicpd/Makefile

Modified: head/audio/musicpd/Makefile
==============================================================================
--- head/audio/musicpd/Makefile	Sat Dec 21 16:10:49 2013	(r337152)
+++ head/audio/musicpd/Makefile	Sat Dec 21 16:52:11 2013	(r337153)
@@ -15,17 +15,16 @@ LIB_DEPENDS+=	libmad.so:${PORTSDIR}/audi
 		libcurl.so:${PORTSDIR}/ftp/curl
 
 USES=		gmake pkgconfig
-USE_GCC=	4.7+
 USE_XZ=		yes
 GNU_CONFIGURE=	yes
 USE_GNOME=	glib20
 
 USE_RC_SUBR=	${PORTNAME}
+CONFIGURE_ARGS+=--disable-alsa
+CFLAGS+=	-I${PREFIX}/include
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-CFLAGS+=	-I${PREFIX}/include
-
 DOCSDIR?=	${PREFIX}/share/doc/musicpd
 PORTDOCS=	AUTHORS README COPYING NEWS UPGRADING
 
@@ -60,6 +59,12 @@ SUB_LIST+=	MPDDIR=${MPDDIR}
 IGNORE=Please remove the MPDCONF line from make.conf, then rename ${PREFIX}/etc/${MPDCONF} to musicpd.conf, if it exists
 .endif
 
+.if ${OSVERSION} < 1000054
+USE_GCC=	4.7+
+.else
+USES+=		compiler:c++11-lang
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if exists(${PREFIX}/etc/mpd.conf)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Chris Rees freebsd_committer freebsd_triage 2013-12-21 16:52:37 UTC
State Changed
From-To: open->closed

Committed. Thanks!