You are not logged in.

#1 2007-11-25 11:50:30

dum8d0g
Member
Registered: 2007-10-23
Posts: 7

Mplayer without lirc support

Hi, im trying to recompile mplayer without lirc-utils and smbclient dependecy. First I copy (fresh updated) /var/abs/extra/multimedia/mplayer/PKGBUILD in my /home/dum8d0g/lab/mplayer and I start editing it. From "depends" array I remove smbclient, jack-audio-connection-kit (I don't want it too) and lirc-utils. From array "makedepends" I remove live-media (Is it realy needed for something?) and finaly from parameters of command "./configure" I remove --with-extraincdir=/usr/lib/live-media and add --disable-jack (consulted with ./configure --help) and --disable-lircc (consulted with google). Finally I run command 'makepkg' and I get (after some time) following output:

libao2/libao2.a(ao_jack.o): In function `outputaudio':
ao_jack.c:(.text+0x22a): undefined reference to `jack_port_get_buffer'
libao2/libao2.a(ao_jack.o): In function `init':
ao_jack.c:(.text+0x51f): undefined reference to `jack_client_new'
ao_jack.c:(.text+0x56c): undefined reference to `jack_set_process_callback'
ao_jack.c:(.text+0x59b): undefined reference to `jack_get_ports'
ao_jack.c:(.text+0x650): undefined reference to `jack_port_register'
> _jack.c:(.text+0x6d3): undefined reference to `jack_client_close'
ao_jack.c:(.text+0x72d): undefined reference to `jack_activate'
ao_jack.c:(.text+0x770): undefined reference to `jack_port_name'
ao_jack.c:(.text+0x785): undefined reference to `jack_connect'
ao_jack.c:(.text+0x7fb): undefined reference to `jack_get_sample_rate'
ao_jack.c:(.text+0x813): undefined reference to `jack_port_get_total_latency'
ao_jack.c:(.text+0x822): undefined reference to `jack_get_buffer_size'
libao2/libao2.a(ao_jack.o): In function `uninit':
ao_jack.c:(.text+0xa1f): undefined reference to `jack_client_close'
input/libinput.a(lirc.o): In function `mp_input_lirc_close':
lirc.c:(.text+0x27): undefined reference to `lirc_freeconfig'
input/libinput.a(lirc.o): In function `mp_input_lirc_read':
lirc.c:(.text+0x1f1): undefined reference to `lirc_nextcode'
lirc.c:(.text+0x229): undefined reference to `lirc_code2char'
input/libinput.a(lirc.o): In function `mp_input_lirc_init':
lirc.c:(.text+0x360): undefined reference to `lirc_init'
lirc.c:(.text+0x384): undefined reference to `lirc_readconfig'
lirc.c:(.text+0x3c8): undefined reference to `lirc_deinit'
input/libinput.a(lirc.o): In function `mp_input_lirc_close':
lirc.c:(.text+0x2f): undefined reference to `lirc_deinit'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.  Aborting...

I think, that build failed because I havent lirc-utils instaled (and I dont want them!) and ./configure --help says about lirc just this:

> ./configure --help |grep lirc
  --enable-lirc          enable LIRC (remote control) support [autodetect]
  --enable-lircc         enable LIRCCD (LIRC client daemon) input [autodetect]
>

But nothing about disabling. That [autodetect] scary me, but in first phase of ./configure I see:

Checking for lirc ... no 
Checking for lircc ... no

So what autodetect do? And why I cant do simply --disable-lirc and so..? I just want to customize my system to be perfect. I never will use lirc (I havent). I dont want to use jack because i like alsa in pure (did I miss something?). I dont want to use some live-media, why? I dont want to have smbclient because mplayer (WHY?).

So, question is: how to remove dependency at lirc-utils in mplayer (without using force in pacman)?

Note:

> ldd `whereis mplayer` | grep lirc
..
        liblirc_client.so.0 => /usr/lib/liblirc_client.so.0 (0xb7004000)
..
>

Last edited by dum8d0g (2007-11-25 11:51:35)

Offline

#2 2007-11-27 22:53:00

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Mplayer without lirc support

Hi,

I've build successfully mplayer without 'smbclient' 'lirc-utils' 'live-media' and 'jack-audio-connection-kit' dependencies.

Before executing makepkg I removed the 'smbclient' 'lirc-utils' and 'jack-audio-connection-kit' packages from my system to be shure mplayer compiles without them. The 'live-media' packages was not on my system.

Like you, I used the PKGBUILD from the ABS tree.

From the depends I deleted:
smbclient
lirc-utils
jack-audio-connection-kit from the depends

and from the make-depends:
live-media

From the configure options I removed:
--with-extraincdir=/usr/lib/live-media

and added this ones:
--disable-jack
--disable-lirc
--disable-lircc
--disable-smb
--disable-live

This is the PKGBUILD I used.

# $Id: PKGBUILD,v 1.13 2007/11/03 13:14:06 thomas Exp $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=mplayer
pkgver=1.0rc2
pkgrel=1
pkgdesc="A movie player for linux"
arch=(i686 x86_64)
depends=('libxxf86dga' 'libxv' 'libmad' 'libungif' 'cdparanoia' 'gtk2'
         'sdl' 'lame' 'libtheora' 'xvidcore' 'libgl' 'aalib' 'x264>=20070616' 'faac')
license=('GPL')
url="http://www.mplayerhq.hu/"
makedepends=('libcaca' 'unzip' 'libdts')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
source=(ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}.tar.bz2
        ftp://ftp1.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2)
        #MPlayer-1.0rc1-gnome-screensaver.patch)
md5sums=('7e27e535c2d267637df34898f1b91707'
         'e4e2020d11b681aac898103b3ba723c4')

build() {
  cd $startdir/src/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
  
  cd $startdir/src/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 \
      --disable-fribidi --disable-libdv --disable-musepack \
      --language=all --disable-dvdnav --disable-esd --disable-mga \
      --disable-jack --disable-lirc --disable-lircc --disable-smb --disable-live

  [ "$CARCH" = "i686" ] &&  sed 's|-march=i486|-march=i686|g' -i config.mak

  make || return 1
  make -j1 DESTDIR=${startdir}/pkg install
  cp etc/{codecs.conf,input.conf,example.conf} ${startdir}/pkg/etc/mplayer/
  ln -s /usr/share/fonts/TTF/Vera.ttf ${startdir}/pkg/usr/share/mplayer/subfont.ttf
  rm -rf ${startdir}/pkg/usr/share/mplayer/font
  mv ${startdir}/src/Blue ${startdir}/pkg/usr/share/mplayer/skins/default
}

Offline

Board footer

Powered by FluxBB