Commit 1f1fe98f authored by Jean-Paul Saman's avatar Jean-Paul Saman

Support for uclibc in contrib.

parent 9d6f096a
......@@ -178,6 +178,14 @@ case $HOST in
EXTRA_CPPFLAGS=" -D_WIN32_WCE"
cat src/Distributions/wince.mak >> distro.mak
;;
armeb-linux-uclibc)
echo "HAVE_UCLIBC = 1" >> config.mak
if test ! -z "${DISTRO}"; then
cat src/Distributions/${DISTRO}.mak >> distro.mak
else
cat src/Distributions/unix.mak >> distro.mak
fi
;;
*)
if test "$HOST" = "$BUILD"; then
if test -d "/usr/lib/pkgconfig"; then
......
......@@ -101,7 +101,7 @@ ifneq ($(BUILD),$(HOST))
#
ifndef HAVE_CYGWIN
# We are REALLY cross compiling
FFMPEGCONF=--cross-prefix=$(HOST)-
FFMPEGCONF=--cross-prefix=$(HOST)- --cross-compile
X264CONF=--crosscompile=$(HOST)
PTHREADSCONF="CROSS=$(HOST)-"
else
......@@ -121,8 +121,13 @@ endif
ifdef HAVE_WINCE
HOSTCONF+= --without-pic --disable-shared
FFMPEGCONF+= --enable-mingwce --cpu=armv4l --disable-debug --disable-encoders --disable-muxers --disable-mpegaudio-hp --disable-decoder=snow --disable-decoder=vc9 --disable-decoder=wmv3 --disable-decoder=vorbis --disable-decoder=dvdsub --disable-decoder=dvbsub --disable-protocols
endif
ifdef HAVE_UCLIBC
FFMPEGCONF+= --enable-small --arch=armeb --disable-debug --disable-encoders --disable-muxers --disable-mpegaudio-hp --disable-decoder=snow --disable-decoder=vc9 --disable-decoder=wmv3 --disable-decoder=vorbis --disable-decoder=dvdsub --disable-decoder=dvbsub --disable-protocols
FFMPEG_CFLAGS += --std=c99
else
FFMPEGCONF+= --enable-libmp3lame --enable-libfaac
FFMPEGCONF+= --enable-libmp3lame --enable-libfaac --enable-liba52
endif
ifdef HAVE_BEOS
......@@ -400,6 +405,7 @@ libiconv: libiconv-$(LIBICONV_VERSION).tar.gz
ifdef HAVE_DARWIN_OS
patch -p0 < Patches/libiconv.patch
endif
patch -p0 < Patches/libiconv-autoconf-uclibc.patch
ifdef HAVE_DARWIN_OS
.iconv:
......@@ -918,6 +924,9 @@ endif
ifdef HAVE_BEOS
(cd $@; patch -p0 < ../Patches/ffmpeg-alignment.patch)
endif
ifdef HAVE_UCLIBC
(cd $@; patch -p1 < ../Patches/ffmpeg-svn-uclibc.patch)
endif
ffmpeg-$(FFMPEG_VERSION).tar.gz:
$(WGET) $(FFMPEG_URL)
......@@ -929,9 +938,13 @@ ffmpeg-$(FFMPEG_VERSION).tar.gz:
ifdef HAVE_WINCE
.ffmpeg: ffmpeg .zlib
else
ifdef HAVE_UCLIBC
.ffmpeg: ffmpeg
else
.ffmpeg: ffmpeg .faac .lame
endif
(cd $<; $(HOSTCC) ./configure $(FFMPEGCONF) --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) $(FFMPEG_CFLAGS) -DRUNTIME_CPUDETECT" --extra-ldflags="$(LDFLAGS)" --enable-gpl --enable-pp --disable-vhook --disable-ffserver --disable-network --enable-liba52 --disable-ffplay && make && make install-libs install-headers)
endif
(cd $<; $(HOSTCC) ./configure $(FFMPEGCONF) --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) $(FFMPEG_CFLAGS) -DRUNTIME_CPUDETECT" --extra-ldflags="$(LDFLAGS)" --enable-gpl --enable-pp --disable-vhook --disable-ffserver --disable-network --disable-ffplay && make && make install-libs install-headers)
touch $@
ifdef SVN
......
--- ffmpeg/configure.orig 2007-05-14 15:08:15.000000000 +0200
+++ ffmpeg/configure 2007-05-14 15:08:55.000000000 +0200
@@ -1028,6 +1028,10 @@
arm|armv[4567]*l)
arch="armv4l"
;;
+ armeb)
+ arch="armv4"
+ bigendian="yes"
+ ;;
alpha)
arch="alpha"
enable fast_64bit
@@ -1567,7 +1567,7 @@
EOF
else
# programs cannot be launched if cross compiling, so make a static guess
- if test "$arch" = "powerpc" -o "$arch" = "mips" ; then
+ if test "$arch" = "powerpc" -o "$arch" = "mips" -o "$arch" = "armeb"; then
bigendian="yes"
fi
fi
--- libiconv/autoconf/config.sub.orig 2007-05-14 14:14:12.000000000 +0200
+++ libiconv/autoconf/config.sub 2007-05-14 14:17:36.000000000 +0200
@@ -1102,6 +1102,9 @@
-unixware*)
os=-sysv4.2uw
;;
+ -uclibc*)
+ os=-linux
+ ;;
-gnu/linux*)
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
;;
--- libiconv/libcharset/autoconf/config.sub.orig 2007-05-14 14:34:11.000000000 +0200
+++ libiconv/libcharset/autoconf/config.sub 2007-05-14 14:35:09.000000000 +0200
@@ -1102,6 +1102,9 @@
-unixware*)
os=-sysv4.2uw
;;
+ -uclibc*)
+ os=-linux
+ ;;
-gnu/linux*)
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
;;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment