Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2014 00:54:34 GMT
From:      Craig Butler <craig001@lerwick.hopto.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186394: [patch] multimedia/libvpx enable sparc64
Message-ID:  <201402030054.s130sYp2041343@oldred.freebsd.org>
Resent-Message-ID: <201402030100.s13100VX067201@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186394
>Category:       ports
>Synopsis:       [patch] multimedia/libvpx enable sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 03 01:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Craig Butler
>Release:        9.2-RELEASE sparc64
>Organization:
>Environment:
FreeBSD blueeye.lerwick.hopto.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Tue Oct  8 16:09:50 BST 2013     root@blueeye.lerwick.hopto.org:/usr/obj/usr/src/sys/GENERIC  sparc64
>Description:
Currently libvpx does not build for sparc64

When running a build from the port directory it currently bins out with;
"no support for sparc64 the moment. testing/patches are welcome"

After a bit of googling I noticed that Debian has a sparc compiled tarball and I just copied their configure line with respect to --target=generic-gnu

I found that base gcc was too old to compile it the configure script was complaining that it couldn't link files.... So I forced the make file to use gcc48 for sparc64 builds. 
>How-To-Repeat:
Build port on a sparc64 machine.
>Fix:
--- libvpx.orig/Makefile        2014-01-12 16:08:27.000000000 +0000
+++ libvpx/Makefile     2014-02-03 00:40:38.459197293 +0000
@@ -65,6 +65,10 @@
 CONFIGURE_ARGS+=       --disable-unit-tests
 .endif
 
+.if ${ARCH} == "sparc64"
+USE_GCC?=4.8
+.endif
+
 .if ${ARCH} == "amd64"
 CONFIGURE_ARGS+=       --target=x86_64-linux-gcc
 .elif ${ARCH} == "i386"
@@ -75,6 +79,8 @@
 CONFIGURE_ARGS+=       --target=ppc32-linux-gcc
 .elif ${ARCH} == "powerpc64"
 CONFIGURE_ARGS+=       --target=ppc64-linux-gcc
+.elif ${ARCH} == "sparc64"
+CONFIGURE_ARGS+=        --target=generic-gnu
 .else
 IGNORE=        no support for ${ARCH} the moment. testing/patches are welcome
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402030054.s130sYp2041343>