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
"

View File

@@ -0,0 +1,58 @@
From 57bef9f56b8e4baa23023a8bc044e1a0c35f9431 Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Tue, 11 Jun 2013 19:50:31 +0200
Subject: configure.ac: AM_CONFIG_HEADER -> AC_CONFIG_HEADERS
diff --git a/configure.ac b/configure.ac
index 8260bdf..c81fdb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,7 @@ AC_INIT(libtheora,[1.1.1])
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([lib/fdct.c])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
--
1.7.5
From bb50525dec8c8c7f11ec958ac9329333be027949 Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Tue, 11 Jun 2013 20:20:58 +0200
Subject: */Makefile.am: remove hard-coded docdir
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 30eaad8..5aeda7d 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -2,8 +2,6 @@
SUBDIRS = spec
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
-
static_docs = vp3-format.txt color.html \
draft-ietf-avt-rtp-theora-00.xml \
draft-ietf-avt-rtp-theora-00.txt
diff --git a/doc/spec/Makefile.am b/doc/spec/Makefile.am
index 3a181a2..00e9271 100644
--- a/doc/spec/Makefile.am
+++ b/doc/spec/Makefile.am
@@ -3,8 +3,6 @@
# makefile to generate the spec document from sources
# requires transfig and pdflatex
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
-
built_docs = Theora.pdf
if BUILD_SPEC
--
1.7.5