mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
libvpx: move the runtimes to a subpackage. (#2577)
This is required on x86_gcc2 because cmd:vpx{dec,enc} are currently
provided by both libvpx-1.0.0 and libvpx_x86-1.7.0. Moving these
runtimes to a _bin subpackage and adding the appropriate conflicts
allows to co-install all the base packages.
Also, for libvpx3-1.5.0, don't remove the runtimes on 2nd arch.
This commit is contained in:
@@ -6,12 +6,12 @@ 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"
|
||||
HOMEPAGE="https://www.webmproject.org/"
|
||||
COPYRIGHT="2009-2012 Google Inc.,
|
||||
The Mozilla Foundation and
|
||||
The Xiph.Org Foundation"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2"
|
||||
CHECKSUM_SHA256="07cedb0a19a44e6d81d75f52eea864f59ef10c6c725cb860431bec6641eafe21"
|
||||
SOURCE_DIR="libvpx-v1.0.0"
|
||||
@@ -20,25 +20,34 @@ PATCHES="libvpx-1.0.0.patchset"
|
||||
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 !x86"
|
||||
|
||||
libVersion="1.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
portVersionCompat="$portVersion compat >= ${portVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libvpx$secondaryArchSuffix = $portVersion
|
||||
lib:libvpx$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libvpx$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:vp8_scalable_patterns = $portVersion
|
||||
cmd:vpxdec = $portVersion compat >= 1
|
||||
cmd:vpxenc = $portVersion compat >= 1
|
||||
"
|
||||
fi
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES_bin="
|
||||
libvpx${secondaryArchSuffix}_bin = $portVersion
|
||||
cmd:vp8_scalable_patterns = $portVersion
|
||||
cmd:vpxdec = $portVersionCompat
|
||||
cmd:vpxenc = $portVersionCompat
|
||||
"
|
||||
REQUIRES_bin="
|
||||
haiku$secondaryArchSuffix
|
||||
libvpx$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
fi
|
||||
|
||||
PROVIDES_devel="
|
||||
libvpx${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libvpx$secondaryArchSuffix = $portVersion compat >= 1
|
||||
devel:libvpx$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libvpx$secondaryArchSuffix == $portVersion
|
||||
@@ -95,5 +104,9 @@ INSTALL()
|
||||
# Remove stuff we don't need in the secondary architecture base package.
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $prefix/bin
|
||||
else
|
||||
# bin package
|
||||
packageEntries bin \
|
||||
"$binDir"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user