mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 18:36:28 -04:00
audio/string-machine-lv2: Fix build on non-x86
PR: 239470 Reported by: pkubaj
This commit is contained in:
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
|
@ -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 \
|
||||
|
|
11
audio/string-machine-lv2/files/patch-dpf_Makefile.base.mk
Normal file
11
audio/string-machine-lv2/files/patch-dpf_Makefile.base.mk
Normal 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
|
Loading…
Add table
Reference in a new issue