schroedinger: converted recipe.

This commit is contained in:
Jerome Duval
2014-06-13 19:32:56 +00:00
parent cff1e14810
commit dfdaaca9d9
3 changed files with 100 additions and 30 deletions

View File

@@ -1,13 +0,0 @@
--- schroedinger-1.0.11/configure.ac 2012-01-23 01:32:45.012320768 +0000
+++ schroedinger-1.0.11-haiku/configure.ac 2012-04-09 11:35:40.101187584 +0000
@@ -85,6 +85,10 @@
PTHREAD_CFLAGS=
PTHREAD_LIBS=-pthread
;;
+ haiku*)
+ PTHREAD_CFLAGS=
+ PTHREAD_LIBS=
+ ;;
*)
PTHREAD_CFLAGS=
PTHREAD_LIBS=-lpthread

View File

@@ -0,0 +1,33 @@
From 0c4df55a7f402a239470bef6e9bb5bf43b30da4e Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 13 Jun 2014 18:42:15 +0000
Subject: Haiku patch
diff --git a/configure.ac b/configure.ac
index 80b561c..448daf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AM_INIT_AUTOMAKE(1.6)
SCHRO_MAJORMINOR=1.0
AC_SUBST(SCHRO_MAJORMINOR)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
dnl CURRENT, REVISION, AGE
dnl - library source changed -> increment REVISION
@@ -85,6 +85,10 @@ if test "x${with_thread}" = "xpthread" ; then
PTHREAD_CFLAGS=
PTHREAD_LIBS=-pthread
;;
+ haiku*)
+ PTHREAD_CFLAGS=
+ PTHREAD_LIBS=
+ ;;
*)
PTHREAD_CFLAGS=
PTHREAD_LIBS=-lpthread
--
1.8.3.4

View File

@@ -1,27 +1,77 @@
DESCRIPTION="Schroedinger Dirac Video codec"
HOMEPAGE="http://www.diracvideo.org"
SRC_URI="http://diracvideo.org/download/schroedinger/schroedinger-1.0.11.tar.gz"
SUMMARY="Schroedinger Dirac Video codec"
DESCRIPTION="
Schroedinger (or "schro" for short) is an implementation of the \
Dirac and SMPTE VC-2 video compression specification. Dirac was \
developed by BBC Research & Development (http://www.bbc.co.uk/rd/) \
as an open technology with open licensing.
Schroedinger is the C library implementing video encoding and \
decoding. Most end users will want to use an application that \
uses the Schroedinger library for encoding and decoding Dirac \
streams. A few such applications are Totem, VLC, and Mplayer. \
In addition, media frameworks such as GStreamer and decoding \
libraries such as ffmpeg can be configured to use Schroedinger \
either internally or via plugins.
"
HOMEPAGE="http://www.diracvideo.org"
COPYRIGHT="
2006 BBC and Fluendo"
LICENSE="MIT"
SRC_URI="http://diracvideo.org/download/schroedinger/schroedinger-$portVersion.tar.gz"
CHECKSUM_SHA256="1e572a0735b92aca5746c4528f9bebd35aa0ccf8619b22fa2756137a8cc9f912"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-util/pkg-config >= 0.23
dev-lang/orc >= 0.4.16"
CHECKSUM_MD5="da6af08e564ca1157348fb8d92efc891"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="schroedinger-$portVersion.patchset"
PROVIDES="
schroedinger$secondaryArchSuffix = $portVersion compat >= 1.0
lib:libschroedinger_1.0$secondaryArchSuffix = 0.11.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:liborc_0.4$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:liborc_0.4$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cd schroedinger-1.0.11
autoconf
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--mandir=$COMMON_DOCS/man
make
autoreconf -f -i -I m4
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
cd schroedinger-1.0.11
make install
prepareInstalledDevelLibs libschroedinger-1.0
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
LICENSE="MIT"
COPYRIGHT="2006 BBC and Fluendo"
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
schroedinger${secondaryArchSuffix}_devel = $portVersion compat >= 1.0
devel:libschroedinger_1.0$secondaryArchSuffix = 0.11.0 compat >= 0
"
REQUIRES_devel="
schroedinger$secondaryArchSuffix == $portVersion base
"