|
|
@ -20,13 +20,25 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
mplayer_preconf() { |
|
|
|
tar $taropt $archdir/MPlayer-${ver}.tar.bz2 |
|
|
|
tar $taropt $archdir/MPlayer-${ver}-ffmpeg.tar.bz2 |
|
|
|
mv MPlayer-${ver}-ffmpeg/{libavcodec,libavformat,libavutil} MPlayer-${ver} |
|
|
|
cd MPlayer-${ver} |
|
|
|
prefer_program () |
|
|
|
{ |
|
|
|
local P |
|
|
|
for P ; do |
|
|
|
type -p "$P" >/dev/null && { echo "$P" ; break ; } |
|
|
|
done |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
preferred_gcc="`prefer_program gcc-34 gcc-33 gcc-32 gcc-2`" |
|
|
|
|
|
|
|
if [ -n "$preferred_gcc" ] ; then |
|
|
|
CC="$preferred_gcc" ; HOST_CC="$preferred_gcc" |
|
|
|
var_append confopt ' ' "--cc=\"$preferred_gcc\" --host-cc=\"$preferred_gcc\"" |
|
|
|
elif [ "${ROCKCFG_DEFAULT_CC:3:1}" -gt "3" ] ; then |
|
|
|
# only gcc 2.95 and gcc 3.x are officially supported |
|
|
|
var_append confopt " " "--disable-gcc-checking" |
|
|
|
fi |
|
|
|
|
|
|
|
mplayer_postmake() { |
|
|
|
if pkginstalled gtk+12 ; then |
|
|
|
echo "extracting the standard GUI ..." |
|
|
@ -64,8 +76,6 @@ mplayer_postmake() { |
|
|
|
find $datadir/$pkg $docdir $sysconfdir -type f | xargs -r chmod 0644 |
|
|
|
} |
|
|
|
|
|
|
|
autoextract=0 |
|
|
|
|
|
|
|
sysconfdir="$sysconfdir/mplayer" |
|
|
|
confopt="--prefix=$root/$prefix --confdir=$sysconfdir" |
|
|
|
|
|
|
@ -100,10 +110,6 @@ fi |
|
|
|
|
|
|
|
var_append confopt " " "--enable-tv-v4l2 --enable-tv-v4l" |
|
|
|
|
|
|
|
# only gcc 2.95 and gcc 3.x are officially supported |
|
|
|
[ "${ROCKCFG_DEFAULT_CC:3:1}" -gt "3" ] && var_append confopt " " "--disable-gcc-checking" |
|
|
|
|
|
|
|
hook_add preconf 3 mplayer_preconf |
|
|
|
hook_add postmake 5 mplayer_postmake |
|
|
|
|
|
|
|
# The function was obviously renamed in speex |
|
|
|