diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-12-21 16:52:11 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-12-21 16:52:11 +0000 |
commit | 9440173253c7f750e273f703209817cf9e76373d (patch) | |
tree | 7f2959c32e75c4dc290784949058502292ea9aae /audio | |
parent | - Update from 0.40 to 0.41 (diff) |
Clang can build musicpd fine on FreeBSD 10+
PR: ports/185059
Submitted by: mat
Notes
Notes:
svn path=/head/; revision=337153
Diffstat (limited to 'audio')
-rw-r--r-- | audio/musicpd/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile index 4b542d3f9d40..04a2bbbf6a5c 100644 --- a/audio/musicpd/Makefile +++ b/audio/musicpd/Makefile @@ -15,17 +15,16 @@ LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/libmad \ 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) |