mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
* Delete libvpx6-1.10.0.recipe * Delete libvpx-1.11.0.recipe * libvpx: bumped to 1.13.1 * libvpx: readded 1.11.0 - library version change * libvpx: added libvpx1.11 for legacy support * Delete libvpx-1.11.0.recipe * Update libvpx1.11-1.11.0.recipe Fixed revision * Update libvpx1.11-1.11.0.recipe Removed portVersionCompat
87 lines
1.9 KiB
Bash
87 lines
1.9 KiB
Bash
SUMMARY="WebM VP8/VP9 video codec library"
|
|
DESCRIPTION="The WebM VP8/VP9 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."
|
|
HOMEPAGE="https://www.webmproject.org/"
|
|
COPYRIGHT="2009-2012 Google Inc.,
|
|
The Mozilla Foundation and
|
|
The Xiph.Org Foundation"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="4"
|
|
SOURCE_URI="https://github.com/webmproject/libvpx/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="965e51c91ad9851e2337aebcc0f517440c637c506f3a03948062e3d5ea129a83"
|
|
SOURCE_FILENAME="libvpx-$portVersion.tar.gz"
|
|
SOURCE_DIR="libvpx-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="7.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libvpx1.11$secondaryArchSuffix = $portVersion
|
|
lib:libvpx$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
"
|
|
|
|
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()
|
|
{
|
|
export CONFIG_SPATIAL_SVC=yes
|
|
# not an auto tools configure
|
|
./configure \
|
|
--prefix="$prefix" \
|
|
--libdir="$libDir" \
|
|
--as=yasm \
|
|
--enable-pic \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--enable-vp8 \
|
|
--enable-vp9 \
|
|
--enable-postproc
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
CONFIG_SPATIAL_SVC=yes \
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libvpx
|
|
fixPkgconfig
|
|
rm -rf "$binDir"
|
|
rm -rf "$developDir"
|
|
rm -rf "$prefix/include"
|
|
}
|