From 8e4a2209d4662fde7e758668157c0d27fa825be8 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 28 Aug 2014 21:16:41 +0000 Subject: [PATCH] openexr: added a recipe for version 2.2.0 * added the related recipe for ilmbase. --- media-libs/ilmbase/ilmbase-2.2.0.recipe | 90 +++++++++++++++++ media-libs/openexr/openexr-2.2.0.recipe | 123 ++++++++++++++++++++++++ 2 files changed, 213 insertions(+) create mode 100644 media-libs/ilmbase/ilmbase-2.2.0.recipe create mode 100644 media-libs/openexr/openexr-2.2.0.recipe diff --git a/media-libs/ilmbase/ilmbase-2.2.0.recipe b/media-libs/ilmbase/ilmbase-2.2.0.recipe new file mode 100644 index 000000000..b299bdbd6 --- /dev/null +++ b/media-libs/ilmbase/ilmbase-2.2.0.recipe @@ -0,0 +1,90 @@ +DESCRIPTION=" +IlmBase provides base libraries for OpenEXR. It contains five \ +modules. Half encapsulates 16-bit floating-point format. IlmThread \ +is thread abstraction library which currently supports pthreads and \ +Windows threads. Imath implements 2D and 3D vectors, 3x3 and 4x4 \ +matrices, quaternions and other useful math functions. Iex is an \ +exception-handling library. There is also IexMath module. +" +SUMMARY="OpenEXR ILM Base libraries" +HOMEPAGE="http://www.openexr.com" +LICENSE="BSD (3-clause)" +COPYRIGHT="2002-2011 Industrial Light & Magic" +SRC_URI="http://download.savannah.nongnu.org/releases/openexr/ilmbase-$portVersion.tar.gz" +CHECKSUM_SHA256="ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7" +REVISION="1" + +ARCHITECTURES="x86 x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + ilmbase$secondaryArchSuffix = $portVersion + lib:libHalf$secondaryArchSuffix = 12.0.0 compat >= 12 + lib:libIex_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + lib:libIexMath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + lib:libIlmThread_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + lib:libImath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libstdc++$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:which + cmd:autoconf + cmd:aclocal + cmd:libtoolize + " + +BUILD() +{ + ./bootstrap + runConfigure ./configure + make +} + +INSTALL() +{ + make install + + # prepare development lib links + prepareInstalledDevelLibs libHalf libIex libIexMath libIlmThread \ + libImath libIex-2_2 libIexMath-2_2 libIlmThread-2_2 libImath-2_2 + + fixPkgconfig + + # devel package + packageEntries devel $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + ilmbase${secondaryArchSuffix}_devel = $portVersion + devel:libHalf$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIex_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIexMath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIlmThread_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libImath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIex$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIexMath$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIlmThread$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libImath$secondaryArchSuffix = 12.0.0 compat >= 12 + " +REQUIRES_devel=" + ilmbase$secondaryArchSuffix == $portVersion base + " diff --git a/media-libs/openexr/openexr-2.2.0.recipe b/media-libs/openexr/openexr-2.2.0.recipe new file mode 100644 index 000000000..1889795e8 --- /dev/null +++ b/media-libs/openexr/openexr-2.2.0.recipe @@ -0,0 +1,123 @@ +DESCRIPTION=" +OpenEXR is a high dynamic-range (HDR) image file format developed \ +by Industrial Light & Magic for use in computer imaging \ +applications. OpenEXR is used by ILM on all motion pictures \ +currently in production. The first movies to employ OpenEXR were \ +Harry Potter and the Sorcerers Stone, Men in Black II, Gangs of \ +New York, and Signs. Since then, OpenEXR has become ILM's main \ +image file format. +" +SUMMARY="OpenEXR is a high dynamic-range (HDR) image file format" +HOMEPAGE="http://www.openexr.com" +LICENSE="BSD (3-clause)" +COPYRIGHT="2002-2011 Industrial Light & Magic" +SRC_URI="http://download.savannah.nongnu.org/releases/openexr/openexr-$portVersion.tar.gz" +CHECKSUM_SHA256="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231" +REVISION="1" + +ARCHITECTURES="x86 x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +else + ARCHITECTURES="$ARCHITECTURES !x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + openexr$secondaryArchSuffix = $portVersion + lib:libIlmImf$secondaryArchSuffix = 22.0.0 compat >= 22 + lib:libIlmImf_2_2$secondaryArchSuffix = 22.0.0 compat >= 22 + lib:libIlmImfUtil$secondaryArchSuffix = 22.0.0 compat >= 22 + lib:libIlmImfUtil_2_2$secondaryArchSuffix = 22.0.0 compat >= 22 + cmd:exrenvmap$secondaryArchSuffix = $portVersion + cmd:exrheader$secondaryArchSuffix = $portVersion + cmd:exrmakepreview$secondaryArchSuffix = $portVersion + cmd:exrmaketiled$secondaryArchSuffix = $portVersion + cmd:exrmultipart$secondaryArchSuffix = $portVersion + cmd:exrmultiview$secondaryArchSuffix = $portVersion + cmd:exrstdattr$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libHalf$secondaryArchSuffix == 12.0.0 + lib:libIex_2_2$secondaryArchSuffix == 12.0.0 + lib:libIexMath_2_2$secondaryArchSuffix == 12.0.0 + lib:libIlmThread_2_2$secondaryArchSuffix == 12.0.0 + lib:libImath_2_2$secondaryArchSuffix == 12.0.0 + lib:libz$secondaryArchSuffix + lib:libstdc++$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + ilmbase${secondaryArchSuffix}_devel == $portVersion + devel:libHalf$secondaryArchSuffix == 12.0.0 + devel:libIex$secondaryArchSuffix == 12.0.0 + devel:libIexMath$secondaryArchSuffix == 12.0.0 + devel:libIlmThread$secondaryArchSuffix == 12.0.0 + devel:libImath$secondaryArchSuffix == 12.0.0 + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:which + cmd:autoconf + cmd:aclocal + cmd:libtoolize + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + pathSecondaryArchSuffix=$(echo ${secondaryArchSuffix} | sed s/^_//g) + IlmBasePkgconfig=$(find /packages/ilmbase${secondaryArchSuffix}_devel-\ +${portVersion}-*/ilmbase${secondaryArchSuffix}/develop/lib/\ +${pathSecondaryArchSuffix}/pkgconfig/IlmBase.pc | sed s/IlmBase\.pc//g) + export PKG_CONFIG_PATH+=:$IlmBasePkgconfig + + ./bootstrap + runConfigure ./configure + make +} + +INSTALL() +{ + make install + + # prepare development documentation + mkdir -p $developDocDir + mv $dataDir/doc $developDocDir + + # prepare autom4te script + mkdir -p $developDir + mv $dataDir/aclocal $developDir + + #clear empty directory + rmdir $dataDir + + # prepare development lib links + prepareInstalledDevelLibs libIlmImf-2_2 libIlmImf \ + libIlmImfUtil-2_2 libIlmImfUtil + + fixPkgconfig + + # devel package + packageEntries devel $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + openexr${secondaryArchSuffix}_devel = $portVersion + devel:libIlmImf$secondaryArchSuffix = $portVersion + devel:libIlmImf_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + devel:libIlmImfUtil$secondaryArchSuffix = $portVersion + devel:libIlmImfUtil_2_2$secondaryArchSuffix = 12.0.0 compat >= 12 + " +REQUIRES_devel=" + openexr$secondaryArchSuffix == $portVersion base + "