libvpx: convert recipe to an actual recipe

This commit is contained in:
Ingo Weinhold
2013-06-11 21:49:09 +02:00
parent 6092f5728d
commit 6b558bc606
3 changed files with 206 additions and 87 deletions

View File

@@ -1,26 +1,79 @@
DESCRIPTION="libvpx - WebM VP8 Codec SDK"
HOMEPAGE="http://www.webmproject.org"
SRC_URI="http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2"
CHECKSUM_MD5="d987b5140412edd37d2c6b10c29ad484"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd libvpx-v1.0.0
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--enable-pic \
--enable-vp8
make
}
INSTALL()
{
cd libvpx-v1.0.0
make install
}
SUMMARY="WebM VP8 video codec library"
DESCRIPTION="The WebM VP8 SDK allows you to integrate your applications with the VP8 video codec, a high quality, royalty free, open source codec deployed on millions of computers and devices worldwide.
This distribution of the WebM VP8 Codec SDK includes the following support:
* WebM VP8 Encoder
* WebM VP8 Decoder"
HOMEPAGE="http://www.webmproject.org"
LICENSE="BSD (3-clause)"
COPYRIGHT="2009-2012 Google Inc.,
The Mozilla Foundation and
The Xiph.Org Foundation"
SRC_URI="http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2"
CHECKSUM_MD5="d987b5140412edd37d2c6b10c29ad484"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libvpx-1.0.0.patchset"
PROVIDES="
libvpx = $portVersion
cmd:vp8_scalable_patterns = $portVersion
cmd:vpxdec = $portVersion compat >= 1
cmd:vpxenc = $portVersion compat >= 1
lib:libvpx = $portVersion compat >= 1
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
cmd:gcc
cmd:ld
cmd:make
cmd:perl
cmd:yasm
"
# Note: The build system also looks for libvorbis and SDL, but that seems
# to be needed only for building the sample player, which we don't need.
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
"
SOURCE_DIR="libvpx-v1.0.0"
BUILD()
{
# not an auto tools configure
./configure \
--prefix="$prefix" \
--as=yasm \
--enable-pic \
--enable-shared \
--enable-vp8
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libvpx
fixPkgconfig
mv $prefix/include $includeDir
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
SUMMARY_devel="The libvpx development files"
PROVIDES_devel="
libvpx_devel = $portVersion
devel:libvpx = $portVersion compat >= 1
"
REQUIRES_devel="
libvpx == $portVersion
"