mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
openexr25: drop recipe. (#12709)
Can't find anything actively requiring this version on-tree.
This commit is contained in:
@@ -1,138 +0,0 @@
|
||||
SUMMARY="A high dynamic-range (HDR) image file format"
|
||||
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."
|
||||
HOMEPAGE="https://www.openexr.com/"
|
||||
COPYRIGHT="2002-2017 Industrial Light & Magic"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dba19e9c6720c6f64fbc8b9d1867eaa75da6438109b941eefdc75ed141b6576d"
|
||||
SOURCE_FILENAME="openexr-$portVersion.tar.gz"
|
||||
SOURCE_DIR="openexr-$portVersion"
|
||||
PATCHES="openexr-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="25.0.3"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
openexr25$secondaryArchSuffix = $portVersion
|
||||
lib:libhalf_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libiex_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libiexmath_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libilmimf_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libilmimfutil_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libilmthread_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libimath_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
CONFLICTS="
|
||||
ilmbase$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
openexr25${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:exr2aces$secondaryArchSuffix = $portVersion
|
||||
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_tools="
|
||||
$REQUIRES
|
||||
lib:libhalf_2_5$secondaryArchSuffix
|
||||
lib:libiex_2_5$secondaryArchSuffix
|
||||
lib:libiexmath_2_5$secondaryArchSuffix
|
||||
lib:libilmimf_2_5$secondaryArchSuffix
|
||||
lib:libilmimfutil_2_5$secondaryArchSuffix
|
||||
lib:libilmthread_2_5$secondaryArchSuffix
|
||||
lib:libimath_2_5$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
openexr25${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libhalf_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libiex_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libiexmath_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmimf_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmimfutil_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmthread_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libimath_2_5$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libhalf$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libiex$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libiexmath$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmimf$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmimfutil$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libilmthread$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libimath$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
openexr25$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
openexr${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake >= 3.10
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
$cmakeDirArgs
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $developDocDir
|
||||
mv $docDir/* $developDocDir
|
||||
rm -rf mv $docDir
|
||||
|
||||
packageEntries tools $binDir
|
||||
|
||||
# prepare development lib links
|
||||
prepareInstalledDevelLibs \
|
||||
libHalf-2_5 libIlmImf-2_5 \
|
||||
libImath-2_5 libIex-2_5 libIexMath-2_5 \
|
||||
libIlmImfUtil-2_5 libIlmThread-2_5
|
||||
fixPkgconfig
|
||||
|
||||
mv $libDir/lib{Half,Iex,Imath,IexMath,IlmImf,IlmImfUtil,IlmThread}.* \
|
||||
$developLibDir
|
||||
|
||||
# devel package
|
||||
packageEntries devel $developDir $libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make check
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
From a12109ea303ac2b433d9d6f6dc681d27eb4fb591 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sat, 26 Oct 2019 20:01:01 +0200
|
||||
Subject: define bswap_32 for Haiku.
|
||||
|
||||
|
||||
diff --git a/OpenEXR/IlmImfTest/bswap_32.h b/OpenEXR/IlmImfTest/bswap_32.h
|
||||
index 4df6ec0..4443e4b 100644
|
||||
--- a/OpenEXR/IlmImfTest/bswap_32.h
|
||||
+++ b/OpenEXR/IlmImfTest/bswap_32.h
|
||||
@@ -24,6 +24,9 @@
|
||||
#if defined(__BSWAP_RENAME) && !defined(__bswap_32)
|
||||
#define bswap_32(x) bswap32(x)
|
||||
#endif
|
||||
+#elif defined(__HAIKU__)
|
||||
+#include <ByteOrder.h>
|
||||
+#define bswap_32(x) B_SWAP_INT32(x)
|
||||
#else
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
--
|
||||
2.30.0
|
||||
|
||||
Reference in New Issue
Block a user