Files
haikuports/media-libs/libvpx/libvpx4-1.6.1.recipe
2017-09-22 21:42:09 +02:00

92 lines
2.0 KiB
Bash

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"
COPYRIGHT="2009-2012 Google Inc.,
The Mozilla Foundation and
The Xiph.Org Foundation"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/webmproject/libvpx/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="cda8bb6f0e4848c018177d3a576fa83ed96d762554d7010fe4cfb9d70c22e588"
SOURCE_DIR="libvpx-$portVersion"
PATCHES="libvpx-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
libvpx$secondaryArchSuffix = $portVersion
cmd:vpxdec = $portVersion compat >= 1
cmd:vpxenc = $portVersion compat >= 1
lib:libvpx$secondaryArchSuffix = 4.1.0 compat >= 4
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libvpx${secondaryArchSuffix}_devel = $portVersion
devel:libvpx$secondaryArchSuffix = 4.1.0 compat >= 4
"
REQUIRES_devel="
libvpx$secondaryArchSuffix == $portVersion
"
CONFLICTS_devel="
libvpx3${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
# 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="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:awk
cmd:make
cmd:perl
cmd:yasm
cmd:egrep
cmd:grep
cmd:sed
cmd:find
cmd:xargs
cmd:diff
"
BUILD()
{
# not an auto tools configure
./configure \
--prefix="$prefix" \
--libdir="$libDir" \
--as=yasm \
--enable-pic \
--enable-shared \
--enable-vp8
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libvpx
fixPkgconfig
mkdir -p $includeDir
mv $prefix/include/* $includeDir
rmdir $prefix/include
# devel package
packageEntries devel \
$developDir
}