mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
88 lines
2.5 KiB
Bash
88 lines
2.5 KiB
Bash
SUMMARY="Theora video compression format library"
|
|
DESCRIPTION="Theora is a free and open video compression format from the \
|
|
Xiph.org Foundation. Like all Xiph.org media technology it can be used to \
|
|
distribute film and video online and on disc without the licensing and \
|
|
royalty fees or vendor lock-in associated with other formats.
|
|
|
|
Theora scales from postage stamp to HD resolution, and is considered \
|
|
particularly competitive at low bitrates. It is in the same class as \
|
|
MPEG-4/DiVX, and like the Vorbis audio codec it has lots of room for \
|
|
improvement as encoder technology develops.
|
|
|
|
Theora is in full public release as of November 3, 2008. The bitstream format \
|
|
for Theora I was frozen Thursday, 2004 July 1. All bitstreams encoded since \
|
|
that date will remain compatible with future releases."
|
|
HOMEPAGE="https://www.theora.org/"
|
|
COPYRIGHT="2002-2009 Xiph.Org Foundation"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="7"
|
|
SOURCE_URI="http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
|
|
CHECKSUM_SHA256="b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc"
|
|
PATCHES="libtheora-1.1.1.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libtheora$secondaryArchSuffix = $portVersion
|
|
lib:libtheora$secondaryArchSuffix = 0.3.10 compat >= 0
|
|
lib:libtheoradec$secondaryArchSuffix = 1.1.4 compat >= 1
|
|
lib:libtheoraenc$secondaryArchSuffix = 1.1.2 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libtheora${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libtheora$secondaryArchSuffix = 0.3.10 compat >= 0
|
|
devel:libtheoradec$secondaryArchSuffix = 1.1.4 compat >= 1
|
|
devel:libtheoraenc$secondaryArchSuffix = 1.1.2 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libtheora$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libogg$secondaryArchSuffix
|
|
"
|
|
# 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:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal -I m4
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure \
|
|
--docdir $developDocDir \
|
|
--disable-asm
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libtheora*.la
|
|
|
|
prepareInstalledDevelLibs libtheora libtheoradec libtheoraenc
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|