mirror of
https://github.com/mpv-player/mpv
synced 2024-09-16 22:19:59 +02:00
MIPS support by oliver.schoenbrunner@jku.at
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2451 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a8ef3eac6d
commit
b842217f07
8
Makefile
8
Makefile
@ -19,13 +19,17 @@ BINDIR = ${prefix}/bin
|
||||
SRCS = ima4.c xacodec.c cpudetect.c mp_msg.c ac3-iec958.c find_sub.c dec_audio.c dec_video.c codec-cfg.c subreader.c lirc_mp.c cfgparser.c mixer.c spudec.c
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(CSS_INC) $(EXTRA_INC) $(MADLIB_INC) # -Wall
|
||||
A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB)
|
||||
A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3 $(ALSA_LIB) $(ESD_LIB) $(MADLIB_LIB) $(SGI_AUDIO_LIB)
|
||||
VO_LIBS = -Llibvo -lvo $(MLIB_LIB) $(X_LIBS)
|
||||
OSDEP_LIBS = -Llinux -losdep
|
||||
PP_LIBS = -Lpostproc -lpostproc
|
||||
XA_LIBS = -Lxa -lxa
|
||||
|
||||
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
|
||||
PARTS = libmpdemux mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 drivers drivers/syncfb
|
||||
else
|
||||
PARTS = libmpdemux mp3lib libac3 libmpeg2 opendivx libavcodec encore libvo libao2 drivers drivers/syncfb linux postproc xa
|
||||
endif
|
||||
ifeq ($(GUI),yes)
|
||||
PARTS += Gui
|
||||
endif
|
||||
@ -108,7 +112,7 @@ mplayerwithoutlink: $(MPLAYER_DEP)
|
||||
@for a in $(PARTS); do $(MAKE) -C $$a all ; done
|
||||
|
||||
$(PRG): $(MPLAYER_DEP)
|
||||
$(CC) -rdynamic $(CFLAGS) -o $(PRG) mplayer.o -Llibmpdemux -lmpdemux $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) $(LIB_LOADER) $(AV_LIB) -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 $(VO_LIBS) $(CSS_LIB) -Lencore -lencore $(GUI_LIBS) $(ARCH_LIBS) $(OSDEP_LIBS) $(PP_LIBS) $(XA_LIBS) $(DECORE_LIBS)
|
||||
$(CC) -rdynamic $(CFLAGS) -o $(PRG) mplayer.o -Llibmpdemux -lmpdemux $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(TERMCAP_LIB) $(LIB_LOADER) $(AV_LIB) -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 $(A_LIBS) $(VO_LIBS) $(CSS_LIB) -Lencore -lencore $(GUI_LIBS) $(ARCH_LIBS) $(OSDEP_LIBS) $(PP_LIBS) $(XA_LIBS) $(DECORE_LIBS) -lm
|
||||
|
||||
$(PRG_FIBMAP): fibmap_mplayer.o
|
||||
$(CC) -o $(PRG_FIBMAP) fibmap_mplayer.o
|
||||
|
36
configure
vendored
36
configure
vendored
@ -804,6 +804,19 @@ alpha)
|
||||
_mcpu="-mcpu=ev56"
|
||||
;;
|
||||
|
||||
mips)
|
||||
_arch="#define ARCH_SGI_MIPS 1"
|
||||
_target_arch="TARGET_ARCH_SGI_MIPS=yes"
|
||||
_words_endian="#define WORDS_BIGENDIAN 1"
|
||||
iproc=sgi-mips
|
||||
proc=default
|
||||
_march=""
|
||||
_mcpu="-mcpu=$proc"
|
||||
_skip_as_check=yes
|
||||
# _png=no
|
||||
# CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
|
||||
echo "It seems noone has ported MPlayer to your OS or CPU type yet."
|
||||
@ -1182,6 +1195,14 @@ int main( void ){ return 0; }
|
||||
EOF
|
||||
cc_check $_extraincdir $_extralibdir -lesd || _esd=no
|
||||
|
||||
# check for SGI audio
|
||||
cat > $TMPC << EOF
|
||||
#include <dmedia/audio.h>
|
||||
int main( void ) { return 0; }
|
||||
EOF
|
||||
|
||||
_sgi_audio=no
|
||||
$_cc -o $TMPO $TMPC 2> /dev/null && _sgi_audio=yes
|
||||
|
||||
# check for mad library
|
||||
cat > $TMPC << EOF
|
||||
@ -1656,6 +1677,7 @@ echo "Checking for ALSA Audio ... $_alsaver"
|
||||
echo "Checking for ESD Audio ... $_esd"
|
||||
echo "Checking for Sun Audio ... $_sun_audio"
|
||||
echo "Checking for Sun mediaLib ... $_mlib"
|
||||
echo "Checking for SGI Audio ... $_sgi_audio"
|
||||
echo "Checking for DeCSS support ... $_css"
|
||||
echo "Checking for DVDread support ... $_dvdread"
|
||||
echo "Checking for PNG support ... $_png"
|
||||
@ -1995,6 +2017,14 @@ else
|
||||
_sunaudio='#undef USE_SUN_AUDIO'
|
||||
fi
|
||||
|
||||
if [ "$_sgi_audio" = "yes" ]; then
|
||||
_sgiaudio='#define USE_SGI_AUDIO'
|
||||
_aosrc="$_aosrc ao_sgi.c"
|
||||
_sgi_audio_lib='-laudio'
|
||||
else
|
||||
_sgiaudio='#undef USE_SGI_AUDIO'
|
||||
fi
|
||||
|
||||
if test "$_sys_soundcard_h" = yes ; then
|
||||
_have_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1'
|
||||
else
|
||||
@ -2037,7 +2067,11 @@ fi
|
||||
if test "$_profile" || test "$_debug" ; then
|
||||
CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile"
|
||||
elif test -z "$CFLAGS" ; then
|
||||
if [ "$host_arch" != "mips" ]; then
|
||||
CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
|
||||
else
|
||||
CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
|
||||
fi
|
||||
else
|
||||
cat <<EOF
|
||||
MPlayer is using custom CFLAGS set by you, it is strongly recommended that you
|
||||
@ -2330,6 +2364,7 @@ AV_DEP = $_lavcdep
|
||||
AV_LIB = $_lavclib
|
||||
ALSA_LIB = $_alsalib
|
||||
ESD_LIB = $_esdlib
|
||||
SGI_AUDIO_LIB = $_sgi_audio_lib
|
||||
ARCH_LIBS = $_archlibs $_iconvlib
|
||||
STREAMING=$_streaming
|
||||
DECORE_LIBS = $_decorelibs
|
||||
@ -2486,6 +2521,7 @@ $_alsa5
|
||||
$_alsa9
|
||||
$_esdd
|
||||
$_sunaudio
|
||||
$_sgiaudio
|
||||
|
||||
/* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */
|
||||
#undef FAST_OSD
|
||||
|
@ -34,6 +34,9 @@ extern ao_functions_t audio_out_sdl;
|
||||
#ifdef USE_SUN_AUDIO
|
||||
extern ao_functions_t audio_out_sun;
|
||||
#endif
|
||||
#ifdef USE_SGI_AUDIO
|
||||
extern ao_functions_t audio_out_sgi;
|
||||
#endif
|
||||
extern ao_functions_t audio_out_pcm;
|
||||
extern ao_functions_t audio_out_pss;
|
||||
|
||||
@ -44,6 +47,9 @@ ao_functions_t* audio_out_drivers[] =
|
||||
#endif
|
||||
#ifdef USE_SUN_AUDIO
|
||||
&audio_out_sun,
|
||||
#endif
|
||||
#ifdef USE_SGI_AUDIO
|
||||
&audio_out_sgi,
|
||||
#endif
|
||||
&audio_out_null,
|
||||
#ifdef HAVE_ALSA5
|
||||
@ -84,7 +90,7 @@ char *audio_out_format_name(int format)
|
||||
case AFMT_S16_LE:
|
||||
return("Signed 16-bit (Little-Endian)");
|
||||
case AFMT_S16_BE:
|
||||
return("Unsigned 16-bit (Big-Endian)");
|
||||
return("Signed 16-bit (Big-Endian)");
|
||||
case AFMT_MPEG:
|
||||
return("MPEG (2) audio");
|
||||
case AFMT_AC3:
|
||||
|
@ -277,4 +277,8 @@ static int vcd_read(int fd,char *mem)
|
||||
return -1;
|
||||
}
|
||||
|
||||
static inline void vcd_set_msf(unsigned int sect)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* !linux && !sun */
|
||||
|
@ -4,6 +4,9 @@ include ../config.mak
|
||||
SRCS = sr1.c
|
||||
OBJS = sr1.o
|
||||
# OBJS = $(SRCS:.c,.s=.o)
|
||||
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
|
||||
OPTFLAGS := $(OPTFLAGS:-O4=-O0)
|
||||
endif
|
||||
CFLAGS = $(OPTFLAGS) $(EXTRA_INC)
|
||||
ifeq ($(TARGET_ARCH_X86),yes)
|
||||
SRCS += d_cpu.s decode_i586.s
|
||||
|
Loading…
Reference in New Issue
Block a user