summaryrefslogtreecommitdiffstats
path: root/vlc-git/PKGBUILD
blob: 15610fc9ff6b899d34a8b89f2484a49ccdd3fb2f (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Maintainer: Arkham <arkham at archlinux dot us>
# Contributor: MacWolf <macwolf@archlinux.de>

pkgname=vlc-git
pkgver=20090820
pkgrel=1
pkgdesc="VideoLAN Client is a multi-platform MPEG, VCD/DVD, and DivX player.Development GIT Version."
arch=('i686' 'x86_64')
url="http://www.videolan.org/vlc/"
license=('GPL')
depends=('libmad' 'libmpeg2' 'ffmpeg' \
         'hal' 'fluidsynth' 'lua' 'libass' \
         'libdvbpsi' 'fribidi' 'sysfsutils' \
         'libdvdnav' 'libnotify' 'libdvdread' \
         'libmatroska' 'libcddb' 'libmpcdec'\
         'faad2' 'qt' 'libmodplug' 'speex' 'sdl_image' \
         'libxml2' 'libdca' 'libxv' 'avahi' 'taglib')
makedepends=('a52dec' 'make' 'm4' 'pkgconfig' 'automake' 'autoconf' 'git' 'live-media>=2008.09.02')
conflicts=('vlc' 'vlc-svn' 'vlc-nightly')
provides=('vlc' 'vlc-svn' 'vlc-nightly')
install=vlc.install
source=()
md5sums=()

_gitroot=git://git.videolan.org/vlc.git
_gitname=vlc

build() {
    cd $startdir/src

    if [ -d $_gitname ]; then
        cd $_gitname && git pull origin
        cd ..
    else
        git clone $_gitroot
    fi

    rm -rf $_gitname-build
    git clone $_gitname $_gitname-build

    msg "GIT checkout done or server timeout"

    cd $_gitname-build

    msg "Generating necessary files"

    ./bootstrap

    msg "Generating done."

    msg "Starting make..."

    [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --disable-live555 --with-live555-tree=/usr/lib/live-media"
    [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install --enable-live555 --with-live555-tree=/usr/lib/live-media"

    ./configure --prefix=/usr --prefix=/usr \
        --enable-dvdread \
        --enable-dvdnav \
        --disable-rpath \
        --enable-qt4 \
        --enable-faad \
        --enable-alsa \
        --enable-skins2 \
        --enable-dvb \
        --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-pvr \
        --enable-release \
        --enable-libass \
        --disable-zvbi \
        --program-suffix= \
        --with-dv-raw1394=/usr/include/libraw1394 ${EXTRAFEATURES} || return 1

    CFLAGS="$CFLAGS -fPIC"
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1

    for res in 16 32 48; do
        install -D -m644 share/vlc${res}x${res}.png \
        $startdir/pkg/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
    done
    rm -rf ${startdir}/pkg/usr/lib/mozilla
}