freebsd-ports/multimedia/obs-studio/Makefile
Kubilay Kocak 9b08af5e1a multimedia/{lib}x264: Update to 0.144.2533 and major refactor
- Update to 0.144.2533 (from upstream stable branch) [1]
- Switch x264 and libx264 ports to master/slave ports respectively
- Bump PORTREVISION for dependent ports as the shared library version
  has changed.

multimedia/x264:

- Clean up and update "updating instructions" in Makefile header
- Tweak COMMENT
- Only LIB_DEPENDS on libx264 and add PLIST_FILES if this isn't the
  libx264 port.
- Allow COMMENT, USES, OPTIONS_*, CONFIGURE_ARGS to be overriden in
  libx264 port.
- Place common configure arguments in a CONFIGURE_COMMON_ARGS variable
  to make overriding values without duplication easier.
- Use --prefix configure argument over post-patch replacements
- Enable stripping of binaries and libraries if DEBUG is off. Remove
  post-install target STRIP_CMD accordingly.

- Delete patch-Makefile in favour of patching WRKSRC/configure to
  identify amd64, arm64 and mipsn32. powerpc and powerpc64 are now
  covered upstream without needing patches.

- Patch out a bogus compiler argument check (cc_check) that results
  in -Wno-maybe-uninitialized being added to CFLAGS causing causes
  warnings when clang is cc. The cc_check function checks for basename
  $CC to identify compiler type (icl, clang, gcc, etc).

multimedia/libx264:

- Remove all Makefile entries that are duplicated or common and found
  in the master port (x264).
- Set lib as the PKGNAMEPREFIX
- Tweak COMMENT
- Delete upstreamed ARM patches [1]
- Delete all but one patch, as they duplicate those in x264.
- Dont remove pkgconfig/libdata directory

Changes:

  https://git.videolan.org/?p=x264.git;a=shortlog;h=refs/heads/stable

Based on:

PR:		201260 [1]
Submitted by:	Andrey Cherkashin <andoriyu gmail com> [1]
2015-07-03 07:02:44 +00:00

42 lines
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+= -lsysinfo
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>