libtheora: convert recipe to an actual recipe

This commit is contained in:
Ingo Weinhold
2013-06-11 20:27:36 +02:00
parent 1a3b968ccb
commit 105918e37f
2 changed files with 123 additions and 14 deletions

View File

@@ -1,29 +1,80 @@
DESCRIPTION="Theora is a free and open video compression format from the Xiph.org Foundation."
HOMEPAGE="http://www.theora.org/"
SUMMARY="Theora video compression format library"
DESCRIPTION="Theora is a free and open video compression format from the Xiph.org Foundation. Like all our multimedia 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="http://www.theora.org/"
LICENSE="BSD (3-clause)"
COPYRIGHT="2002-2009 Xiph.Org Foundation"
SRC_URI="http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="media-libs/libogg >= 1.2.0
media-libs/libvorbis >= 1.3.0"
CHECKSUM_MD5="292ab65cedd5021d6b7ddd117e07cd8e"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libtheora-1.1.1.patchset"
PROVIDES="
libtheora = $portVersion
lib:libtheora = 0.3.10 compat >= 0
lib:libtheoradec = 1.1.4 compat >= 1
lib:libtheoraenc = 1.1.2 compat >= 1
"
REQUIRES="
haiku >= $haikuVersion
lib:libogg
"
BUILD_REQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
cmd:pkg_config
devel:libogg
"
# 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="
haiku_devel >= $haikuVersion
"
SOURCE_DIR="$portVersionedName"
BUILD()
{
cd libtheora-1.1.1
libtoolize --force --copy --install
aclocal -I m4
autoconf
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datarootdir=$COMMON_DOCS \
automake --add-missing
runConfigure ./configure \
--docdir $developDocDir \
--disable-asm
make
make $jobArgs
}
INSTALL()
{
cd libtheora-1.1.1
make install
prepareInstalledDevelLibs libtheora libtheoradec libtheoraenc
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
LICENSE="BSD (3-clause)"
COPYRIGHT="2002-2009 Xiph.Org Foundation"
# ----- devel package -------------------------------------------------------
SUMMARY_devel="The libtheora development files"
PROVIDES_devel="
libtheora_devel = $portVersion
devel:libtheora = 0.3.10 compat >= 0
devel:libtheoradec = 1.1.4 compat >= 1
devel:libtheoraenc = 1.1.2 compat >= 1
"
REQUIRES_devel="
libtheora == $portVersion
"