diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libcoverart/Makefile | 6 | ||||
-rw-r--r-- | audio/nekobi-lv2/Makefile | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/audio/libcoverart/Makefile b/audio/libcoverart/Makefile index b1993ec2b38e..d0b82a32f04d 100644 --- a/audio/libcoverart/Makefile +++ b/audio/libcoverart/Makefile @@ -21,7 +21,9 @@ USE_LDCONFIG= yes CXXFLAGS+= -Wno-implicit-fallthrough -.if exists(/usr/lib/libstdc++.so) +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == gcc CXXFLAGS+= -Wno-unused-function -Wno-class-memaccess -Wno-catch-value CFLAGS+= -Wno-format-overflow .endif @@ -30,4 +32,4 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/cmake/modules/*.cmake -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/audio/nekobi-lv2/Makefile b/audio/nekobi-lv2/Makefile index e87be11f6e10..c7d81fd0708d 100644 --- a/audio/nekobi-lv2/Makefile +++ b/audio/nekobi-lv2/Makefile @@ -29,7 +29,9 @@ 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) +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == gcc post-patch: @${REINPLACE_CMD} -e 's/-mtune=generic -msse -msse2 //' \ ${WRKSRC}/dpf/Makefile.base.mk @@ -40,4 +42,4 @@ do-install: # https://github.com/DISTRHO/Nekobi/issues/8 cd ${WRKSRC}/bin && ${COPYTREE_SHARE} Nekobi.lv2 ${STAGEDIR}${PREFIX}/lib/lv2/ ${INSTALL_PROGRAM} ${WRKSRC}/bin/Nekobi ${STAGEDIR}${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> |