aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libdlna/APKBUILD
blob: bc0a22da1e0b1251dc37e57137e40a2a19f72e07 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=libdlna
pkgver=0.2.4
pkgrel=2
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"