summaryrefslogtreecommitdiff
path: root/community/libdlna/PKGBUILD
blob: 57c0ec859b66eb4362603a75a6c37f5d735ce238 (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
# $Id: PKGBUILD 58401 2011-11-12 17:17:29Z ibiru $
# Maintainer: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> 
# Contributor: kastor <kastor@fobos.org.ar>
pkgname=libdlna
pkgver=0.2.3
pkgrel=9
pkgdesc="An open-source implementation of DLNA (Digital Living Network Alliance) standards "
url="http://libdlna.geexbox.org"
license=("LGPL")
arch=('i686' 'x86_64' 'mips64el')
options=('!libtool' '!makeflags')  # not parallel safe, error find -ldlna  
makedepends=('ctags')
depends=('glibc' 'ffmpeg')
source=("http://libdlna.geexbox.org/releases/${pkgname}-${pkgver}.tar.bz2" "libdlna-0.2.3-libavcodec-libavformat-include-paths.patch" "ffmpeg-0.8.patch")

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np1 -i $srcdir/libdlna-0.2.3-libavcodec-libavformat-include-paths.patch
  patch -Np1 -i $srcdir/ffmpeg-0.8.patch
#  sed -i 's|ffmpeg/avformat.h|libavformat/avformat.h|' ./configure src/profiles.h src/*.c 
#  sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' ./configure src/profiles.h src/*.c 
  ./configure --prefix=/usr --includedir=/usr/include/libavformat 
  make -j1  # not parallel safe, error find -ldlna
}
package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make INSTALL=/bin/install DESTDIR=${pkgdir} install
}
md5sums=('2c974f95b711e5fd07f78fc4ebfcca66'
         '937f1aebf930571127856056bd1d3959'
         'a5c9f58233fc7fc79b5fe550b297273b')