blob: 4ac0fa06d079829a592ae70804f7bae44d8ee899 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# $FreeBSD$
PORTNAME= obs-studio
DISTVERSION= 26.0.2
CATEGORIES= multimedia
MAINTAINER= yuri@FreeBSD.org
COMMENT= Open source streaming/recording software
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_i386= https://github.com/obsproject/obs-browser/issues/241
BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat \
swig:devel/swig
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libcurl.so:ftp/curl \
libdbus-1.so:devel/dbus \
libfdk-aac.so:audio/fdk-aac \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libjack.so:audio/jack \
libjansson.so:devel/jansson \
libmbedtls.so:security/mbedtls \
libpulse.so:audio/pulseaudio \
libspeexdsp.so:audio/speexdsp \
libsysinfo.so:devel/libsysinfo \
libudev.so:devel/libudev-devd \
libv4l2.so:multimedia/libv4l \
libvlc.so:multimedia/vlc \
libx264.so:multimedia/libx264 \
${LIB_DEPENDS_${ARCH}}
LIB_DEPENDS_amd64= libluajit-5.1.so:lang/luajit
LIB_DEPENDS_armv7= libluajit-5.1.so:lang/luajit
LIB_DEPENDS_i386= libluajit-5.1.so:lang/luajit
LIB_DEPENDS_powerpc= libluajit-5.1.so:lang/luajit
LIB_DEPENDS_powerpc64= libluajit-5.1.so:lang/luajit-openresty
USES= cmake gl lua pkgconfig python:3.4+ qt:5 xorg
USE_GITHUB= yes
GH_ACCOUNT= obsproject
USE_QT= core gui svg widgets x11extras xml buildtools_build imageformats_run qmake_build
USE_GL= gl
USE_XORG= ice sm x11 xcb xcomposite xext xfixes xinerama xrandr
USE_LDCONFIG= yes
CMAKE_ON= UNIX_STRUCTURE
CMAKE_ARGS= -DOBS_VERSION_OVERRIDE:STRING="${PORTVERSION}"
CFLAGS+= -D_WITH_GETLINE
LDFLAGS+= -fPIC # pending https://github.com/obsproject/obs-studio/issues/3436
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lib
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} != amd64 && ${ARCH} != armv7 && ${ARCH} != i386 && ${ARCH} != powerpc && ${ARCH} != powerpc64
PLIST_SUB+= LUAJIT="@comment "
.else
PLIST_SUB+= LUAJIT=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's| 3.4)| ${PYTHON_VER})|' \
${WRKSRC}/cmake/Modules/FindPythonDeps.cmake
post-install:
# https://github.com/obsproject/obs-studio/issues/2625
${INSTALL_DATA} ${WRKSRC}/UI/obs-frontend-api/obs-frontend-api.h ${STAGEDIR}${PREFIX}/include/obs
# https://github.com/obsproject/obs-studio/issues/2647 (only for multimedia/obs-audio-spectralizer, should be removed later)
${INSTALL_DATA} ${WRKSRC}/cmake/Modules/ObsHelpers.cmake ${STAGEDIR}${PREFIX}/lib/cmake
${INSTALL_DATA} ${WRKSRC}/cmake/external/ObsPluginHelpers.cmake ${STAGEDIR}${PREFIX}/lib/cmake
.include <bsd.port.post.mk>
|