audio/string-machine-lv2: Fix build on non-x86

PR:		239470
Reported by:	pkubaj
This commit is contained in:
Yuri Victorovich 2019-07-27 06:01:44 +00:00
parent 30cefbba7e
commit 349d62750f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=507381
2 changed files with 19 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= string-machine
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.0
PORTREVISION= 1
CATEGORIES= audio
PKGNAMESUFFIX= -lv2
@ -15,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= lv2>0:audio/lv2 \
${LOCALBASE}/include/boost/intrusive/list.hpp:devel/boost-libs
USES= gmake gnome localbase pkgconfig
USES= compiler:c++0x gmake gnome localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= jpcima
GH_TUPLE= DISTRHO:DPF:7a056bb:d/dpf
@ -24,6 +25,12 @@ USE_XORG= x11
CFLAGS+= -I${FILESDIR} -pthread
SIMD_CFLAGS_i386= "-msse -mfpmath=sse"
SIMD_CFLAGS_amd64= "-msse2 -mfpmath=sse"
SIMD_CFLAGS_armv7= "-march=armv7 -mfpu=vfpv3"
MAKE_ARGS= SIMD_CFLAGS=${SIMD_CFLAGS_${ARCH}}
PLIST_FILES= lib/lv2/string-machine.lv2/manifest.ttl \
lib/lv2/string-machine.lv2/presets.ttl \
lib/lv2/string-machine.lv2/string-machine.so \

View file

@ -0,0 +1,11 @@
--- dpf/Makefile.base.mk.orig 2019-07-27 05:51:19 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 $(SIMD_CFLAGS) -fdata-sections -ffunction-sections
ifeq ($(MACOS),true)
# MacOS linker flags