mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
98 lines
2.9 KiB
Bash
98 lines
2.9 KiB
Bash
SUMMARY="OpenEXR ILM Base libraries"
|
|
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."
|
|
HOMEPAGE="http://www.openexr.com/"
|
|
LICENSE="BSD (3-clause)"
|
|
COPYRIGHT="2002-2014 Industrial Light & Magic"
|
|
SOURCE_URI="http://download.savannah.nongnu.org/releases/openexr/ilmbase-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7"
|
|
REVISION="6"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
|
|
PATCHES="ilmbase-2.2.0.patchset"
|
|
fi
|
|
|
|
PROVIDES="
|
|
ilmbase$secondaryArchSuffix = $portVersion
|
|
lib:libhalf$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libiex$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libiex_2_2$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libiexmath$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libiexmath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libilmthread$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libilmthread_2_2$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libimath$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
lib:libimath_2_2$secondaryArchSuffix = 12.0.0 compat >= 12
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
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
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:which
|
|
cmd:autoconf
|
|
cmd:aclocal
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./bootstrap
|
|
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
|
|
export CXXFLAGS="-Dios_base=ios"
|
|
fi
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool library files
|
|
rm $libDir/lib*.la
|
|
|
|
# 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
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|