summaryrefslogtreecommitdiffstats
path: root/testing/libdlna/APKBUILD
blob: 1f6fa2bb064e52e132b6215979fc767ae5095dcd (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=libdlna
pkgver=0.2.3
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
	Makefile.patched"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	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
	./configure --prefix=/usr \
		--includedir=/usr/include/libavformat \
		--with-ffmpeg-dir=/usr/lib \
		--disable-static
	cp "$srcdir"/Makefile.patched Makefile
	make || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="2c974f95b711e5fd07f78fc4ebfcca66  libdlna-0.2.3.tar.bz2
5ba58c2f91079f73d80837974259d2ad  Makefile.patched"