summaryrefslogtreecommitdiff
path: root/extra/ogle/PKGBUILD
blob: 9d9b19c50dd798c75084b0592ddaef3d52b2296b (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
# $Id: PKGBUILD 63949 2010-01-19 05:22:55Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>

pkgname=ogle
pkgver=0.9.2
pkgrel=12
pkgdesc="A simple DVD player for Linux"
arch=('i686' 'x86_64')
url="http://www.dtek.chalmers.se/groups/dvd/"
license=('GPL')
depends=('libxml2' 'libdvdread' 'libjpeg' 'libmad' 'libxinerama' 'libxv'
         'alsa-lib' 'a52dec' 'libsm' 'libxxf86vm')
options=('!libtool')
source=(http://www.dtek.chalmers.se/groups/dvd/dist/${pkgname}-${pkgver}.tar.gz
        xvideofix.patch
	gcc34alsafix.patch
	gcc4.patch
	dvdread-4.1.3.patch)
md5sums=('a76a9892bdb807a4bcf859d15a91f0f9'
         '57f1cf36eed82c56f24e9c0fc25ce2b3'
         '4ebc822b252fade6b53c5ceb5be45bf5'
         'd08cff87c5ec41a7eebc0d2384835688'
         '597906c64ff7f5185de8430fdae3107d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 -i "${srcdir}/dvdread-4.1.3.patch" || return 1
  patch -Np1 -i ../xvideofix.patch || return 1
  patch -Np1 -i ../gcc34alsafix.patch || return 1
  patch -Np1 -i ../gcc4.patch || return 1
   # fix alsa detection - stolen from their cvs
  sed -i 's|^.*MINOR\=\=5.*$|#if SND_LIB_MAJOR==0 && SND_LIB_MINOR<6|' configure || return 1
  sed -i 's|__diga_end:|\0;|' libogleao/alsa_audio.c || return 1
  ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --with-x || return 1
  make || return 1
  export LIBRARY_PATH="${pkgdir}/usr/lib/ogle"
  make DESTDIR="${pkgdir}" install || return 1
}