From cf9d970019e1ae7f0c002f2c214051fe44547d2a Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 23 Apr 2014 17:12:06 +0000 Subject: [PATCH] upgrade scons, libdvdnav, libdvdread, fftw. --- dev-util/scons/scons-2.3.1.recipe | 53 ++++++++++++ media-libs/libdvdcss/libdvdcss-1.2.10.recipe | 23 ------ media-libs/libdvdcss/libdvdcss-1.2.12.recipe | 2 +- .../libdvdcss/patches/libdvdcss-1.2.10.patch | 12 --- media-libs/libdvdnav/libdvdnav-4.1.3.recipe | 26 ------ media-libs/libdvdnav/libdvdnav-4.2.1.recipe | 82 +++++++++++++++++++ .../libdvdnav/patches/libdvdnav-4.1.3.patch | 33 -------- media-libs/libdvdread/libdvdread-4.2.1.recipe | 79 ++++++++++++++++++ sci-libs/fftw/fftw-3.3.4.recipe | 70 ++++++++++++++++ 9 files changed, 285 insertions(+), 95 deletions(-) create mode 100644 dev-util/scons/scons-2.3.1.recipe delete mode 100644 media-libs/libdvdcss/libdvdcss-1.2.10.recipe delete mode 100644 media-libs/libdvdcss/patches/libdvdcss-1.2.10.patch delete mode 100644 media-libs/libdvdnav/libdvdnav-4.1.3.recipe create mode 100644 media-libs/libdvdnav/libdvdnav-4.2.1.recipe delete mode 100644 media-libs/libdvdnav/patches/libdvdnav-4.1.3.patch create mode 100644 media-libs/libdvdread/libdvdread-4.2.1.recipe create mode 100644 sci-libs/fftw/fftw-3.3.4.recipe diff --git a/dev-util/scons/scons-2.3.1.recipe b/dev-util/scons/scons-2.3.1.recipe new file mode 100644 index 000000000..34c143f5a --- /dev/null +++ b/dev-util/scons/scons-2.3.1.recipe @@ -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 +} diff --git a/media-libs/libdvdcss/libdvdcss-1.2.10.recipe b/media-libs/libdvdcss/libdvdcss-1.2.10.recipe deleted file mode 100644 index 74e037a57..000000000 --- a/media-libs/libdvdcss/libdvdcss-1.2.10.recipe +++ /dev/null @@ -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 -} diff --git a/media-libs/libdvdcss/libdvdcss-1.2.12.recipe b/media-libs/libdvdcss/libdvdcss-1.2.12.recipe index 619575b1e..dfc6bda65 100644 --- a/media-libs/libdvdcss/libdvdcss-1.2.12.recipe +++ b/media-libs/libdvdcss/libdvdcss-1.2.12.recipe @@ -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" diff --git a/media-libs/libdvdcss/patches/libdvdcss-1.2.10.patch b/media-libs/libdvdcss/patches/libdvdcss-1.2.10.patch deleted file mode 100644 index 9a3235803..000000000 --- a/media-libs/libdvdcss/patches/libdvdcss-1.2.10.patch +++ /dev/null @@ -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*) diff --git a/media-libs/libdvdnav/libdvdnav-4.1.3.recipe b/media-libs/libdvdnav/libdvdnav-4.1.3.recipe deleted file mode 100644 index 31ec8bbc1..000000000 --- a/media-libs/libdvdnav/libdvdnav-4.1.3.recipe +++ /dev/null @@ -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" diff --git a/media-libs/libdvdnav/libdvdnav-4.2.1.recipe b/media-libs/libdvdnav/libdvdnav-4.2.1.recipe new file mode 100644 index 000000000..3b139d378 --- /dev/null +++ b/media-libs/libdvdnav/libdvdnav-4.2.1.recipe @@ -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 + " diff --git a/media-libs/libdvdnav/patches/libdvdnav-4.1.3.patch b/media-libs/libdvdnav/patches/libdvdnav-4.1.3.patch deleted file mode 100644 index 8850c5401..000000000 --- a/media-libs/libdvdnav/patches/libdvdnav-4.1.3.patch +++ /dev/null @@ -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 --#include -+#include - #else - #ifndef MAXPATHLEN - #define MAXPATHLEN 255 diff --git a/media-libs/libdvdread/libdvdread-4.2.1.recipe b/media-libs/libdvdread/libdvdread-4.2.1.recipe new file mode 100644 index 000000000..be2de068d --- /dev/null +++ b/media-libs/libdvdread/libdvdread-4.2.1.recipe @@ -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 + " diff --git a/sci-libs/fftw/fftw-3.3.4.recipe b/sci-libs/fftw/fftw-3.3.4.recipe new file mode 100644 index 000000000..465634abd --- /dev/null +++ b/sci-libs/fftw/fftw-3.3.4.recipe @@ -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 + "