freebsd-ports/multimedia/gstreamer1-libav/Makefile
Tobias C. Berner ca3f925d6e framework: convert bsd.gstreamer.mk to Uses/gstreamer.mk
- convert bsd.gstreamer.mk to Uses/gstreamer.mk
- convert ports tree to make use of USES=gstreamer
- remove duplicate dependency lines from the tree

Differential Revision: https://reviews.freebsd.org/D35097
2022-04-30 10:03:20 +02:00

50 lines
1.3 KiB
Makefile

# Created by: Koop Mast <kwm@rainbow-runner.nl>
PORTNAME= gstreamer1-libav
PORTVERSION= 1.16.2
CATEGORIES= multimedia
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-libav/
DISTNAME= gst-libav-${PORTVERSION}
PATCH_SITES= https://gitlab.freedesktop.org/gstreamer/gst-libav/-/commit/
PATCHFILES+= 07b43c727c9a.patch:-p1 # https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/127
MAINTAINER= multimedia@FreeBSD.org
COMMENT= GStreamer plug-in with many audio/video decoders/encoders
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
BUILD_DEPENDS= orc>=0.4.16:devel/orc
LIB_DEPENDS= liborc-0.4.so:devel/orc
PORTSCOUT= limitw:1,even
USES= compiler:features gettext-runtime gmake gnome gstreamer libtool localbase \
pkgconfig python:build tar:xz
USE_LDCONFIG= yes
USE_GNOME= glib20
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= FFMPEG
OPTIONS_DEFAULT=FFMPEG
FFMPEG_DESC?= Use system ffmpeg instead of internal libav
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_WITH= system-libav
FFMPEG_BUILD_DEPENDS_OFF= nasm:devel/nasm
FFMPEG_MAKE_ENV_OFF= V=1
FFMPEG_VARS_OFF+= NOPRECIOUSMAKEVARS=yes # ARCH
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MFFMPEG)
LDFLAGS_aarch64= -Wl,-z,notext
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||g' \
${WRKSRC}/configure
.include <bsd.port.mk>