summaryrefslogtreecommitdiffstats
path: root/vlc-branch/PKGBUILD
blob: a6c19de2e4f5039a30098f7196c57f34a6ec1b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Muhammad 'MJ' Jassim <UnbreakableMJ@gmail.com>
pkgname=vlc-branch
pkgver=0.9.2
pkgrel=1
#_ffmpegver=20071204
pkgdesc="Bleeding-edge version of VideoLAN Client, the multi-platform MPEG/VCD/DVD/XviD/DivX player."
depends=('libmad' 'libmpeg2' 'ffmpeg' 'hal' 'libid3tag' \
	 'libdvbpsi4' 'fribidi' 'sysfsutils' 'libdvdnav' 'libdvdread' \
	 'xvidcore' 'libmatroska' 'libxv' 'alsa-lib' 'libtheora' \
	 'faad2' 'qt' 'libdca' 'libxml2' 'lirc-utils' 'lua' 'libcddb' \
	 'smbclient' 'taglib' 'flac' 'libmpcdec' 'libmodplug' 'avahi' \
	 'sdl_image' 'libraw1394' 'speex' 'libnotify' 'libraw1394')
	 ##namcap says 'libraw1394' dependency included and not needed
arch=('i686' 'x86_64')
makedepends=('live-media' 'gnome-vfs' 'mesa' 'sdl_image' 'libmpcdec' \
	     'speex' 'libnotify' 'libmodplug' 'gettext')
install=vlc-branch.install
url="http://www.videolan.org/vlc/"
license=('GPL2')
provides=('vlc' 'vlc-svn' 'vlc-git')
#install=vlc-branch.install
source=(http://download.videolan.org/pub/videolan/vlc/0.9.2/vlc-0.9.2.tar.bz2)
md5sums=('f7d843d0725abb57196c4012eeb0e636' )
VLCINSTALLDIR="/usr"

build() {

  ##older versions used "vlc-${_gitver}-git" or "vlc-${_gitver}-test1"
  cd ${startdir}/src/vlc-0.9.2
  
  [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --disable-live555 --with-live555-tree=/usr/lib/live-media"
  [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install"
  ./configure --prefix=${VLCINSTALLDIR} --enable-dvdread --enable-dvdnav \
	      --enable-madi --enable-ffmpeg --disable-rpath \
	      --enable-qt4 --enable-faad --enable-alsa --enable-skins2 \
	      --enable-dvb --enable-dmo --with-ffmpeg-faac \
	      --with-ffmpeg-vorbis --with-ffmpeg-dts --with-ffmpeg-ogg \
	      --with-ffmpeg-theora --enable-v4l --enable-theora \
	      --enable-flac --enable-snapshot --enable-hal --enable-dbus \
	      --enable-ogg --enable-dbus-control --enable-shared \
	      --enable-nls --enable-lirc --enable--shout \
	      --enable-debug --program-suffix= \
	      --with-dv-raw1394=/usr/include/libraw1394 ${EXTRAFEATURES} || return 1
  ##Using "--enable-wxwidgets --with-wx-config=wx-config-2.6" is useless now
  ##Don't enable real or realrtsp. They won't work anyway, and build might fail.
  
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1
  
  for res in 16 32 48; do
    install -D -m644 ${startdir}/src/vlc-${pkgver}/share/vlc${res}x${res}.png \
		     ${startdir}/pkg/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
  done
  
  if [ "${VLCINSTALLDIR}" != "/opt/vlc-branch" ]
   then
  	sed -i -e 's:/opt/vlc-branch/bin:${VLCINSTALLDIR}/bin:' ${startdir}/src/vlc-branch.sh
  fi
  [ "${VLCINSTALLDIR}" != "/usr" ] && install -D -m555 ${startdir}/src/vlc-branch.sh \
  	${startdir}/pkg/etc/profile.d/vlc-branch.sh
  rm -rf ${startdir}/pkg/usr/lib/mozilla
}