summaryrefslogtreecommitdiff
path: root/multimedia/obs-qtwebkit/Makefile
blob: 56f06f2fa78f3756b4193e88506f662b4d48877d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

PORTNAME=	obs-qtwebkit
PORTVERSION=	g2018090201
PORTREVISION=	2
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

.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

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 <bsd.port.mk>