aboutsummaryrefslogblamecommitdiffstats
path: root/main/ffmpeg/APKBUILD
blob: 2f10b080357a7f6deeddf9f0babeb5ef37f66616 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
          
        




                                                                                              
                                                                              
        
                                                         

                  

                                    
                       

                                        
 

                       





                                     
                                 


                                    
                                  
                                   
                              
                                   
                                 



                                     
                           
                        
                                                                                 
                                                                 



                       



                                                                                      

                                                             
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ffmpeg
pkgver=0.6
pkgrel=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
url="http://ffmpeg.mplayerhq.hu/"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="lame-dev libvorbis-dev faad2-dev faac-dev xvidcore-dev zlib-dev
	imlib2-dev x264-dev libtheora-dev coreutils bzip2-dev perl libvpx-dev"
depends=
source="http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.bz2
	pic.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/pic.patch
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--enable-gpl \
		--enable-libmp3lame \
		--enable-libvorbis \
		--enable-libfaac \
		--enable-libfaad \
		--enable-libvpx \
		--enable-libxvid \
		--enable-libx264 \
		--enable-libtheora \
		--enable-nonfree \
		--enable-postproc \
		--enable-pic \
		--enable-pthreads \
		--enable-shared \
		--enable-x11grab \
		--disable-mmx \
		--disable-mmx2 \
		--disable-stripping \
		|| return 1
	make || return 1
	${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c || return 1
	make doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install install-man || return 1
	install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" || return 1
#	strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1
}
md5sums="d6142a9a5821d6a6262a6edb903faa24  ffmpeg-0.6.tar.bz2
d4870ae7350caed041d2b39e406a173b  pic.patch"