freebsd-ports/multimedia/gstreamer1-libav/Makefile
Aoek 905dfe641b multimedia/gstreamer1-libav: Fix build on aarch64
Fix build on aarch64 when FFMPEG option is off.
This is similar to the fix in multimedia/ffmpeg: svn port r507608

PR:		256935
Approved by:	portmgr (build fix blanket)
2021-07-18 17:14:44 +02:00

48 lines
1.2 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}
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 libtool localbase \
pkgconfig python:build tar:xz
USE_LDCONFIG= yes
USE_GSTREAMER1= 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>