# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=libdlna pkgver=0.2.4 pkgrel=0 pkgdesc="An open-source implementation of DLNA (Digital Living Network Alliance) standards" url="http://libdlna.geexbox.org" arch="all" license="LGPL" depends="ctags" depends_dev="ffmpeg-dev" makedepends="$depends_dev" subpackages="$pkgname-dev" source="http://libdlna.geexbox.org/releases/$pkgname-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i -e 's/cat -n/cat/' configure sed -i 's|ffmpeg/avformat.h|libavformat/avformat.h|' \ ./configure src/profiles.h src/*.c || return 1 sed -i 's|ffmpeg/avcodec.h|libavcodec/avcodec.h|' \ ./configure src/profiles.h src/*.c || return 1 } build() { cd "$_builddir" ./configure --prefix=/usr \ --includedir=/usr/include/libavformat \ --with-ffmpeg-dir=/usr/lib \ --disable-static make lib || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="64d7de57aff5a729f2434fc5e69b4ffc libdlna-0.2.4.tar.bz2"