diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-05-26 03:29:04 +0800 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-05-26 03:29:04 +0800 |
commit | 6268dff47954c16afd474793b5b72403bac65ed6 (patch) | |
tree | ee692b90338315ead4a5fb27495bc2a13aa58a45 /audio | |
parent | 0fb4ca5449dea5ae795bdecc0fd98759849626f1 (diff) | |
download | freebsd-ports-gnome-6268dff47954c16afd474793b5b72403bac65ed6.tar.gz freebsd-ports-gnome-6268dff47954c16afd474793b5b72403bac65ed6.tar.zst freebsd-ports-gnome-6268dff47954c16afd474793b5b72403bac65ed6.zip |
audio/liquidsfz: fix build on GCC architectures
GCC defines those, causing error, move those to be set only with Clang::
<command-line>: error: duplicate 'unsigned'
<command-line>: error: declaration does not declare anything [-fpermissive]
<command-line>: error: duplicate 'unsigned'
<command-line>: error: declaration does not declare anything [-fpermissive]
Diffstat (limited to 'audio')
-rw-r--r-- | audio/liquidsfz/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/liquidsfz/Makefile b/audio/liquidsfz/Makefile index e1f88d088570..3d3b2b37065c 100644 --- a/audio/liquidsfz/Makefile +++ b/audio/liquidsfz/Makefile @@ -19,8 +19,6 @@ GNU_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= swesterfeld -CXXFLAGS+= -Duint=unsigned -Dregister=registerx - PLIST_FILES= bin/liquidsfz \ include/liquidsfz.hh \ lib/libliquidsfz.a \ @@ -29,7 +27,13 @@ PLIST_FILES= bin/liquidsfz \ lib/lv2/liquidsfz.lv2/manifest.ttl \ libdata/pkgconfig/liquidsfz.pc +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == clang +CXXFLAGS+= -Duint=unsigned -Dregister=registerx +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/liquidsfz.lv2/liquidsfz_lv2.so -.include <bsd.port.mk> +.include <bsd.port.post.mk> |