[Lunar-commits] <moonbase> mplayer2: new module

Duncan Gibson engelsman at lunar-linux.org
Thu Apr 21 22:26:20 CEST 2011


commit 1e74e8ca15277892c506a1bc74c7ab0375fc0e01
Author: Christian Krause <kizkizzbangbang at googlemail.com>
Date:   Thu Apr 21 22:26:20 2011 +0200

    mplayer2: new module
    
    not yet all dependencies are listed, feel free to add
---
 zbeta/mplayer2/BUILD     |   28 ++++++++++++++++++++++++++++
 zbeta/mplayer2/CONFIGURE |    1 +
 zbeta/mplayer2/CONFLICTS |    1 +
 zbeta/mplayer2/DEPENDS   |   15 +++++++++++++++
 zbeta/mplayer2/DETAILS   |   19 +++++++++++++++++++
 5 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/zbeta/mplayer2/BUILD b/zbeta/mplayer2/BUILD
new file mode 100644
index 0000000..8864524
--- /dev/null
+++ b/zbeta/mplayer2/BUILD
@@ -0,0 +1,28 @@
+(
+
+  if in_depends $MODULE "DirectFB" ; then
+    EXTRA_CFLAGS+=" -I/usr/include/directfb"
+  fi
+
+  if in_depends $MODULE "ffmpeg" ; then
+    EXTRA_LIBS_MPLAYER+=" -lavutil -lavcodec -lavdevice -lavfilter -lavformat -lpostproc -lswscale"
+  fi
+
+  if in_depends $MODULE "fontconfig" ; then
+    EXTRA_LIBS_MPLAYER+=" -lfontconfig"
+  fi
+
+  if in_depends $MODULE "libXext" ; then
+    EXTRA_LIBS_MPLAYER+=" -lX11 -lXext"
+  fi
+
+  ./configure  --target=$BUILD                              \
+               --prefix=/usr                                \
+               --confdir=/etc                               \
+               --extra-cflags="$EXTRA_CFLAGS"               \
+               --extra-libs-mplayer="$EXTRA_LIBS_MPLAYER"   \
+               $OPTS                                       &&
+
+  default_make
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/mplayer2/CONFIGURE b/zbeta/mplayer2/CONFIGURE
new file mode 100644
index 0000000..7dc6d60
--- /dev/null
+++ b/zbeta/mplayer2/CONFIGURE
@@ -0,0 +1 @@
+mquery FBDEV "Enable FBDev video output (framebuffer)?" n "--enable-fbdev" "--disable-fbdev"
diff --git a/zbeta/mplayer2/CONFLICTS b/zbeta/mplayer2/CONFLICTS
new file mode 100644
index 0000000..7b6f7ba
--- /dev/null
+++ b/zbeta/mplayer2/CONFLICTS
@@ -0,0 +1 @@
+conflicts MPlayer
diff --git a/zbeta/mplayer2/DEPENDS b/zbeta/mplayer2/DEPENDS
new file mode 100644
index 0000000..4aad8f9
--- /dev/null
+++ b/zbeta/mplayer2/DEPENDS
@@ -0,0 +1,15 @@
+optional_depends "DirectFB"   "--enable-directfb"   "--disable-directfb"   "for DirectFB video output"
+optional_depends "SDL"        "--enable-sdl"        "--disable-sdl"        "for SDL video output"
+optional_depends "libXext"    "--enable-x11"        "--disable-x11"        "for X11 video output"
+optional_depends "alsa-lib"   "--enable-alsa"       "--disable-alsa"       "for ALSA audio output"
+optional_depends "%JPEG"      "--enable-jpeg"       "--disable-jpeg"       "for JPEG support"
+optional_depends "libpng"     "--enable-png"        "--disable-png"        "for PNG support"
+optional_depends "%GIF"       "--enable-gif"        "--disable-gif"        "for GIF support"
+optional_depends "ffmpeg"     "--enable-ffmpeg"     "--disable-ffmpeg"     "for FFmpeg codec"
+optional_depends "faad"       "--enable-faad"       "--disable-faad"       "for FAAD2 (AAC) codec"
+optional_depends "libmad"     "--enable-mad"        "--disable-mad"        "for libmad (MPEG audio) support"
+optional_depends "libvorbis"  "--enable-libvorbis"  "--disable-libvorbis"  "for libvorbis support"
+optional_depends "libtheora"  "--enable-theora"     "--disable-theora"     "for OggTheora support"
+optional_depends "freetype2"  "--enable-freetype"   "--disable-freetype"   "for FreeType 2 font rendering"
+optional_depends "fontconfig" "--enable-fontconfig" "--disable-fontconfig" "for fontconfig font lookup"
+optional_depends "libdvdread" "--enable-dvdread"    "--disable-dvdread"    "for dvdread support"
diff --git a/zbeta/mplayer2/DETAILS b/zbeta/mplayer2/DETAILS
new file mode 100644
index 0000000..9864c99
--- /dev/null
+++ b/zbeta/mplayer2/DETAILS
@@ -0,0 +1,19 @@
+          MODULE=mplayer2
+         VERSION=2.0
+          SOURCE=$MODULE-$VERSION.tar.bz2
+      SOURCE_URL=http://ftp.mplayer2.org/pub/release
+      SOURCE_VFY=sha1:f724ba14399c6444092516b9da89c14fbb2f6381
+        WEB_SITE=http://www.mplayer2.org/
+         ENTERED=20110330
+         UPDATED=20110330
+           SHORT="A movie and animation player"
+           PSAFE=no
+
+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


More information about the Lunar-commits mailing list