summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multimedia/obs-qtwebkit/Makefile9
-rw-r--r--multimedia/obs-qtwebkit/files/patch-GNUmakefile2
2 files changed, 10 insertions, 1 deletions
diff --git a/multimedia/obs-qtwebkit/Makefile b/multimedia/obs-qtwebkit/Makefile
index c2a15988f19d..adb75bea601e 100644
--- a/multimedia/obs-qtwebkit/Makefile
+++ b/multimedia/obs-qtwebkit/Makefile
@@ -23,6 +23,15 @@ GH_TAGNAME= c01aa76
MAKEFILE= GNUmakefile
MAKE_ARGS= OBS_INCLUDE=${LOCALBASE}/include OBS_LIB=${LOCALBASE}/lib
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+CFLAGS+= -DNO_WARN_X86_INTRINSICS -maltivec -mvsx
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lang
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/GNUmakefile
diff --git a/multimedia/obs-qtwebkit/files/patch-GNUmakefile b/multimedia/obs-qtwebkit/files/patch-GNUmakefile
index 24af8cc0c878..d4d23348f2c2 100644
--- a/multimedia/obs-qtwebkit/files/patch-GNUmakefile
+++ b/multimedia/obs-qtwebkit/files/patch-GNUmakefile
@@ -9,7 +9,7 @@ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231108
endif
-CXXFLAGS = -std=c++11 -Wall -g -fPIC -I$(OBS_INCLUDE) -I./src $(shell pkg-config --cflags Qt5Widgets) $(shell pkg-config --cflags Qt5WebKit) $(shell pkg-config --cflags Qt5WebKitWidgets)
-+CXXFLAGS = -std=c++11 -Wall -g -fPIC -I$(OBS_INCLUDE) -I./src $(shell pkg-config --cflags Qt5Widgets) $(shell pkg-config --cflags Qt5WebKit) -I%%LOCALBASE%%/include/qt5/QtWebKitWidgets
++CXXFLAGS += -std=c++11 -Wall -g -fPIC -I$(OBS_INCLUDE) -I./src $(shell pkg-config --cflags Qt5Widgets) $(shell pkg-config --cflags Qt5WebKit) -I%%LOCALBASE%%/include/qt5/QtWebKitWidgets
CXX ?= c++
RM = /bin/rm -rf
LDFLAGS = -L$(OBS_LIB)