› Foros › PC › Software libre
apt-get install build-essential fakeroot debhelper
apt-get install libx11-dev xlibs-dev libgtk1.2-dev libgtk2.0-dev libasound2-dev libpng12-dev libjpeg62-dev zlib1g-dev libtiff4-dev libconfhelper-perl subversion
apt-get install libpng-dev libjpeg-dev libavifile-0.7-dev libavifile-0.7c102
mkdir /tmp/mplayer
cd /tmp/mplayer
wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar -xjf Blue-1.7.tar.bz2
tar -xjf font-arial-iso-8859-2.tar.bz2
tar -xjf essential-20071007.tar.bz2
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
mkdir -p /usr/local/lib/codecs
mkdir -p /usr/local/share/mplayer/font/
mkdir -p /usr/local/share/mplayer/skins/default
mv essential-20071007/* /usr/local/lib/codecs/
mv font-arial-iso-8859-2/font-arial-14-iso-8859-2/* /usr/local/share/mplayer/font/
mv Blue/* /usr/local/share/mplayer/skins/default/
cd mplayer
./configure --enable-gui --enable-largefiles --enable-menu --enable-xvmc --disable-ossaudio --disable-runtime-cpudetection --language=es
make
make install
# $Id: PKGBUILD 20560 2008-12-05 18:30:31Z hugo $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=mplayer
pkgver=1.0rc2
pkgrel=8
pkgdesc="A movie player for linux"
arch=(i686 x86_64)
depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'gtk2'
'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib'
'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit'
'x264>=20080625' 'faac' 'lirc-utils' 'ttf-dejavu' 'fribidi')
license=('GPL')
url="http://www.mplayerhq.hu/"
makedepends=('libcaca' 'unzip' 'live-media' 'libdca' 'mesa')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(http://www.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}.tar.bz2
http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
http://www.mplayerhq.hu/MPlayer/patches/demux_audio_fix_20080129.diff
http://www.mplayerhq.hu/MPlayer/patches/demux_mov_fix_20080129.diff
http://www.mplayerhq.hu/MPlayer/patches/url_fix_20080120.diff
http://www.mplayerhq.hu/MPlayer/patches/stream_cddb_fix_20080120.diff
ivtv_2.6.24.patch mplayer_desktop.patch)
md5sums=('7e27e535c2d267637df34898f1b91707' 'e4e2020d11b681aac898103b3ba723c4'\
'320af7daa1b248ee8e8c15d34d7923e3' 'ce999929155f509a3e6bee41d9d613ed'\
'6a2c124586e1e6c44ae4ca1b4be9b6e4' 'c7d1bcdd61fcceb7598d61fe2213c587'\
'1ef35068587f6b6dbc99342567895236' '4c49195a4a1702f0cb321abdc3c07741')
build() {
cd ${srcdir}/MPlayer-${pkgver}
# Custom CFLAGS break the mplayer build
unset CFLAGS
# Add support for gnome screensaver
#patch -p1 -i ../MPlayer-1.0rc1-gnome-screensaver.patch || return 1
# Workaround for changed ivtv interface since it went mainline in 2.6.24
patch -p1 -i ../ivtv_2.6.24.patch || return 1
# mplayer.desktop fix
patch -p1 -i ../mplayer_desktop.patch || return 1
# Fix security issues
for p in demux_audio_fix_20080129.diff demux_mov_fix_20080129.diff url_fix_20080120.diff stream_cddb_fix_20080120.diff; do
patch -p0 -i ../${p}
done
cd ${srcdir}/MPlayer-${pkgver}
./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
--enable-runtime-cpudetection --confdir=/etc/mplayer --disable-nas \
--enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
--disable-liblzo --disable-speex --disable-openal \
--enable-fribidi --disable-libdv --disable-musepack \
--language=all --disable-dvdnav --disable-esd --disable-mga \
--disable-libamr_nb \
--with-extraincdir=/usr/lib/live-media
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make -j1 DESTDIR=${pkgdir} install
cp etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
rm -rf ${pkgdir}/usr/share/mplayer/font
mv ${srcdir}/Blue ${pkgdir}/usr/share/mplayer/skins/default
}
# $Id: PKGBUILD 21693 2008-12-15 02:03:06Z giovanni $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=mplayer
pkgver=1.0rc2
pkgrel=9
pkgdesc="A movie player for linux"
arch=(i686 x86_64)
depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'gtk2'
'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib'
'libgl' 'smbclient' 'aalib' 'jack-audio-connection-kit'
'x264>=20080625' 'faac' 'lirc-utils' 'ttf-dejavu' 'fribidi' 'libxvmc' 'libdvdnav' 'ttf-bitstream-vera' 'alsa-lib')
license=('GPL')
url="http://www.mplayerhq.hu/"
makedepends=('libcaca' 'unzip' 'live-media' 'libdca' 'mesa')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(http://www.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}.tar.bz2
http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
http://www.mplayerhq.hu/MPlayer/patches/demux_audio_fix_20080129.diff
http://www.mplayerhq.hu/MPlayer/patches/demux_mov_fix_20080129.diff
http://www.mplayerhq.hu/MPlayer/patches/url_fix_20080120.diff
http://www.mplayerhq.hu/MPlayer/patches/stream_cddb_fix_20080120.diff
ivtv_2.6.24.patch mplayer_desktop.patch)
md5sums=('7e27e535c2d267637df34898f1b91707' 'e4e2020d11b681aac898103b3ba723c4'\
'320af7daa1b248ee8e8c15d34d7923e3' 'ce999929155f509a3e6bee41d9d613ed'\
'6a2c124586e1e6c44ae4ca1b4be9b6e4' 'c7d1bcdd61fcceb7598d61fe2213c587'\
'1ef35068587f6b6dbc99342567895236' '4c49195a4a1702f0cb321abdc3c07741')
build() {
cd ${srcdir}/MPlayer-${pkgver}
# Custom CFLAGS break the mplayer build
unset CFLAGS
# Add support for gnome screensaver
#patch -p1 -i ../MPlayer-1.0rc1-gnome-screensaver.patch || return 1
# Workaround for changed ivtv interface since it went mainline in 2.6.24
patch -p1 -i ../ivtv_2.6.24.patch || return 1
# mplayer.desktop fix
patch -p1 -i ../mplayer_desktop.patch || return 1
# Fix security issues
for p in demux_audio_fix_20080129.diff demux_mov_fix_20080129.diff url_fix_20080120.diff stream_cddb_fix_20080120.diff; do
patch -p0 -i ../${p}
done
cd ${srcdir}/MPlayer-${pkgver}
./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
--disable-runtime-cpudetection --confdir=/etc/mplayer --disable-nas \
--enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
--disable-liblzo --disable-speex --disable-openal \
--enable-fribidi --disable-libdv --disable-musepack \
--language=es --enable-xvmc --disable-esd --disable-mga \
--disable-libamr_nb \
--with-extraincdir=/usr/lib/live-media
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make -j1 DESTDIR=${pkgdir} install
cp etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
rm -rf ${pkgdir}/usr/share/mplayer/font
mv ${srcdir}/Blue ${pkgdir}/usr/share/mplayer/skins/default
}
stream/stream.a(stream_dvdnav.o): In function `seek':
stream_dvdnav.c:(.text+0xae): undefined reference to `dvdnav_sector_search'
stream_dvdnav.c:(.text+0xbb): undefined reference to `dvdnav_err_to_string'
stream/stream.a(stream_dvdnav.o): In function `new_dvdnav_stream':
stream_dvdnav.c:(.text+0x15e): undefined reference to `dvdnav_open'
stream_dvdnav.c:(.text+0x18b): undefined reference to `dvdnav_get_next_block'
stream_dvdnav.c:(.text+0x198): undefined reference to `dvdnav_sector_search'
stream_dvdnav.c:(.text+0x1a3): undefined reference to `dvdnav_set_readahead_flag'
stream_dvdnav.c:(.text+0x1b1): undefined reference to `dvdnav_set_PGC_positioning_flag'
stream_dvdnav.c:(.text+0x1dc): undefined reference to `dvdnav_get_title_string'
stream/stream.a(stream_dvdnav.o): In function `stream_dvdnav_close':
stream_dvdnav.c:(.text+0x249): undefined reference to `dvdnav_close'
stream/stream.a(stream_dvdnav.o): In function `control':
stream_dvdnav.c:(.text+0x297): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0x2bc): undefined reference to `dvdnav_get_video_aspect'
stream_dvdnav.c:(.text+0x31e): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0x351): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0x368): undefined reference to `dvdnav_get_number_of_parts'
stream_dvdnav.c:(.text+0x3aa): undefined reference to `dvdnav_part_play'
stream/stream.a(stream_dvdnav.o): In function `dvdnav_number_of_subs':
stream_dvdnav.c:(.text+0x3e7): undefined reference to `dvdnav_get_spu_logical_stream'
stream/stream.a(stream_dvdnav.o): In function `dvdnav_lang_from_sid':
stream_dvdnav.c:(.text+0x43a): undefined reference to `dvdnav_get_spu_logical_stream'
stream_dvdnav.c:(.text+0x446): undefined reference to `dvdnav_spu_stream_to_lang'
stream/stream.a(stream_dvdnav.o): In function `dvdnav_sid_from_lang':
stream_dvdnav.c:(.text+0x4c8): undefined reference to `dvdnav_get_spu_logical_stream'
stream_dvdnav.c:(.text+0x4d8): undefined reference to `dvdnav_spu_stream_to_lang'
stream/stream.a(stream_dvdnav.o): In function `dvdnav_lang_from_aid':
stream_dvdnav.c:(.text+0x559): undefined reference to `dvdnav_get_audio_logical_stream'
stream_dvdnav.c:(.text+0x569): undefined reference to `dvdnav_audio_stream_to_lang'
stream/stream.a(stream_dvdnav.o): In function `mp_dvdnav_update_mouse_pos':
stream_dvdnav.c:(.text+0x5bd): undefined reference to `dvdnav_get_current_nav_pci'
stream_dvdnav.c:(.text+0x5d3): undefined reference to `dvdnav_mouse_select'
stream_dvdnav.c:(.text+0x5ff): undefined reference to `dvdnav_get_current_highlight'
stream/stream.a(stream_dvdnav.o): In function `mp_dvdnav_handle_input':
stream_dvdnav.c:(.text+0x63b): undefined reference to `dvdnav_get_current_nav_pci'
stream_dvdnav.c:(.text+0x67a): undefined reference to `dvdnav_mouse_activate'
stream_dvdnav.c:(.text+0x6c6): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0x6df): undefined reference to `dvdnav_menu_call'
stream_dvdnav.c:(.text+0x6f0): undefined reference to `dvdnav_menu_call'
stream_dvdnav.c:(.text+0x711): undefined reference to `dvdnav_button_activate'
stream_dvdnav.c:(.text+0x73e): undefined reference to `dvdnav_menu_call'
stream_dvdnav.c:(.text+0x751): undefined reference to `dvdnav_get_current_highlight'
stream_dvdnav.c:(.text+0x76e): undefined reference to `dvdnav_right_button_select'
stream_dvdnav.c:(.text+0x77e): undefined reference to `dvdnav_left_button_select'
stream_dvdnav.c:(.text+0x796): undefined reference to `dvdnav_lower_button_select'
stream_dvdnav.c:(.text+0x7ae): undefined reference to `dvdnav_upper_button_select'
stream_dvdnav.c:(.text+0x7cb): undefined reference to `dvdnav_menu_call'
stream/stream.a(stream_dvdnav.o): In function `open_s':
stream_dvdnav.c:(.text+0x84c): undefined reference to `dvdnav_title_play'
stream_dvdnav.c:(.text+0x86b): undefined reference to `dvdnav_part_play'
stream_dvdnav.c:(.text+0x87f): undefined reference to `dvdnav_angle_change'
stream_dvdnav.c:(.text+0x8e2): undefined reference to `dvdnav_get_position'
stream_dvdnav.c:(.text+0x958): undefined reference to `dvdnav_menu_call'
stream_dvdnav.c:(.text+0x975): undefined reference to `dvdnav_err_to_string'
stream_dvdnav.c:(.text+0x9e1): undefined reference to `dvdnav_menu_call'
stream_dvdnav.c:(.text+0xa15): undefined reference to `dvdnav_err_to_string'
stream/stream.a(stream_dvdnav.o): In function `fill_buffer':
stream_dvdnav.c:(.text+0xb06): undefined reference to `dvdnav_get_position'
stream_dvdnav.c:(.text+0xb57): undefined reference to `dvdnav_get_next_block'
stream_dvdnav.c:(.text+0xb67): undefined reference to `dvdnav_err_to_string'
stream_dvdnav.c:(.text+0xc38): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0xcad): undefined reference to `dvdnav_get_position'
stream_dvdnav.c:(.text+0xcd5): undefined reference to `dvdnav_current_title_info'
stream_dvdnav.c:(.text+0xd04): undefined reference to `dvdnav_get_current_nav_pci'
stream_dvdnav.c:(.text+0xd19): undefined reference to `dvdnav_get_current_highlight'
stream_dvdnav.c:(.text+0xd79): undefined reference to `dvdnav_get_current_nav_pci'
stream_dvdnav.c:(.text+0xd92): undefined reference to `dvdnav_get_current_highlight'
stream_dvdnav.c:(.text+0xf1c): undefined reference to `dvdnav_still_skip'
stream_dvdnav.c:(.text+0xf2a): undefined reference to `dvdnav_wait_skip'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Falló la compilación.