svn commit: r337153 - head/audio/musicpd

Chris Rees crees at FreeBSD.org
Sat Dec 21 16:52:12 UTC 2013


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)


More information about the svn-ports-head mailing list