upgrade scons, libdvdnav, libdvdread, fftw.

This commit is contained in:
Jerome Duval
2014-04-23 17:12:06 +00:00
parent 05e5c8b172
commit cf9d970019
9 changed files with 285 additions and 95 deletions

View File

@@ -0,0 +1,53 @@
SUMMARY="Open Source software construction tool"
DESCRIPTION="
SCons is an Open Source software construction tool—that is, a next-generation \
build tool. Think of SCons as an improved, cross-platform substitute for the \
classic Make utility with integrated functionality similar to \
autoconf/automake and compiler caches such as ccache. In short, SCons is an \
easier, more reliable and faster way to build software.
"
HOMEPAGE="http://www.scons.org/"
LICENSE="MIT"
COPYRIGHT="2001-2012 The SCons Foundation"
SRC_URI="http://sourceforge.net/projects/scons/files/scons/$portVersion/scons-$portVersion.tar.gz"
CHECKSUM_SHA256="091ab468f8e6084c30f3ae9fd48828e3884021401cfef4b713d13161ba120201"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="scons-2.2.0.patchset"
PROVIDES="
scons = $portVersion compat >= 2
cmd:scons = $portVersion compat >= 2
cmd:scons_$portVersion = $portVersion compat >= 2
cmd:scons_time = $portVersion compat >= 2
cmd:scons_time_$portVersion = $portVersion compat >= 2
cmd:sconsign = $portVersion compat >= 2
cmd:sconsign_$portVersion = $portVersion compat >= 2
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
for f in "script/scons script/scons-time script/sconsign"; do
sed -i -e "s@#! /usr/bin/env python@#! /bin/env python@" $f
done
python setup.py build
}
INSTALL()
{
options="$options --prefix=$prefix"
options="$options --install-data=$documentationDir"
options="$options --symlink-scons"
options="$options --standard-lib"
python setup.py install $options
}

View File

@@ -1,23 +0,0 @@
DESCRIPTION="libdvdcss"
HOMEPAGE="http://www.videolan.org/developers/libdvdcss.html"
SRC_URI="http://download.videolan.org/pub/libdvdcss/1.2.10/libdvdcss-1.2.10.tar.gz"
CHECKSUM_MD5="7b03a9571c3a85d801330c7772cd69c4"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd libdvdcss-1.2.10
libtoolize --force --copy --install
aclocal
autoconf
automake
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd libdvdcss-1.2.10
make install
}

View File

@@ -9,7 +9,7 @@ COPYRIGHT="Copyright (C) 1998-2008 VideoLAN"
SRC_URI="http://download.videolan.org/pub/libdvdcss/1.2.12/libdvdcss-1.2.12.tar.bz2"
CHECKSUM_SHA256="72465395d494f609b180cab23f9679acf6083fb821bd84979a8e70f7b795db5d"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libdvdcss-${portVersion}.patch"

View File

@@ -1,12 +0,0 @@
diff -urN libdvdcss-1.2.10/configure.ac libdvdcss-1.2.10-haiku/configure.ac
--- libdvdcss-1.2.10/configure.ac 2009-02-28 19:51:59.000000000 +0000
+++ libdvdcss-1.2.10-haiku/configure.ac 2009-02-28 19:39:44.000000000 +0000
@@ -35,7 +35,7 @@
AC_DEFINE(SYS_CYGWIN, 1, Have a Cygwin system.))
AC_DEFINE(WIN32, 1, Using Win32.)
;;
- xbeos*)
+ xbeos*|xhaiku*)
AC_DEFINE(SYS_BEOS, 1, Have a BeOS system.)
;;
x*msvc*)

View File

@@ -1,26 +0,0 @@
DESCRIPTION="libdvdnav"
HOMEPAGE="http://www.mplayerhq.hu/design7/news.html"
SRC_URI="http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2"
CHECKSUM_MD5="d62383c45b28816771e283515f2c27fa"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="media-libs/libdvdcss >= 1.20.10
media-libs/libdvdread >= 4.1.3"
BUILD()
{
cd libdvdnav-4.1.3
./autogen.sh
CFLAGS="-I/boot/common/include -DHAVE_DVDCSS_DVDCSS_H " \
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd libdvdnav-4.1.3
make install
}
LICENSE="GNU GPL v2"
COPYRIGHT="2000 Rich Wareham
2001-2004 the dvdnav project"

View File

@@ -0,0 +1,82 @@
SUMMARY="Easy use of sophisticated DVD navigation features"
DESCRIPTION="
libdvdnav allows easy use of sophisticated DVD navigation features such as \
DVD menus, multiangle playback and even interactive DVD games.
"
HOMEPAGE="http://dvdnav.mplayerhq.hu/"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 Rich Wareham
2001-2004 the dvdnav project"
SRC_URI="http://dvdnav.mplayerhq.hu/releases/libdvdnav-$portVersion.tar.xz"
CHECKSUM_SHA256="7fca272ecc3241b6de41bbbf7ac9a303ba25cb9e0c82aa23901d3104887f2372"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libdvdnav-4.2.0.patch"
PROVIDES="
libdvdnav${secondaryArchSuffix} = $portVersion
lib:libdvdnav
cmd:dvdnav_config
"
REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
libdvdread${secondaryArchSuffix}
libdvdcss${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
libdvdread${secondaryArchSuffix}_devel
libdvdcss${secondaryArchSuffix}_devel
cmd:gcc${secondaryArchSuffix}
cmd:ld${secondaryArchSuffix}
cmd:make
cmd:libtoolize
cmd:aclocal
cmd:autoconf
cmd:pkg_config
"
SOURCE_DIR="libdvdnav-${portVersion}"
BUILD()
{
./autogen.sh
runConfigure ./configure --enable-shared --enable-static
make $jobArgs
}
INSTALL()
{
make install
# move headers to the correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir/
# prepare develop/lib
prepareInstalledDevelLibs libdvdnav libdvdnavmini
fixPkgconfig
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libdvdnav${secondaryArchSuffix}_devel = $portVersion
devel:libdvdnav$secondaryArchSuffix = $portVersion
devel:libdvdnavmini$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libdvdnav$secondaryArchSuffix == $portVersion base
"

View File

@@ -1,33 +0,0 @@
diff -urN libdvdnav-4.1.3/configure.ac libdvdnav-4.1.3-haiku/configure.ac
--- libdvdnav-4.1.3/configure.ac 2009-02-19 07:41:01.000000000 +0000
+++ libdvdnav-4.1.3-haiku/configure.ac 2009-02-19 07:33:27.000000000 +0000
@@ -145,6 +145,8 @@
;;
*mingw32* | *cygwin*)
;;
+ *haiku*)
+ ;;
*)
AC_CHECK_LIB(pthread, pthread_create,
[THREAD_LIBS="-lpthread"],
@@ -165,6 +167,8 @@
*cygwin*)
LDFLAGS="-no-undefined $LDFLAGS"
;;
+ *haiku*)
+ ;;
*)
AC_CHECK_LIB(c, dlopen,
DYNAMIC_LD_LIBS="",
diff -urN libdvdnav-4.1.3/src/remap.c libdvdnav-4.1.3-haiku/src/remap.c
--- libdvdnav-4.1.3/src/remap.c 2009-02-19 07:41:01.000000000 +0000
+++ libdvdnav-4.1.3-haiku/src/remap.c 2009-02-19 08:35:48.000000000 +0000
@@ -28,7 +28,7 @@
#ifndef _MSC_VER
#include <sys/param.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#else
#ifndef MAXPATHLEN
#define MAXPATHLEN 255

View File

@@ -0,0 +1,79 @@
SUMMARY="A simple foundation for reading DVD video disks"
DESCRIPTION="
libdvdread provides a simple foundation for reading DVD video disks. It \
provides the functionality that is required to access many DVDs. libdvdread \
parses IFO files, reads NAV-blocks, and performs CSS authentication and \
descrambling (if an external libdvdcss library is installed).
"
HOMEPAGE="http://dvdnav.mplayerhq.hu"
LICENSE="GNU GPL v2"
COPYRIGHT="1998-1999 Eric Smith
2000-2002 Björn Englund
2000-2003 Håkan Hjort, et al."
SRC_URI="http://dvdnav.mplayerhq.hu/releases/libdvdread-$portVersion.tar.xz"
CHECKSUM_SHA256="af9b98f049580a6521d56c978b736d3d609562dd12955e11d50e26d97542dcd4"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PATCHES="libdvdread-4.2.0.patch"
PROVIDES="
libdvdread${secondaryArchSuffix} = $portVersion
lib:libdvdread
cmd:dvdread_config
"
REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix} >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc${secondaryArchSuffix}
cmd:ld${secondaryArchSuffix}
cmd:make
cmd:libtoolize
cmd:aclocal
cmd:autoconf
"
SOURCE_DIR="libdvdread-${portVersion}"
BUILD()
{
./autogen.sh
runConfigure ./configure --enable-shared --enable-static
make $jobArgs
}
INSTALL()
{
make install
# move headers to the correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir/
# prepare develop/lib
prepareInstalledDevelLibs libdvdread
fixPkgconfig
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libdvdread${secondaryArchSuffix}_devel = $portVersion
devel:libdvdread$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libdvdread$secondaryArchSuffix == $portVersion base
"

View File

@@ -0,0 +1,70 @@
SUMMARY="Fast C library for the Discrete Fourier Transform"
DESCRIPTION="
FFTW is a C subroutine library for computing the discrete Fourier transform \
(DFT) in one or more dimensions, of arbitrary input size, and of both real and \
complex data (as well as of even/odd data, i.e. the discrete cosine/sine \
transforms or DCT/DST). We believe that FFTW, which is free software, should \
become the FFT library of choice for most applications.
Our benchmarks, performed on on a variety of platforms, show that FFTW's \
performance is typically superior to that of other publicly available FFT \
software, and is even competitive with vendor-tuned codes. In contrast to \
vendor-tuned codes, however, FFTW's performance is portable: the same program \
will perform well on most architectures without modification. Hence the name, \
FFTW, which stands for the somewhat whimsical title of Fastest Fourier \
Transform in the West.
"
HOMEPAGE="http://www.fftw.org/"
SRC_URI="http://www.fftw.org/fftw-$portVersion.tar.gz"
CHECKSUM_SHA256="8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"
LICENSE="GNU GPL v2"
COPYRIGHT="
2003, 2007-2011 Matteo Frigo
2003, 2007-2011 Massachusetts Institute of Technology
"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libfftw$secondaryArchSuffix = $portVersion compat >= 3
lib:libfftw$secondaryArchSuffix = $portVersion compat >= 3
cmd:fftw_wisdom
cmd:fftw_wisdom_to_conf
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:awk
cmd:find
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libfftw3
packageEntries devel $developDir
}
PROVIDES_devel="
libfftw${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libfftw${secondaryArchSuffix} = $portVersion compat >= 3
"
REQUIRES_devel="
libfftw$secondaryArchSuffix == $portVersion base
"