ports/183129: Make gstreamer-ffmpeg and gstreamer1-libav build on ppc64
Justin Hibbits
jhibbits at FreeBSD.org
Sun Oct 20 21:30:00 UTC 2013
>Number: 183129
>Category: ports
>Synopsis: Make gstreamer-ffmpeg and gstreamer1-libav build on ppc64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 20 21:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Justin Hibbits
>Release: 10-CURRENT
>Organization:
>Environment:
>Description:
Having the exact same fix between the two, I combined both into one:
These two ports require an extra argument to build properly on powerpc64. The attached patch fixes it.
>How-To-Repeat:
>Fix:
Patch attached. Adds an extra FFMPEG_CONFIG/LIBAV_CONFIG argument, to force the arch to ppc64
Patch attached with submission follows:
--- gst1-libav-Makefile 2013-10-20 14:22:18.901666857 -0700
+++ ./multimedia/gstreamer1-libav/Makefile 2013-10-17 17:33:37.000000000 -0700
@@ -1,5 +1,5 @@
# Created by: Koop Mast <kwm at rainbow-runner.nl>
-# $FreeBSD$
+# $FreeBSD: multimedia/gstreamer1-libav/Makefile 327747 2013-09-20 20:57:48Z bapt $
# $MCom: ports/multimedia/gstreamer1-libav/Makefile,v 1.4 2013/01/15 21:43:45 kwm Exp $
PORTNAME= gstreamer1-libav
@@ -38,6 +38,10 @@
LIBAV_CONFIG+= --disable-sse
.endif
+.if ${MACHINE_ARCH} == "powerpc64"
+LIBAV_CONFIG+= --arch=ppc64
+.endif
+
# mmx support
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
LIBAV_CONFIG+= --disable-mmx
--- gst-ffmpeg-Makefile 2013-10-20 14:22:55.480662294 -0700
+++ ./multimedia/gstreamer-ffmpeg/Makefile 2013-10-17 17:32:56.000000000 -0700
@@ -1,5 +1,5 @@
# Created by: Koop Mast <kwm at rainbow-runner.nl>
-# $FreeBSD$
+# $FreeBSD: multimedia/gstreamer-ffmpeg/Makefile 327747 2013-09-20 20:57:48Z bapt $
# $MCom: ports/multimedia/gstreamer-ffmpeg/Makefile,v 1.14 2006/07/20 13:40:27 ahze Exp $
PORTNAME= gstreamer
@@ -45,6 +45,10 @@
FFMPEG_CONFIG+= --disable-sse
.endif
+.if ${MACHINE_ARCH} == "powerpc64"
+FFMPEG_CONFIG+= --arch=ppc64
+.endif
+
# mmx support
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
FFMPEG_CONFIG+= --disable-mmx
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list