diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-22 08:03:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-22 10:32:40 +0000 |
commit | 3cbd465f269c0504654d700336ed5e0573acfa0c (patch) | |
tree | 55acd93fe9684cd8fe466411a367b924bf9ed972 /testing/libdlna/APKBUILD | |
parent | 49ef3cc88b68b40376fb354dfab86dd655ed33cf (diff) | |
download | aports-3cbd465f269c0504654d700336ed5e0573acfa0c.tar.bz2 aports-3cbd465f269c0504654d700336ed5e0573acfa0c.tar.xz |
testing/libdlna: cleanup and rebuild against ffmpeg-0.9
Diffstat (limited to 'testing/libdlna/APKBUILD')
-rw-r--r-- | testing/libdlna/APKBUILD | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/testing/libdlna/APKBUILD b/testing/libdlna/APKBUILD index 1f6fa2bb06..add2354e8d 100644 --- a/testing/libdlna/APKBUILD +++ b/testing/libdlna/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=libdlna pkgver=0.2.3 -pkgrel=0 +pkgrel=1 pkgdesc="An open-source implementation of DLNA (Digital Living Network Alliance) standards" url="http://libdlna.geexbox.org" arch="all" @@ -12,24 +12,38 @@ depends_dev="ffmpeg-dev" makedepends="$depends_dev" subpackages="$pkgname-dev" source="http://libdlna.geexbox.org/releases/$pkgname-$pkgver.tar.bz2 - Makefile.patched" + avmedia_type.patch" + _builddir="$srcdir"/$pkgname-$pkgver -build() { +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 + 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 - cp "$srcdir"/Makefile.patched Makefile - make || return 1 + make lib || return 1 } + package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="2c974f95b711e5fd07f78fc4ebfcca66 libdlna-0.2.3.tar.bz2 -5ba58c2f91079f73d80837974259d2ad Makefile.patched" +7d67a4029c8145a0f9270057143e5e45 avmedia_type.patch" |