Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2017 14:12:20 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454563 - head/multimedia/kodi/files
Message-ID:  <201711201412.vAKECKqH094909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Mon Nov 20 14:12:20 2017
New Revision: 454563
URL: https://svnweb.freebsd.org/changeset/ports/454563

Log:
  multimedia/kodi: Fix RPI2 support on 11.x
  
  PR:		223292
  Submitted by:	jonc@chen.org.nz
  Reviewed by:	mickael.maillot@gmail.com (maintainer)
  Approved by:	olivier (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13168

Modified:
  head/multimedia/kodi/files/patch-configure.ac

Modified: head/multimedia/kodi/files/patch-configure.ac
==============================================================================
--- head/multimedia/kodi/files/patch-configure.ac	Mon Nov 20 14:11:15 2017	(r454562)
+++ head/multimedia/kodi/files/patch-configure.ac	Mon Nov 20 14:12:20 2017	(r454563)
@@ -1,5 +1,5 @@
---- configure.ac.orig	2017-05-24 20:49:32.000000000 +0000
-+++ configure.ac	2017-08-28 14:09:04.029056190 +0000
+--- configure.ac.orig	2017-05-25 08:49:32.000000000 +1200
++++ configure.ac	2017-10-28 22:32:23.769653000 +1300
 @@ -564,12 +564,36 @@
       CORE_SYSTEM_NAME=linux
       ARCH="x86-freebsd"
@@ -66,26 +66,25 @@
  fi
  if test "$host_vendor" = "apple" ; then
    # standard application paths
-@@ -802,8 +832,17 @@
+@@ -802,8 +832,16 @@
      LIBS="$LIBS -framework CoreFoundation"
    fi
  elif test "$target_platform" = "target_raspberry_pi"; then
 -  ARCH="arm"
 +  CXXFLAGS="$CXXFLAGS -I$LOCALBASE/include/interface/vcos/pthreads/ -I$LOCALBASE/include/interface/vcos -I$LOCALBASE/include/interface/ -I$LOCALBASE/include/interface/vmcs_host/linux"
-+  ARCH="armv6-freebsd"
++  ARCH="$(uname -p)-freebsd"
    use_arch="arm"
 +  FFMPEG_OPTS="--cc=$CC --cxx=$CXX --disable-fast-unaligned --disable-vfp --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-libxcb-shape"
 +  if test "$use_platform" = "raspberry-pi2"; then
 +    CFLAGS="$CFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon"
 +    CXXFLAGS="$CXXFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon"
-+    ARCH="armv7-freebsd"
 +    FFMPEG_OPTS="${FFMPEG_OPTS} --enable-neon"
 +  fi
 +
  elif test "$use_arch" = "arm"; then
    CFLAGS="$CFLAGS -mno-apcs-stack-check"
    CXXFLAGS="$CXXFLAGS -mno-apcs-stack-check"
-@@ -921,6 +960,7 @@
+@@ -921,6 +959,7 @@
  
  # Check inotify availability
  AC_CHECK_HEADER([sys/inotify.h], AC_DEFINE([HAVE_INOTIFY],[1],[Define if we have inotify]),)
@@ -93,7 +92,7 @@
  
  # Python
  if test -z "$PYTHON_NOVERSIONCHECK"; then
-@@ -1169,12 +1209,13 @@
+@@ -1169,12 +1208,13 @@
  )
  
  #Check to see if libs are needed for functions that are often built-in to libc
@@ -108,7 +107,7 @@
  
  # platform dependent libraries
  if test "$host_vendor" = "apple" ; then
-@@ -1558,7 +1599,7 @@
+@@ -1558,7 +1598,7 @@
  
    if test "$cross_compiling" != "yes"; then
      if test "$use_debug" != "yes"; then
@@ -117,7 +116,7 @@
      fi
      if test "$use_optimizations" != "yes"; then
        FFMPEG_OPTS="${FFMPEG_OPTS} --disable-optimizations"
-@@ -1569,7 +1610,7 @@
+@@ -1569,7 +1609,7 @@
        SAVE_LIBS="$LIBS"
        # check for system installed ffmpeg. We require minimum versions.
        PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES],
@@ -126,7 +125,7 @@
          [FFMPEG_FOUND="false"])
  
        if test "${USE_STATIC_FFMPEG}" = "1" && test "$FFMPEG_FOUND" = "true"; then
-@@ -1596,7 +1637,11 @@
+@@ -1596,7 +1636,11 @@
      elif test "$with_ffmpeg" = "force"; then
        # always build our ffmpeg
        AC_MSG_NOTICE("FFmpeg installation forced by user - installing our version")
@@ -139,7 +138,7 @@
        export PKG_CONFIG_PATH="${ffmpeg_build}/ffmpeg-install/lib/pkgconfig:$PKG_CONFIG_PATH"
  
      elif test "$with_ffmpeg" != "no"; then
-@@ -1609,7 +1654,7 @@
+@@ -1609,7 +1653,7 @@
  
  if test "$FFMPEG_FOUND" != "true"; then
    PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES],
@@ -148,7 +147,7 @@
      [AC_MSG_ERROR("ffmpeg not found")])
  fi
  
-@@ -1633,9 +1678,9 @@
+@@ -1633,9 +1677,9 @@
  echo "Checking for SWIG installation"
  AC_PATH_PROG(SWIG_EXE, swig, "none")
  if test "$SWIG_EXE" = "none"; then
@@ -161,7 +160,7 @@
    fi
  fi
  if test "$SWIG_EXE" = "none"; then
-@@ -1928,7 +1973,7 @@
+@@ -1928,7 +1972,7 @@
    AC_PATH_PROG([TEXTUREPACKER], [TexturePacker], ["none"],
      [$PATH$PATH_SEPARATOR${abs_top_srcdir}/tools/depends/native/TexturePacker/bin])
    if test "$TEXTUREPACKER" = "none"; then
@@ -170,7 +169,7 @@
      TEXTUREPACKER="${abs_top_srcdir}/tools/depends/native/TexturePacker/bin/TexturePacker"
    fi
    if test -x "$TEXTUREPACKER"; then
-@@ -2148,6 +2193,8 @@
+@@ -2148,6 +2192,8 @@
    LIBS="$LIBS -L\$(abs_top_srcdir)/lib/ffmpeg/libswscale -lswscale"
  fi
  



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