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

                                                   
              
        

                                 
          
             
                                                                             
                                                                                   
 








                                                                        
         
                       
                                                    

                                   
                                      
                              
                                                                                                     
                        


           
                       
                                                  

                                                              

 
                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-ffmpeg
pkgver=0.10.13
pkgrel=1
pkgdesc="Gstreamer FFMpeg Plugin"
url="http://www.gstreamer.net"
arch="all"
license="GPL"
makedepends="gstreamer-dev gst-plugins-base-dev liboil-dev coreutils orc-dev"
source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.bz2"

_builddir="$srcdir"/gst-ffmpeg-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
build() {
	cd "$_builddir"
	export CFLAGS="$CFLAGS -fno-strict-aliasing"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-orc \
		--with-ffmpeg-extra-configure="--enable-pic --disable-mmx --disable-mmx2" || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find  "$pkgdir"/usr/lib/ -name '*.la' -o -name '*.a' \
		| xargs rm -f
}

md5sums="7f5beacaf1312db2db30a026b36888c4  gst-ffmpeg-0.10.13.tar.bz2"