|
|
@ -20,6 +20,15 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
mplayer_premake() { |
|
|
|
# disable all crappy altivec code the hard way (look into the configure |
|
|
|
# to see why we need to do it this way. Hopefully at one day all |
|
|
|
# the altivec crap code will compile ... -ReneR |
|
|
|
sed -i 's/TARGET_ALTIVEC = yes/TARGET_ALTIVEC = /' config.mak |
|
|
|
sed -i -e 's/#define HAVE_ALTIVEC 1/#undef HAVE_ALTIVEC/' \ |
|
|
|
-e 's/#define HAVE_ALTIVEC_H 1/#undef HAVE_ALTIVEC_H/' config.h |
|
|
|
} |
|
|
|
|
|
|
|
mplayer_postmake() { |
|
|
|
if [ -f $root/var/adm/packages/gtk+12 ] ; then |
|
|
|
echo "extracting the default GUI ..." |
|
|
@ -74,10 +83,11 @@ if test "$ROCKCFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ; then |
|
|
|
var_append confopt " " "--enable-bl" |
|
|
|
fi |
|
|
|
|
|
|
|
test -f $root/var/adm/packages/rtsp && var_append confopt " " "--enable-live" |
|
|
|
test -f $root/var/adm/packages/xmms && var_append confopt " " "--enable-xmms" |
|
|
|
test -f $root/var/adm/packages/gtk+12 && var_append confopt " " "--enable-gui" |
|
|
|
pkginstalled rtsp && var_append confopt " " "--enable-live" |
|
|
|
pkginstalled xmms && var_append confopt " " "--enable-xmms" |
|
|
|
pkginstalled gtk+12 && var_append confopt " " "--enable-gui" |
|
|
|
test "$ROCKCFG_DISABLE_NLS" = 0 || var_append confopt " " "--disable-i18n" |
|
|
|
|
|
|
|
hook_add premake 3 mplayer_premake |
|
|
|
hook_add postmake 5 mplayer_postmake |
|
|
|
|