freebsd-ports/multimedia/gstreamer1-libav/Makefile
Tijl Coosemans 12d6142f76 - Update gstreamer1-libav to 1.2.4 (fixes crashes when seeking).
- USES=libtool, INSTALL_TARGET=install-strip
- Replace tiny pkg-plist with PLIST_FILES.

PR:		ports/188133, ports/188803
2014-04-20 13:11:35 +00:00

48 lines
1.4 KiB
Makefile

# Created by: Koop Mast <kwm@rainbow-runner.nl>
# $FreeBSD$
# $MCom: ports/multimedia/gstreamer1-libav/Makefile,v 1.4 2013/01/15 21:43:45 kwm Exp $
PORTNAME= gstreamer1-libav
PORTVERSION= 1.2.4
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= GPLv2
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
orc>=0.4.16:${PORTSDIR}/devel/orc
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc
USES= compiler gmake libtool pkgconfig tar:xz
USE_LDCONFIG= yes
USE_GSTREAMER1= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
PLIST_FILES= lib/gstreamer-1.0/libgstlibav.so
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900033 || ${ARCH} == ia64
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin
.endif
.if ${COMPILER_TYPE} == "gcc"
CFLAGS+= -fno-force-addr
.endif
post-patch:
@${REINPLACE_CMD} 's/[[:<:]]ARCH[[:>:]]/LIBAV_ARCH/' \
${WRKSRC}/gst-libs/ext/libav/Makefile \
${WRKSRC}/gst-libs/ext/libav/common.mak \
${WRKSRC}/gst-libs/ext/libav/configure \
${WRKSRC}/gst-libs/ext/libav/libavcodec/Makefile \
${WRKSRC}/gst-libs/ext/libav/library.mak
@${REINPLACE_CMD} '/libgstlibav_la_LDFLAGS =/s/$$/ -Wl,-Bsymbolic/' \
${WRKSRC}/ext/libav/Makefile.in
.include <bsd.port.post.mk>