aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-03-26 05:50:41 +0800
committertijl <tijl@FreeBSD.org>2014-03-26 05:50:41 +0800
commit495a9928952091e0a3e10b9ecfa3d922f4698be7 (patch)
treedf64941c998925e64b4c6666e4c229e1fcae48c8 /multimedia
parent2767723cfbc7067f9dea9b0f02d963c5637a0851 (diff)
downloadfreebsd-ports-gnome-495a9928952091e0a3e10b9ecfa3d922f4698be7.tar.gz
freebsd-ports-gnome-495a9928952091e0a3e10b9ecfa3d922f4698be7.tar.zst
freebsd-ports-gnome-495a9928952091e0a3e10b9ecfa3d922f4698be7.zip
- Update gstreamer1-libav to version 1.2.3.
- USES=tar:xz. - Remove redundant configure args. - Only link with -Wl,-Bsymbolic where necessary. - Remove detection of SSE and MMX instruction set support. This enables support for various x86 extensions (SSE2, SSE3,...) in the i386 package. CPU support for these is detected at runtime except for MMX. So the i386 package requires at least a Pentium MMX now. (Does anybody play videos with gstreamer on a i486 or Pentium?) - Replace ARCH with LIBAV_ARCH everywhere so it doesn't conflict with our ARCH. [1] PR: ports/181964 [1]
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer1-libav/Makefile46
-rw-r--r--multimedia/gstreamer1-libav/distinfo4
2 files changed, 15 insertions, 35 deletions
diff --git a/multimedia/gstreamer1-libav/Makefile b/multimedia/gstreamer1-libav/Makefile
index a0e67ebbcefc..67a34ca7f1f9 100644
--- a/multimedia/gstreamer1-libav/Makefile
+++ b/multimedia/gstreamer1-libav/Makefile
@@ -3,13 +3,13 @@
# $MCom: ports/multimedia/gstreamer1-libav/Makefile,v 1.4 2013/01/15 21:43:45 kwm Exp $
PORTNAME= gstreamer1-libav
-PORTVERSION= 1.2.2
+PORTVERSION= 1.2.3
CATEGORIES= multimedia
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-libav/
DISTNAME= gst-libav-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
-COMMENT= GStreamer plug-in for manipulating MPEG video streams
+COMMENT= GStreamer plug-in with many audio/video decoders/encoders
LICENSE= GPLv2
@@ -17,38 +17,12 @@ BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
orc>=0.4.16:${PORTSDIR}/devel/orc
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc
-USE_XZ= yes
+USES= compiler gmake pkgconfig tar:xz
USE_LDCONFIG= yes
USE_GSTREAMER1= yes
GNU_CONFIGURE= yes
-USES= compiler:features gmake pkgconfig
-LIBAV_CONFIG= --cc=${CC} \
- --enable-runtime-cpudetect \
- --enable-pic
-LDFLAGS+= -Wl,-Bsymbolic
-
PLIST_SUB= VERSION="1.0"
-# sse hardware vector support
-.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
-WITH_BUILTIN_VECTOR= yes
-.else
-LIBAV_CONFIG+= --disable-sse
-.endif
-
-# mmx support
-.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
-LIBAV_CONFIG+= --disable-mmx
-WITHOUT_BUILTIN_VECTOR= yes
-.endif
-
-# builtin vector, requires mmx and sse
-.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR)
-CFLAGS+= -msse
-.endif
-
-CONFIGURE_ARGS+= --with-libav-extra-configure="${LIBAV_CONFIG}"
-
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900033
@@ -56,14 +30,20 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin
.endif
-.if ${ARCH} == powerpc64
-FFMPEG_CONFIG+= --arch=ppc64
-.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
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gstreamer-1.0/libgstlibav.so
diff --git a/multimedia/gstreamer1-libav/distinfo b/multimedia/gstreamer1-libav/distinfo
index d74b01963bfe..3918b31ceecb 100644
--- a/multimedia/gstreamer1-libav/distinfo
+++ b/multimedia/gstreamer1-libav/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gst-libav-1.2.2.tar.xz) = 585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418
-SIZE (gst-libav-1.2.2.tar.xz) = 4577584
+SHA256 (gst-libav-1.2.3.tar.xz) = ebc7fbe10955f40df6ccc4bf689075e7e296205fc7ecd8ff383d43c5cdf5bcd6
+SIZE (gst-libav-1.2.3.tar.xz) = 4582312