First post, by nahum
"Upgrade 2012 DOS MPlayer to Version 1.5"
Hi,
Using the following Hotlinks as a baseline:
link
Are there any savvy DJGPP coders able to upgrade DOS 2012 mplayer to its present version 1.5, using the following DJGPP cross compiler GCC version 12.2.0 build script from:
#!/usr/bin/env bash
# Path to DJGPP cross compiler
export DJGPP_PREFIX="/Users/owner/djcc"
export PATH="$DJGPP_PREFIX/bin:$PATH"
# Your cross compilation target
TARGET_ARCH="$DJGPP_PREFIX/bin/i586-pc-msdosdjgpp"
# Download MPlayer source code
MPLAYER_VERSION="1.5"
MPLAYER_ARCHIVE="http://www.mplayerhq.hu/MPlayer/releases/MPlayer-${MPLAYER_VERSION}.tar.xz"
MPLAYER_SOURCE_DIR="MPlayer-${MPLAYER_VERSION}"
# Download MPlayer source
echo "Downloading MPlayer source..."
wget -c "$MPLAYER_ARCHIVE" || exit 1
tar -xf "MPlayer-${MPLAYER_VERSION}.tar.xz" || exit 1
cd "$MPLAYER_SOURCE_DIR" || exit 1
# configure help
./configure --help >> junkc.hlp 2>&1
# Configure MPlayer for cross-compilation
echo "Configuring MPlayer for cross-compilation..."
./configure --enable-cross-compile \
--cc="${TARGET_ARCH}-gcc" \
--target=i486-DJGPP \
--disable-mencoder \
--enable-static \
--disable-networking \
--disable-dvdnav \
--disable-dvdread \
--disable-cdparanoia \
--disable-x11 \
--disable-alsa \
--disable-arts \
--disable-sdl \
--disable-freetype \
--disable-bluray \
--disable-liba52 \
--disable-libdca \
--disable-mpg123 \
--disable-liba52 \
--disable-libmpeg2 \
--disable-v4l2 \
--disable-joystick \
--disable-dvb \
--disable-xvid \
--disable-x264 \
--disable-vdpau \
--disable-libmpeg2 \
--disable-libvorbis \
--disable-mad \
--disable-x264 \
--disable-xvid \
--disable-inet6 \
--disable-libcdio \
--disable-cddb \
--disable-caca \
--disable-dvdread \
--disable-dvdnav \
--disable-faad \
--disable-libopenjpeg \
--disable-mpg123 \
--disable-libopus \
--disable-libavcodec_mpegaudio_hp \
> configure.log 2>&1 \
|| exit 1
# Compile MPlayer
echo "Compiling MPlayer..."
gmake > make.log 2>&1 || exit 1
# Test compiler functionality by compiling a hello world program
echo "Compiling hello world program for testing..."
cat > hello.c <<EOF
#include <stdio.h>
int main() {
printf("Hello, world!\\n");
return 0;
}
EOF
"${TARGET_ARCH}-gcc" hello.c -o hello || exit 1
echo "Compilation complete."
Thanks in advance!