mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
libvpx: support building for secondary architecture
This commit is contained in:
@@ -11,29 +11,35 @@ COPYRIGHT="2009-2012 Google Inc.,
|
|||||||
The Xiph.Org Foundation"
|
The Xiph.Org Foundation"
|
||||||
SRC_URI="http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2"
|
SRC_URI="http://webm.googlecode.com/files/libvpx-v1.0.0.tar.bz2"
|
||||||
CHECKSUM_MD5="d987b5140412edd37d2c6b10c29ad484"
|
CHECKSUM_MD5="d987b5140412edd37d2c6b10c29ad484"
|
||||||
REVISION="1"
|
REVISION="2"
|
||||||
ARCHITECTURES="x86_gcc2 ?x86"
|
ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
|
||||||
PATCHES="libvpx-1.0.0.patchset"
|
PATCHES="libvpx-1.0.0.patchset"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
libvpx = $portVersion
|
libvpx$secondaryArchSuffix = $portVersion
|
||||||
cmd:vp8_scalable_patterns = $portVersion
|
lib:libvpx$secondaryArchSuffix = $portVersion compat >= 1
|
||||||
cmd:vpxdec = $portVersion compat >= 1
|
|
||||||
cmd:vpxenc = $portVersion compat >= 1
|
|
||||||
lib:libvpx = $portVersion compat >= 1
|
|
||||||
"
|
"
|
||||||
|
if [ -z "$secondaryArchSuffix" ]; then
|
||||||
|
PROVIDES="$PROVIDES
|
||||||
|
cmd:vp8_scalable_patterns = $portVersion
|
||||||
|
cmd:vpxdec = $portVersion compat >= 1
|
||||||
|
cmd:vpxenc = $portVersion compat >= 1
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
haiku >= $haikuVersion
|
haiku$secondaryArchSuffix >= $haikuVersion
|
||||||
"
|
"
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
"
|
"
|
||||||
# Note: The build system also looks for libvorbis and SDL, but that seems
|
# 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.
|
# to be needed only for building the sample player, which we don't need.
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
haiku_devel >= $haikuVersion
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||||
cmd:gcc
|
cmd:gcc$secondaryArchSuffix
|
||||||
cmd:ld
|
cmd:ld$secondaryArchSuffix
|
||||||
cmd:make
|
cmd:make
|
||||||
cmd:perl
|
cmd:perl
|
||||||
cmd:yasm
|
cmd:yasm
|
||||||
@@ -46,6 +52,7 @@ BUILD()
|
|||||||
# not an auto tools configure
|
# not an auto tools configure
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="$prefix" \
|
--prefix="$prefix" \
|
||||||
|
--libdir="$libDir" \
|
||||||
--as=yasm \
|
--as=yasm \
|
||||||
--enable-pic \
|
--enable-pic \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
@@ -60,20 +67,26 @@ INSTALL()
|
|||||||
prepareInstalledDevelLibs libvpx
|
prepareInstalledDevelLibs libvpx
|
||||||
fixPkgconfig
|
fixPkgconfig
|
||||||
|
|
||||||
mv $prefix/include $includeDir
|
mkdir -p $includeDir
|
||||||
|
mv $prefix/include/* $includeDir
|
||||||
|
rmdir $prefix/include
|
||||||
|
|
||||||
# devel package
|
# devel package
|
||||||
packageEntries devel \
|
packageEntries devel \
|
||||||
$developDir
|
$developDir
|
||||||
|
|
||||||
|
# Remove stuff we don't need in the secondary architecture base package.
|
||||||
|
if [ -n "$secondaryArchSuffix" ]; then
|
||||||
|
rm -rf $prefix/bin
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----- devel package -------------------------------------------------------
|
# ----- devel package -------------------------------------------------------
|
||||||
|
|
||||||
SUMMARY_devel="The libvpx development files"
|
|
||||||
PROVIDES_devel="
|
PROVIDES_devel="
|
||||||
libvpx_devel = $portVersion
|
libvpx${secondaryArchSuffix}_devel = $portVersion
|
||||||
devel:libvpx = $portVersion compat >= 1
|
devel:libvpx$secondaryArchSuffix = $portVersion compat >= 1
|
||||||
"
|
"
|
||||||
REQUIRES_devel="
|
REQUIRES_devel="
|
||||||
libvpx == $portVersion
|
libvpx$secondaryArchSuffix == $portVersion
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user