From 87e60f9c74d95149588b3180b5b83f871775e37b Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Wed, 22 May 2013 18:39:37 +0000 Subject: [PATCH] Fix build with clang 3.3 --- audio/penguinsap/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/audio/penguinsap/Makefile b/audio/penguinsap/Makefile index 60e9d5a49d3b..0af3e41a7825 100644 --- a/audio/penguinsap/Makefile +++ b/audio/penguinsap/Makefile @@ -24,9 +24,13 @@ PLIST_FILES= bin/sap .include +_CLANG!= clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/' + .if ${CXX:T} != "clang++" +.if ${_CLANG} < 33 CXXFLAGS+= --no-exceptions .endif +.endif post-patch: @${REINPLACE_CMD} -e 's|linux/soundcard\.h|sys/soundcard\.h|' \