libogg: convert recipe to an actual recipe

This commit is contained in:
Ingo Weinhold
2013-06-11 14:26:11 +02:00
parent 4b7ae1d56c
commit ad8389127a
2 changed files with 118 additions and 12 deletions

View File

@@ -1,24 +1,73 @@
DESCRIPTION="libogg"
HOMEPAGE="http://www.xiph.org"
SUMMARY="Ogg multimedia container format library"
DESCRIPTION="Ogg is a multimedia container format, and the native file and stream format for the Xiph.org multimedia codecs. As with all Xiph.org technology is it an open format free for anyone to use.
As with most container formats it encapsulates raw compressed data and allows the interleaving of audio and video data inside a single convient format. Other examples of container formats are Quicktime .mov, the MPEG program stream, and AVI.
In addition to encapsulation and interleave of multiple data streams, Ogg provides packet framing, error detection, and periodic timestamps for seeking, and in a small, bounded percentage bitrate overhead.
Ogg is a stream oriented container, meaning it can be written and read in one pass, making it a natural fit for internet streaming and use in processing pipelines. This stream orientation is the major design difference over other file-based container formats."
HOMEPAGE="http://www.xiph.org"
LICENSE="BSD (3-clause)"
COPYRIGHT="1994-2011 Xiph.Org Foundation"
SRC_URI="http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz"
CHECKSUM_MD5="0a7eb40b86ac050db3a789ab65fe21c2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libogg-1.3.0.patchset"
PROVIDES="
libogg = $portVersion
lib:libogg = 0.8.0 compat >= 0
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
"
SOURCE_DIR="$portVersionedName"
BUILD()
{
cd libogg-1.3.0
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datarootdir=$COMMON_DOCS
make
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure \
--docdir $developDocDir
make $jobArgs
}
INSTALL()
{
cd libogg-1.3.0
make install
prepareInstalledDevelLibs libogg
fixPkgconfig
# devel package
packageEntries devel \
$dataDir \
$developDir
}
LICENSE="BSD (3-clause)"
COPYRIGHT="1994-2011 Xiph.Org Foundation"
# ----- devel package -------------------------------------------------------
SUMMARY_devel="The libogg development files"
PROVIDES_devel="
libogg_devel = $portVersion
devel:libogg = 0.8.0 compat >= 0
"
REQUIRES_devel="
libogg == $portVersion
"

View File

@@ -0,0 +1,57 @@
From 2620afc432e102f21a44de0576eb9d901cb7c069 Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Tue, 11 Jun 2013 14:17:52 +0200
Subject: configure.in: use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER
diff --git a/configure.in b/configure.in
index 7141645..3a01896 100644
--- a/configure.in
+++ b/configure.in
@@ -19,7 +19,7 @@ AM_PROG_LIBTOOL
AM_PROG_CC_C_O
dnl config.h
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
dnl Set some options based on environment
--
1.7.5
From 79c094d54944f3a970851157f7937811fb73f9d7 Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Tue, 11 Jun 2013 14:18:38 +0200
Subject: doc[/libogg]/Makefile.am: don't hard-code docdir
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 9c2c316..9c727c4 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -2,8 +2,6 @@
SUBDIRS = libogg
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
-
doc_DATA = framing.html index.html oggstream.html ogg-multiplex.html \
stream.png vorbisword2.png white-ogg.png white-xifish.png \
rfc3533.txt rfc5334.txt skeleton.html
diff --git a/doc/libogg/Makefile.am b/doc/libogg/Makefile.am
index 9eb7d34..e34c8a8 100644
--- a/doc/libogg/Makefile.am
+++ b/doc/libogg/Makefile.am
@@ -1,7 +1,5 @@
## Process this file with automake to produce Makefile.in
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg
-
doc_DATA = bitpacking.html datastructures.html decoding.html encoding.html\
general.html index.html ogg_packet.html ogg_packet_clear.html\
ogg_page.html ogg_page_bos.html ogg_page_checksum_set.html\
--
1.7.5