mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
audio/string-machine-lv2: Fix build on non-x86
PR: 239470 Reported by: pkubaj
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user