xbmc/xbmc — pull request #492 by davilla (2011-10-13 22:13:47+00:00)
Title: changed libcec to be dyloaded like others, also change lib/libcec/Makefil

Ok, this changes libcec from a static link to dyloaded. As it's dyloaded, you need the real lib name and not the dev name (ie, libcec.so), so have to XB_FIND_SONAME it. The voids building internal as we need that name BEFORE we make.

So this also removes the internal/external usage and makes libcec usage always external from system, like it should be. The Makefile in lib/libcec is turned into a convenience Makefile like libshairport, libnfs and others so you do the following and it goes into /usr/local/...

make -C lib/libcec
sudo make -C lib/libcec install

Note configure is still messy because while libcec can use either libusb or libudev, the libudev method requires a few usb defined from libusb. I will clean that up on a separate commit. Also our configure flag should be for libcec only and inside the libcec check, then we handle libusb/udev.