[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/mplayer/mplayer.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] Copyright (C) 1998 - 2003 ROCK Linux Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] A powerful movie player for Linux with subtitles and console support [T] The most capable movie player for Linux. Perfect support for extra cpu [T] instructions and damaged files. CLI and GTK+1 GUI. The most important: [T] Video codecs: mpeg1/VCD, mpeg2/DVD, DivX, QuickTime, WMV, RealMedia. [T] Video devices: X11 (shm/Xvideo/DGA/OpenGL), SDL, framebuffer, svgalib. [T] Audio codecs: mpeg layer 2 and 3 (mp3), AC3 dolby, alaw, msgsm, pcm. [T] Audio devices: OSS, ALSA, SDL, ARTS, ESD. [U] http://www.MPlayerHQ.hu/ [A] See documentation.html [M] The T2 Project [M] Rene Rebe [C] extra/multimedia [F] CROSS NO-LTO.gcc [E] opt aalib [E] opt libtheora [E] opt speex [E] opt lame [E] opt mpg123 [E] opt libopus [L] GPL [S] Beta [V] 1.5 [P] X -----5---9 259.600 [D] e9c6c0ca6897cc3d5b9c0912e6da9f6f8bec254bb67532349ceecf8e MPlayer-1.5.tar.xz http://www.mplayerhq.hu/MPlayer/releases/ [D] 225a4a2fc357d5bb7d725d655f82ed37c0e8c8974fe6b12deb4670bc Blue-1.7.tar.bz2 http://www.mplayerhq.hu/MPlayer/Skin/ [D] 252e8053533e5b2e4da7184cd9adc02a88f9e7b513f34ad99a626fa0 font-arial-iso-8859-1.tar.bz2 http://www.mplayerhq.hu/MPlayer/releases/fonts/ mplayer_postmake() { mkdir -p $root$datadir/$pkg if pkginstalled gtk+12 || pkginstalled gtk+2; then echo "extracting the default GUI ..." mkdir -p $root$datadir/$pkg/Skin tar $taropt `match_source_file -p Blue` cp -rvf Blue $root$datadir/$pkg/Skin/ rm -rf $root$datadir/$pkg/Skin/default ln -sfv Blue $root$datadir/$pkg/Skin/default fi echo "extracting the default font ..." tar $taropt `match_source_file -p font-arial-iso-8859` -C $root$datadir/$pkg rm -rf $root$datadir/$pkg/font ln -sf font-arial-24-iso-8859-1 $root$datadir/$pkg/font #echo "copy/move some documentation ..." #cp -fR DOCS/HTML/en/*.{css,html} DOCS/tech $root$docdir echo "create a default configuration ..." cat <<- 'EOT' > $root$sysconfdir/mplayer.conf # Write your default config options here! framedrop=yes menu=yes # vop=pp # autoq=6 EOT cp -f etc/{input,menu,codecs}.conf $root$sysconfdir echo "TAB menu up" >> $root$sysconfdir/input.conf rm -f $root$sysconfdir/*.older echo "correcting permissions and ownership ..." chown -R root:root $root$datadir/$pkg $root$docdir $root$sysconfdir find $root$datadir/$pkg $root$docdir $root$sysconfdir -type d | xargs -r chmod 0755 find $root$datadir/$pkg $root$docdir $root$sysconfdir -type f | xargs -r chmod 0644 } hook_add postmake 5 'mplayer_postmake' sysconfdir="$sysconfdir/mplayer" confopt="--target=$(echo $arch | arch2uname)-Linux" var_append confopt ' ' "--prefix=/$prefix --confdir=$sysconfdir" var_append confopt ' ' "--enable-menu --enable-fbdev" if [ $arch = x86 ]; then var_append confopt ' ' --with-win32libdir=/$prefix/lib/win32 fi if [ "$SDECFG_PKG_MPLAYER_RUN_CPUDETECT" != 0 ]; then case $arch in x86|x86-64|powerpc|powerpc64) var_append confopt ' ' --enable-runtime-cpudetection esac fi if [ "$SDECFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ]; then var_append confopt ' ' --enable-bl fi # we need to remove the generic cpu selection to get the run-time detected # altivec code built ... :-(-ReneR [ "$arch" = "powerpc" ] && var_remove_regex GCC_WRAPPER_INSERT " " "-mcpu=.*" if pkginstalled gtk+2; then var_append confopt ' ' --enable-gui elif pkginstalled gtk+12; then var_append confopt ' ' --enable-old-gtk fi # TODO: used system avformat and postprocess ... pkginstalled directfb && var_append confopt ' ' --enable-directfb var_append confopt ' ' --enable-tv-v4l2 if pkginstalled xmms; then var_append confopt ' ' --enable-xmms var_append confopt ' ' "--with-xmmslibdir=`pkgprefix libdir xmms`" [[ $libdir = *lib64 ]] && var_append GCC_WRAPPER_INSERT ' ' "-L/usr/lib64 -lxmms" [[ $libdir = *lib64 ]] && var_append GCC_WRAPPER_REMOVE ' ' /usr/lib/libxmms.so.1 fi [ "$SDECFG_DISABLE_NLS" = 0 ] || var_append confopt ' ' --disable-i18n # mplayer is not fully lib64 aware, installs (vidix, ...) in /usr/lib var_append confopt ' ' --libdir=/$libdir pkginstalled libx11 && var_append confopt ' ' "--with-x11libdir=$(pkgprefix libdir libx11)" # make sure the code is optimized enough on x86, it fails otherwise [ "$arch" = "x86" ] && var_append GCC_WRAPPER_INSERT ' ' -O2