[Lunar-commits] <moonbase> mplayer: svn

Samuel Verstraete elangelo at lunar-linux.org
Mon Oct 5 13:50:00 CEST 2009


commit f2adb09e9978fa6d0e16aac8029f42075ae20b90
Author: Samuel Verstraete <elangelo at lunar-linux.org>
Date:   Thu May 14 20:10:58 2009 +0200

    mplayer: svn
---
 zbeta/mplayer/BUILD        |   48 +++++++++++++++++++++++++++++++++++++++++
 zbeta/mplayer/CONFIGURE    |    3 ++
 zbeta/mplayer/DEPENDS      |   18 +++++++++++++++
 zbeta/mplayer/DETAILS      |   51 ++++++++++++++++++++++++++++++++++++++++++++
 zbeta/mplayer/POST_INSTALL |    1 +
 zbeta/mplayer/PRE_BUILD    |   13 +++++++++++
 6 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/zbeta/mplayer/BUILD b/zbeta/mplayer/BUILD
new file mode 100644
index 0000000..8863686
--- /dev/null
+++ b/zbeta/mplayer/BUILD
@@ -0,0 +1,48 @@
+(
+
+#patch_it $SOURCE7 0 &&
+#patch_it $SOURCE8 0 &&
+#patch_it $SOURCE9 0 &&
+#patch_it $SOURCE10 0 &&
+
+  # using CFLAGS other than MPlayers autodetected will break
+  bad_flags compiler
+
+  if [ $MENCODER == "n" ] ; then
+    OPTS=$OPTS" --disable-mencoder"
+  fi
+
+  if [ $OSD == "y" ] ; then
+    OPTS=$OPTS" --enable-menu"
+  fi
+
+  cd $SOURCE_DIRECTORY &&
+
+  ./configure --prefix=/usr                 \
+              --confdir=/etc                \
+              --mandir=/usr/share/man       \
+              --codecsdir=/usr/lib/win32    \
+              --enable-linux-devfs          \
+              --enable-largefiles           \
+              --confdir=/etc/mplayer        \
+              --datadir=/usr/share/mplayer  \
+              $OPTS &&
+
+  default_make  &&
+
+  gather_docs etc/*                   &&
+  install -d /usr/share/mplayer/Skin  &&
+  install -d /etc/mplayer             &&
+  install -m644 etc/codecs.conf /usr/share/mplayer/         &&
+  install -m644 etc/example.conf /etc/mplayer/mplayer.conf  &&
+  install -m644 etc/input.conf /etc/mplayer/                &&
+
+  cp -a Skin/Blue /usr/share/mplayer/Skin/  &&
+  ln -sf /usr/share/mplayer/Skin/Blue /usr/share/mplayer/Skin/default  &&
+
+  cp -a fonts /usr/share/mplayer/  &&
+  rm -rf /usr/share/mplayer/font   &&
+  ln -sf fonts/font-arial-iso-8859-1/font-arial-18-iso-8859-1 /usr/share/mplayer/font
+
+) > $C_FIFO 2>&1
+
diff --git a/zbeta/mplayer/CONFIGURE b/zbeta/mplayer/CONFIGURE
new file mode 100644
index 0000000..af43a19
--- /dev/null
+++ b/zbeta/mplayer/CONFIGURE
@@ -0,0 +1,3 @@
+mquery MENCODER "Enable building of MEncoder ?" y
+mquery OSD "Enable OSD support? " y
+
diff --git a/zbeta/mplayer/DEPENDS b/zbeta/mplayer/DEPENDS
new file mode 100644
index 0000000..12f3e07
--- /dev/null
+++ b/zbeta/mplayer/DEPENDS
@@ -0,0 +1,18 @@
+depends freetype2
+depends unzip
+depends MPlayer-essentials
+optional_depends libdvdread "" "" "To read DVDs"
+optional_depends SDL "--enable-sdl" "" "to use SDL to output video signal" 
+optional_depends alsa-utils "" "" "for ALSA sound support"
+optional_depends libvorbis "" "" "to use ogg audio format"
+optional_depends libmatroska "" "" "for matroska audio/video container format support" 
+optional_depends faad "" "" "for external FAAD2 (MPA/AAC) support"
+optional_depends libtheora "--enable-theora" "--disable-theora" "for OGG/Theora Video Playback" 
+optional_depends libXvMC "--enable-xvmc --with-xvmclib=XvMCW" "" "for hardware XvMC acceleration"
+optional_depends gtk+-2 "--enable-gui" "--disable-gui" "for MPlayer GTK gui support" 
+optional_depends MPlayer-all "" "" "to install more foreign codecs"
+optional_depends libggi "--enable-ggi" "--disable-ggi" "General Graphics Interface support" 
+optional_depends libggiwmh "--enable-ggiwmh" "--disable-ggiwmh" "GGI extension support"
+optional_depends amrnb "" "--disable-libamr_nb" "AMR narrowband support"
+optional_depends amrwb "" "--disable-libamr_wb" "AMR wideband support"
+
diff --git a/zbeta/mplayer/DETAILS b/zbeta/mplayer/DETAILS
new file mode 100644
index 0000000..399d76a
--- /dev/null
+++ b/zbeta/mplayer/DETAILS
@@ -0,0 +1,51 @@
+          MODULE=mplayer
+         VERSION="svn-`date +%Y%U`"
+          SOURCE=$MODULE.tar.bz2
+          SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
+         SOURCE2=font-arial-iso-8859-1.tar.bz2
+         SOURCE3=font-arial-iso-8859-2.tar.bz2
+         SOURCE4=font-arial-cp1250.tar.bz2
+         SOURCE5=font-arial-iso-8859-7.tar.bz2
+         SOURCE6=Blue-1.7.tar.bz2
+         #SOURCE7=stream_cddb_fix_20080120.diff
+         ##SOURCE8=url_fix_20080120.diff
+         #SOURCE9=demux_mov_fix_20080129.diff
+        #SOURCE10=demux_audio_fix_20080129.diff
+   SOURCE_URL[0]=svn://svn.mplayerhq.hu/$MODULE/trunk:$MODULE
+  SOURCE2_URL[0]=ftp://ftp1.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE2_URL[1]=ftp://ftp2.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE3_URL[0]=ftp://ftp1.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE3_URL[1]=ftp://ftp2.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE4_URL[0]=ftp://ftp1.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE4_URL[1]=ftp://ftp2.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE5_URL[0]=ftp://ftp1.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE5_URL[1]=ftp://ftp2.mplayerhq.hu/$MODULE/releases/fonts/
+  SOURCE6_URL[0]=ftp://ftp1.mplayerhq.hu/MPlayer/skins/
+     #SOURCE7_URL=http://www.mplayerhq.hu/MPlayer/patches/
+     #SOURCE8_URL=http://www.mplayerhq.hu/MPlayer/patches/
+    # SOURCE9_URL=http://www.mplayerhq.hu/MPlayer/patches/
+   # SOURCE10_URL=http://www.mplayerhq.hu/MPlayer/patches/
+     SOURCE2_VFY=sha1:152c40bf20de34aa8802d7f80d34d673b0b67212
+     SOURCE3_VFY=sha1:7b99bbe0e9ba89a57eccbea8f93c453c4f268181
+     SOURCE4_VFY=sha1:ccf11dce5d0fb72fd3af97f788b7471cd0cd0b68
+     SOURCE5_VFY=sha1:2a3fa8cf54ec3ed4dfa1a0e72f2d207c13507b9d
+     SOURCE6_VFY=sha1:45e5ee7a5541a5f1cfd2678a6c9b5911ca473cb9
+   #  SOURCE7_VFY=sha1:8d901c7a88fa120ed26492e741e1ae0fbe57e12d
+   #  SOURCE8_VFY=sha1:1e92ded6f27bf07601fa318e24ec468fe225ffe5
+   #  SOURCE9_VFY=sha1:a17d82baff58e8cc569365341503273956fd26c8
+   # SOURCE10_VFY=sha1:e25ba7d8d696d9c6365f105134ba723404adb4e1
+        WEB_SITE=http://www.mplayerhq.hu
+         ENTERED=20010922
+         UPDATED=20080409
+           PSAFE=no
+           SHORT="A movie and animation player"
+
+cat << EOF
+MPlayer is a movie and animation player based on the 0.90pre5 version of
+MPEGplayer and the Avifile library. It uses mpeg2dec/libmpeg2 for MPEG
+decoding. The supported file formats are: MPEG 1/2 (MPG, DAT, BIN, VOB)
+and AVI (Mpeg/PCM/AC3/DivX/MS-ADPCM/aLaw audio and MPEG4/DivX/Indeo/CVID
+video codecs). It supports hardware YUV colorspace conversion and
+scaling via mga_vid/syncfb devices or the X11 Xv extension.
+EOF
+
diff --git a/zbeta/mplayer/POST_INSTALL b/zbeta/mplayer/POST_INSTALL
new file mode 100644
index 0000000..410fa55
--- /dev/null
+++ b/zbeta/mplayer/POST_INSTALL
@@ -0,0 +1 @@
+if module_installed mplayerplug-in; then lin -c mplayerplug-in; fi
diff --git a/zbeta/mplayer/PRE_BUILD b/zbeta/mplayer/PRE_BUILD
new file mode 100644
index 0000000..fdb9a44
--- /dev/null
+++ b/zbeta/mplayer/PRE_BUILD
@@ -0,0 +1,13 @@
+default_pre_build                &&
+
+mkdir   $SOURCE_DIRECTORY/Skin   &&
+cd        $SOURCE_DIRECTORY/Skin   &&
+unpack  $SOURCE6                 &&
+
+mkdir   $SOURCE_DIRECTORY/fonts  &&
+cd      $SOURCE_DIRECTORY/fonts  &&
+unpack  $SOURCE2                 &&
+unpack  $SOURCE3                 &&
+unpack  $SOURCE4                 &&
+unpack  $SOURCE5
+


More information about the Lunar-commits mailing list