From 99251d3a6ca01ffab37b8a55c5db7b379d26b3dc Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Mon, 3 Sep 2018 13:17:06 +0000 Subject: multimedia/obs-qtwebkit: create port This is a browser source plugin for obs-studio (https://github.com/jp9000/obs-studio) based on QtWebkit library. It allows using web content as a source in obs-studio. WWW: https://github.com/swills/obs-qtwebkit --- multimedia/obs-qtwebkit/Makefile | 36 +++++++++++++++++++++++++ multimedia/obs-qtwebkit/distinfo | 3 +++ multimedia/obs-qtwebkit/files/patch-GNUmakefile | 15 +++++++++++ multimedia/obs-qtwebkit/pkg-descr | 5 ++++ multimedia/obs-qtwebkit/pkg-plist | 18 +++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 multimedia/obs-qtwebkit/Makefile create mode 100644 multimedia/obs-qtwebkit/distinfo create mode 100644 multimedia/obs-qtwebkit/files/patch-GNUmakefile create mode 100644 multimedia/obs-qtwebkit/pkg-descr create mode 100644 multimedia/obs-qtwebkit/pkg-plist (limited to 'multimedia/obs-qtwebkit') diff --git a/multimedia/obs-qtwebkit/Makefile b/multimedia/obs-qtwebkit/Makefile new file mode 100644 index 000000000000..809b66be5376 --- /dev/null +++ b/multimedia/obs-qtwebkit/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= obs-qtwebkit +PORTVERSION= g2018090201 +CATEGORIES= multimedia + +MAINTAINER= swills@FreeBSD.org +COMMENT= Browser source plugin for obs-studio + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libobs.so:multimedia/obs-studio \ + libinotify.so:devel/libinotify + +USES= gmake pkgconfig qt:5 +USE_QT= core gui network webkit widgets + +USE_GITHUB= yes +GH_ACCOUNT= swills +GH_TAGNAME= c01aa76 +MAKEFILE= GNUmakefile +MAKE_ARGS= OBS_INCLUDE=${LOCALBASE}/include OBS_LIB=${LOCALBASE}/lib + +post-patch: + @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/GNUmakefile + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/obs-plugins/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/obs/obs-plugins/qtwebkit-browser/data/locale + ${INSTALL_PROGRAM} ${WRKSRC}/build/qtwebkit-browser.so ${STAGEDIR}${PREFIX}/lib/obs-plugins/ + ${INSTALL_PROGRAM} ${WRKSRC}/build/renderer ${STAGEDIR}${PREFIX}/lib/obs-plugins/ + cd ${WRKSRC}/build/qtwebkit-browser/data/locale ; ${COPYTREE_SHARE} . \ + ${STAGEDIR}${PREFIX}/share/obs/obs-plugins/qtwebkit-browser/data/locale + +.include diff --git a/multimedia/obs-qtwebkit/distinfo b/multimedia/obs-qtwebkit/distinfo new file mode 100644 index 000000000000..48a189199d2c --- /dev/null +++ b/multimedia/obs-qtwebkit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1535926470 +SHA256 (swills-obs-qtwebkit-g2018090201-c01aa76_GH0.tar.gz) = cd73bb03b7a5bc6f5524a3c9e70f5bc44c0fe58179ddf86034887f3c72c88300 +SIZE (swills-obs-qtwebkit-g2018090201-c01aa76_GH0.tar.gz) = 14629 diff --git a/multimedia/obs-qtwebkit/files/patch-GNUmakefile b/multimedia/obs-qtwebkit/files/patch-GNUmakefile new file mode 100644 index 000000000000..24af8cc0c878 --- /dev/null +++ b/multimedia/obs-qtwebkit/files/patch-GNUmakefile @@ -0,0 +1,15 @@ +Temporary, see: + +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231108 + +--- GNUmakefile.orig 2018-09-02 22:04:19 UTC ++++ GNUmakefile +@@ -5,7 +5,7 @@ ifndef OBS_LIB + OBS_LIB = /usr/lib + 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 + CXX ?= c++ + RM = /bin/rm -rf + LDFLAGS = -L$(OBS_LIB) diff --git a/multimedia/obs-qtwebkit/pkg-descr b/multimedia/obs-qtwebkit/pkg-descr new file mode 100644 index 000000000000..fa1420431d44 --- /dev/null +++ b/multimedia/obs-qtwebkit/pkg-descr @@ -0,0 +1,5 @@ +This is a browser source plugin for obs-studio +(https://github.com/jp9000/obs-studio) based on QtWebkit library. This plugin +is for Linux and FreeBSD only. + +WWW: https://github.com/swills/obs-qtwebkit diff --git a/multimedia/obs-qtwebkit/pkg-plist b/multimedia/obs-qtwebkit/pkg-plist new file mode 100644 index 000000000000..4ba72583a104 --- /dev/null +++ b/multimedia/obs-qtwebkit/pkg-plist @@ -0,0 +1,18 @@ +lib/obs-plugins/qtwebkit-browser.so +lib/obs-plugins/renderer +share/obs/obs-plugins/qtwebkit-browser/data/locale/de-DE.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/en-US.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/es-ES.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/fi-FI.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/fr-FR.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/he-IL.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/it-IT.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/ja-JP.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/ko-KR.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/nl-NL.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/pl-PL.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/pt-BR.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/pt-PT.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/ru-RU.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/sv-SE.ini +share/obs/obs-plugins/qtwebkit-browser/data/locale/zh-CN.ini -- cgit v1.2.3