freebsd-ports/multimedia/obs-studio/Makefile
Raphael Kubo da Costa d293a4b8f6 Finish fixing broken ports after r404856 and r404694.
* multimedia/obs-studio:
  Import some upstream commits that pass all required include directories to
  the compiler and reference libsysinfo.so with a full path instead of passing
  -lsysinfo and relying on ${LOCALBASE}/lib being in the linker search path.

* textproc/sigil:
  Pass LDFLAGS+=${LOCALBASE}/lib for now to work around the fact that
  upstream's build system references libhunspell-1.3.so and libpcre16.so
  without full paths (instead of finding them with the proper CMake commands it
  relies on pkg-config's output).

* x11/antimicro:
  Also pass LDFLAGS+=${LOCALBASE}/lib for now to work around the fact that
  several X11 and SDL2 libraries are referenced without full paths. I sent a
  pull request upstream to fix the X11 references, but SDL2 is still detected
  through pkg-config.

MFH:	2015Q4
2015-12-30 17:45:32 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= obs-studio
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= kmoore@FreeBSD.org
COMMENT= Open Broadcaster Software Multiplatform
LICENSE= GPLv2
LIB_DEPENDS= libsysinfo.so:${PORTSDIR}/devel/libsysinfo \
libx264.so:${PORTSDIR}/multimedia/libx264 \
libv4l2.so:${PORTSDIR}/multimedia/libv4l \
libpulse.so:${PORTSDIR}/audio/pulseaudio \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
libfdk-aac.so:${PORTSDIR}/audio/fdk-aac
BUILD_DEPENDS= v4l_compat>=0:${PORTSDIR}/multimedia/v4l_compat
BROKEN_FreeBSD_9= does not build
USE_XORG= x11 xcomposite xdamage xrender
USE_XCB= x11extras wm
USE_LDCONFIG= yes
USE_GL+= gl
USE_QT5= core dbus gui opengl network svg multimedia \
imageformats buildtools qmake x11extras
CFLAGS+= -fPIC
LDFLAGS+= ${LOCALBASE}/lib/libsysinfo.so
USES= cmake compiler:c11
CMAKE_ARGS+= -DUNIX_STRUCTURE=1 \
-DOBS_VERSION_OVERRIDE=${PORTVERSION}
INSTALLS_ICONS= yes
USE_GITHUB= yes
GH_ACCOUNT= jp9000
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||' \
${CONFIGURE_WRKSRC}/deps/glad/CMakeLists.txt
.include <bsd.port.mk>