Lines 1-6
Link Here
|
1 |
--- configure.ac.orig 2016-10-08 UTC |
1 |
--- configure.ac.orig 2017-05-24 20:49:32.000000000 +0000 |
2 |
+++ configure.ac |
2 |
+++ configure.ac 2017-08-28 14:09:04.029056190 +0000 |
3 |
@@ -564,12 +564,25 @@ case $host in |
3 |
@@ -564,12 +564,36 @@ |
4 |
CORE_SYSTEM_NAME=linux |
4 |
CORE_SYSTEM_NAME=linux |
5 |
ARCH="x86-freebsd" |
5 |
ARCH="x86-freebsd" |
6 |
MAKE="gmake" |
6 |
MAKE="gmake" |
Lines 23-32
Link Here
|
23 |
+ use_gles=yes |
23 |
+ use_gles=yes |
24 |
+ use_gl=no |
24 |
+ use_gl=no |
25 |
+ use_x11=no |
25 |
+ use_x11=no |
|
|
26 |
+ ;; |
27 |
+ armv7-*-freebsd*) |
28 |
+ target_platform=target_linux |
29 |
+ ARCH="armv7-freebsd" |
30 |
+ MAKE="gmake" |
31 |
+ USE_STATIC_FFMPEG=1 |
32 |
+ use_arch="arm" |
33 |
+ use_neon=no |
34 |
+ use_gles=yes |
35 |
+ use_gl=no |
36 |
+ use_x11=no |
26 |
;; |
37 |
;; |
27 |
arm-apple-darwin*) |
38 |
arm-apple-darwin*) |
28 |
CORE_SYSTEM_NAME=ios |
39 |
CORE_SYSTEM_NAME=ios |
29 |
@@ -684,7 +697,7 @@ if test "$target_platform" = "target_ras |
40 |
@@ -688,7 +712,7 @@ |
30 |
use_hardcoded_tables="yes" |
41 |
use_hardcoded_tables="yes" |
31 |
use_openmax=no |
42 |
use_openmax=no |
32 |
CORE_SYSTEM_NAME=rbpi |
43 |
CORE_SYSTEM_NAME=rbpi |
Lines 35-41
Link Here
|
35 |
AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer]) |
46 |
AC_DEFINE(HAS_EGLGLES, [1], [Define if supporting EGL based GLES Framebuffer]) |
36 |
USE_OMXLIB=1; AC_DEFINE([HAVE_OMXLIB],[1],["Define to 1 if OMX libs is enabled"]) |
47 |
USE_OMXLIB=1; AC_DEFINE([HAVE_OMXLIB],[1],["Define to 1 if OMX libs is enabled"]) |
37 |
USE_MMAL=1; AC_DEFINE([HAS_MMAL],[1],["Define to 1 if MMAL libs is enabled"]) |
48 |
USE_MMAL=1; AC_DEFINE([HAS_MMAL],[1],["Define to 1 if MMAL libs is enabled"]) |
38 |
@@ -753,10 +766,16 @@ fi |
49 |
@@ -759,10 +783,16 @@ |
39 |
# platform specific flags |
50 |
# platform specific flags |
40 |
if echo "$ARCH" | grep -q "freebsd" ; then |
51 |
if echo "$ARCH" | grep -q "freebsd" ; then |
41 |
LOCALBASE="${LOCALBASE:-/usr/local}" |
52 |
LOCALBASE="${LOCALBASE:-/usr/local}" |
Lines 55-61
Link Here
|
55 |
fi |
66 |
fi |
56 |
if test "$host_vendor" = "apple" ; then |
67 |
if test "$host_vendor" = "apple" ; then |
57 |
# standard application paths |
68 |
# standard application paths |
58 |
@@ -796,8 +815,16 @@ if test "$host_vendor" = "apple" ; then |
69 |
@@ -802,8 +832,17 @@ |
59 |
LIBS="$LIBS -framework CoreFoundation" |
70 |
LIBS="$LIBS -framework CoreFoundation" |
60 |
fi |
71 |
fi |
61 |
elif test "$target_platform" = "target_raspberry_pi"; then |
72 |
elif test "$target_platform" = "target_raspberry_pi"; then |
Lines 67-72
Link Here
|
67 |
+ if test "$use_platform" = "raspberry-pi2"; then |
78 |
+ if test "$use_platform" = "raspberry-pi2"; then |
68 |
+ CFLAGS="$CFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon" |
79 |
+ CFLAGS="$CFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon" |
69 |
+ CXXFLAGS="$CXXFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon" |
80 |
+ CXXFLAGS="$CXXFLAGS -march=armv7a -mtune=cortex-a7 -mfpu=neon" |
|
|
81 |
+ ARCH="armv7-freebsd" |
70 |
+ FFMPEG_OPTS="${FFMPEG_OPTS} --enable-neon" |
82 |
+ FFMPEG_OPTS="${FFMPEG_OPTS} --enable-neon" |
71 |
+ fi |
83 |
+ fi |
72 |
+ |
84 |
+ |
Lines 73-79
Link Here
|
73 |
elif test "$use_arch" = "arm"; then |
85 |
elif test "$use_arch" = "arm"; then |
74 |
CFLAGS="$CFLAGS -mno-apcs-stack-check" |
86 |
CFLAGS="$CFLAGS -mno-apcs-stack-check" |
75 |
CXXFLAGS="$CXXFLAGS -mno-apcs-stack-check" |
87 |
CXXFLAGS="$CXXFLAGS -mno-apcs-stack-check" |
76 |
@@ -915,6 +942,7 @@ AC_LANG_POP([C++]) |
88 |
@@ -921,6 +960,7 @@ |
77 |
|
89 |
|
78 |
# Check inotify availability |
90 |
# Check inotify availability |
79 |
AC_CHECK_HEADER([sys/inotify.h], AC_DEFINE([HAVE_INOTIFY],[1],[Define if we have inotify]),) |
91 |
AC_CHECK_HEADER([sys/inotify.h], AC_DEFINE([HAVE_INOTIFY],[1],[Define if we have inotify]),) |
Lines 81-87
Link Here
|
81 |
|
93 |
|
82 |
# Python |
94 |
# Python |
83 |
if test -z "$PYTHON_NOVERSIONCHECK"; then |
95 |
if test -z "$PYTHON_NOVERSIONCHECK"; then |
84 |
@@ -1163,12 +1191,13 @@ AS_CASE([x$use_libbluray], |
96 |
@@ -1169,12 +1209,13 @@ |
85 |
) |
97 |
) |
86 |
|
98 |
|
87 |
#Check to see if libs are needed for functions that are often built-in to libc |
99 |
#Check to see if libs are needed for functions that are often built-in to libc |
Lines 96-102
Link Here
|
96 |
|
108 |
|
97 |
# platform dependent libraries |
109 |
# platform dependent libraries |
98 |
if test "$host_vendor" = "apple" ; then |
110 |
if test "$host_vendor" = "apple" ; then |
99 |
@@ -1552,7 +1581,7 @@ if test "${USE_STATIC_FFMPEG}" = "1"; th |
111 |
@@ -1558,7 +1599,7 @@ |
100 |
|
112 |
|
101 |
if test "$cross_compiling" != "yes"; then |
113 |
if test "$cross_compiling" != "yes"; then |
102 |
if test "$use_debug" != "yes"; then |
114 |
if test "$use_debug" != "yes"; then |
Lines 105-111
Link Here
|
105 |
fi |
117 |
fi |
106 |
if test "$use_optimizations" != "yes"; then |
118 |
if test "$use_optimizations" != "yes"; then |
107 |
FFMPEG_OPTS="${FFMPEG_OPTS} --disable-optimizations" |
119 |
FFMPEG_OPTS="${FFMPEG_OPTS} --disable-optimizations" |
108 |
@@ -1563,7 +1592,7 @@ if test "${USE_STATIC_FFMPEG}" = "1"; th |
120 |
@@ -1569,7 +1610,7 @@ |
109 |
SAVE_LIBS="$LIBS" |
121 |
SAVE_LIBS="$LIBS" |
110 |
# check for system installed ffmpeg. We require minimum versions. |
122 |
# check for system installed ffmpeg. We require minimum versions. |
111 |
PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES], |
123 |
PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES], |
Lines 114-120
Link Here
|
114 |
[FFMPEG_FOUND="false"]) |
126 |
[FFMPEG_FOUND="false"]) |
115 |
|
127 |
|
116 |
if test "${USE_STATIC_FFMPEG}" = "1" && test "$FFMPEG_FOUND" = "true"; then |
128 |
if test "${USE_STATIC_FFMPEG}" = "1" && test "$FFMPEG_FOUND" = "true"; then |
117 |
@@ -1590,7 +1619,11 @@ if test "${USE_STATIC_FFMPEG}" = "1"; th |
129 |
@@ -1596,7 +1637,11 @@ |
118 |
elif test "$with_ffmpeg" = "force"; then |
130 |
elif test "$with_ffmpeg" = "force"; then |
119 |
# always build our ffmpeg |
131 |
# always build our ffmpeg |
120 |
AC_MSG_NOTICE("FFmpeg installation forced by user - installing our version") |
132 |
AC_MSG_NOTICE("FFmpeg installation forced by user - installing our version") |
Lines 127-133
Link Here
|
127 |
export PKG_CONFIG_PATH="${ffmpeg_build}/ffmpeg-install/lib/pkgconfig:$PKG_CONFIG_PATH" |
139 |
export PKG_CONFIG_PATH="${ffmpeg_build}/ffmpeg-install/lib/pkgconfig:$PKG_CONFIG_PATH" |
128 |
|
140 |
|
129 |
elif test "$with_ffmpeg" != "no"; then |
141 |
elif test "$with_ffmpeg" != "no"; then |
130 |
@@ -1603,7 +1636,7 @@ fi |
142 |
@@ -1609,7 +1654,7 @@ |
131 |
|
143 |
|
132 |
if test "$FFMPEG_FOUND" != "true"; then |
144 |
if test "$FFMPEG_FOUND" != "true"; then |
133 |
PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES], |
145 |
PKG_CHECK_MODULES([FFMPEG], [$FFMPEG_LIBNAMES], |
Lines 136-142
Link Here
|
136 |
[AC_MSG_ERROR("ffmpeg not found")]) |
148 |
[AC_MSG_ERROR("ffmpeg not found")]) |
137 |
fi |
149 |
fi |
138 |
|
150 |
|
139 |
@@ -1627,9 +1660,9 @@ fi |
151 |
@@ -1633,9 +1678,9 @@ |
140 |
echo "Checking for SWIG installation" |
152 |
echo "Checking for SWIG installation" |
141 |
AC_PATH_PROG(SWIG_EXE, swig, "none") |
153 |
AC_PATH_PROG(SWIG_EXE, swig, "none") |
142 |
if test "$SWIG_EXE" = "none"; then |
154 |
if test "$SWIG_EXE" = "none"; then |
Lines 149-155
Link Here
|
149 |
fi |
161 |
fi |
150 |
fi |
162 |
fi |
151 |
if test "$SWIG_EXE" = "none"; then |
163 |
if test "$SWIG_EXE" = "none"; then |
152 |
@@ -1922,7 +1955,7 @@ if test "x$use_texturepacker" != "xno"; |
164 |
@@ -1928,7 +1973,7 @@ |
153 |
AC_PATH_PROG([TEXTUREPACKER], [TexturePacker], ["none"], |
165 |
AC_PATH_PROG([TEXTUREPACKER], [TexturePacker], ["none"], |
154 |
[$PATH$PATH_SEPARATOR${abs_top_srcdir}/tools/depends/native/TexturePacker/bin]) |
166 |
[$PATH$PATH_SEPARATOR${abs_top_srcdir}/tools/depends/native/TexturePacker/bin]) |
155 |
if test "$TEXTUREPACKER" = "none"; then |
167 |
if test "$TEXTUREPACKER" = "none"; then |
Lines 158-164
Link Here
|
158 |
TEXTUREPACKER="${abs_top_srcdir}/tools/depends/native/TexturePacker/bin/TexturePacker" |
170 |
TEXTUREPACKER="${abs_top_srcdir}/tools/depends/native/TexturePacker/bin/TexturePacker" |
159 |
fi |
171 |
fi |
160 |
if test -x "$TEXTUREPACKER"; then |
172 |
if test -x "$TEXTUREPACKER"; then |
161 |
@@ -2142,6 +2175,8 @@ if test "$host_vendor" = "apple" ; then |
173 |
@@ -2148,6 +2193,8 @@ |
162 |
LIBS="$LIBS -L\$(abs_top_srcdir)/lib/ffmpeg/libswscale -lswscale" |
174 |
LIBS="$LIBS -L\$(abs_top_srcdir)/lib/ffmpeg/libswscale -lswscale" |
163 |
fi |
175 |
fi |
164 |
|
176 |
|