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
This commit is contained in:
parent
08bb75576c
commit
73c8ff9908
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=500667
@ -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
|
||||
@ -29,6 +29,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
|
||||
cd ${WRKSRC}/bin && ${COPYTREE_SHARE} Nekobi.lv2 ${STAGEDIR}${PREFIX}/lib/lv2/
|
||||
|
Loading…
Reference in New Issue
Block a user