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

                                                   
            
         
                                                       
                          
          
                      
                                                       
                        
                                                               
                      
                                                                           

                             
                       
                     
                      
         
 
           
                       




                                      
 
 
         
                                                                               


                                 
                                 
                               
                        

            
 
         
                  


           
                                          
 
 






                                                     



                                                                                                                                                                     
                                                                                                                                               
                                                                                                                                                 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtheora
pkgver=1.1.1
pkgrel=16
pkgdesc="An open video codec developed by the Xiph.org"
url="https://www.xiph.org"
arch="all"
license="BSD-3-Clause"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
depends_dev="libogg-dev"
makedepends="libvorbis-dev libogg-dev autoconf automake libtool
	linux-headers"
source="http://downloads.xiph.org/releases/theora/libtheora-$pkgver.tar.bz2
	libtheora-flags.patch
	enc.patch
	fix-timeb.patch
	fix-mmx.patch
	automake.patch
	"

prepare() {
	default_prepare

	libtoolize --force
	aclocal -I m4
	autoconf --force
	automake --force --add-missing
}

build() {
	CFLAGS="${CFLAGS/-Os/-O3}" CPPFLAGS="${CPPFLAGS/-Os/-O3}" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared \
		--enable-static
	make -j 1 -C lib
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

static() {
	depends=""
	pkgdesc="$pkgdesc (static libraries)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}

sha512sums="9ab9b3af1c35d16a7d6d84f61f59ef3180132e30c27bdd7c0fa2683e0d00e2c791accbc7fd2c90718cc947d8bd10ee4a5940fb55f90f1fd7b0ed30583a47dbbd  libtheora-1.1.1.tar.bz2
72916c4ed0f9609b84af7c72b35b558ecfb2ed7533739e170ed088e06d0e82a585dcc1185f3c5a5d0644d30901459813b635df2ba951e2290bcd4303cfebc20b  libtheora-flags.patch
569132fd0a576abb26b3c28fe84c4c2c66ff871129f00bfb23e593b8f985e47d61bc910d383aa3fc7477cc9de21e86f8df412901c609a62da972410733ec41f2  enc.patch
985dd5f5f3afcb36d71a636082c6e09ec18bb9e442b552babc4706299f502b90e79fb4aacb50a43c5e87a0b8429b311bcfeb21027f6cdca6fdb81e76b491dfff  fix-timeb.patch
f86b15fe5b1029c1e82b8f3785cbd6c81dd5e17dc6c8e4052de3c55482be3948d53828930df864a4668078c5cbab38b1d06b5807563f5fa342da1d084ce924b2  fix-mmx.patch
d72648de058d42ed85d9870596d8c42148f9bcf5b08e2a333c279e1516f4bfa6535566cda807abb06ae58bfb1e373909148cb5c10aad6f56879d9c8452f2cc4f  automake.patch"