svn commit: r500667 - head/audio/nekobi-lv2

Piotr Kubaj pkubaj at FreeBSD.org
Thu May 2 15:38:46 UTC 2019


Author: pkubaj
Date: Thu May  2 15:38:45 2019
New Revision: 500667
URL: https://svnweb.freebsd.org/changeset/ports/500667

Log:
  audio/nekobi-lv2: fix build with GCC-based architectures
  
  This port requires C++11-compatible compiler to build on GCC architectures.
  
  Additionally, remove -mtune=generic -msse -msse2 on GCC architectures.
  
  PR:             D20112
  Approved by:    yuri (maintainer), mat (mentor)
  Differential Revision:  https://reviews.freebsd.org/D20112

Modified:
  head/audio/nekobi-lv2/Makefile

Modified: head/audio/nekobi-lv2/Makefile
==============================================================================
--- head/audio/nekobi-lv2/Makefile	Thu May  2 15:37:51 2019	(r500666)
+++ head/audio/nekobi-lv2/Makefile	Thu May  2 15:38:45 2019	(r500667)
@@ -16,7 +16,7 @@ BUILD_DEPENDS=	lv2>0:audio/lv2 \
 		bash:shells/bash
 LIB_DEPENDS=	libjack.so:audio/jack
 
-USES=		gl gmake localbase pkgconfig shebangfix
+USES=		compiler:c++11-lang gl gmake localbase pkgconfig shebangfix
 SHEBANG_FILES=	dpf/utils/generate-ttl.sh
 USE_GITHUB=	yes
 GH_ACCOUNT=	DISTRHO
@@ -28,6 +28,12 @@ USE_XORG=	x11
 
 CFLAGS+=	-I${FILESDIR}
 CFLAGS+=	-Wno-c++11-narrowing # clang prints errors: https://github.com/DISTRHO/Nekobi/issues/7
+
+.if exists(/usr/lib/libstdc++.so)
+post-patch:
+	@${REINPLACE_CMD} -e 's/-mtune=generic -msse -msse2 //' \
+		${WRKSRC}/dpf/Makefile.base.mk
+.endif
 
 do-install: # https://github.com/DISTRHO/Nekobi/issues/8
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/lv2


More information about the svn-ports-all mailing list