svn commit: r519800 - in head/audio/stone-phaser-lv2: . files
Mark Linimon
linimon at FreeBSD.org
Wed Dec 11 13:13:15 UTC 2019
Author: linimon
Date: Wed Dec 11 13:13:14 2019
New Revision: 519800
URL: https://svnweb.freebsd.org/changeset/ports/519800
Log:
Fix build on GCC-based systems:
cc1plus: error: unrecognized command line option "-msse"
cc1plus: error: unrecognized command line option "-msse2"
cc1plus: error: unrecognized command line option "-std=gnu++0x"
The previous patchfile is now split into two, depending on whether
ARCH is x86 or not.
Since REINPLACE is now deprecated for this purpose, I could not
figure out any other way to do it.
Approved by: portmgr (tier-2 blanket)
Added:
head/audio/stone-phaser-lv2/files/extra-patch-dpf_Makefile.base.mk (contents, props changed)
head/audio/stone-phaser-lv2/files/extra-patch-nosse-dpf_Makefile.base.mk (contents, props changed)
Modified:
head/audio/stone-phaser-lv2/Makefile
Modified: head/audio/stone-phaser-lv2/Makefile
==============================================================================
--- head/audio/stone-phaser-lv2/Makefile Wed Dec 11 13:10:33 2019 (r519799)
+++ head/audio/stone-phaser-lv2/Makefile Wed Dec 11 13:13:14 2019 (r519800)
@@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= lv2>0:audio/lv2 \
bash:shells/bash
-USES= gmake gnome pkgconfig shebangfix xorg
+USES= compiler:c++0x gmake gnome pkgconfig shebangfix xorg
SHEBANG_GLOB= *.sh
USE_GITHUB= yes
GH_ACCOUNT= jpcima
@@ -30,4 +30,12 @@ CFLAGS+= -I${FILESDIR}
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/vst
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-dpf_Makefile.base.mk
+.else
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-nosse-dpf_Makefile.base.mk
+.endif
+
+.include <bsd.port.post.mk>
Added: head/audio/stone-phaser-lv2/files/extra-patch-dpf_Makefile.base.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/stone-phaser-lv2/files/extra-patch-dpf_Makefile.base.mk Wed Dec 11 13:13:14 2019 (r519800)
@@ -0,0 +1,11 @@
+--- dpf/Makefile.base.mk.orig 2019-09-28 00:18:08 UTC
++++ dpf/Makefile.base.mk
+@@ -106,7 +106,7 @@ endif
+ # Set build and link flags
+
+ BASE_FLAGS = -Wall -Wextra -pipe -MD -MP
+-BASE_OPTS = -O3 -ffast-math -mtune=generic -msse -msse2 -fdata-sections -ffunction-sections
++BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections
+
+ ifeq ($(MACOS),true)
+ # MacOS linker flags
Added: head/audio/stone-phaser-lv2/files/extra-patch-nosse-dpf_Makefile.base.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/stone-phaser-lv2/files/extra-patch-nosse-dpf_Makefile.base.mk Wed Dec 11 13:13:14 2019 (r519800)
@@ -0,0 +1,11 @@
+--- dpf/Makefile.base.mk.orig 2019-12-11 09:25:25 UTC
++++ dpf/Makefile.base.mk
+@@ -106,7 +106,7 @@ endif
+ # Set build and link flags
+
+ BASE_FLAGS = -Wall -Wextra -pipe -MD -MP
+-BASE_OPTS = -O3 -ffast-math -mtune=generic -msse -msse2 -fdata-sections -ffunction-sections
++BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections
+
+ ifeq ($(MACOS),true)
+ # MacOS linker flags
More information about the svn-ports-head
mailing list