Files
haikuports/media-libs/ilmbase/ilmbase-2.2.0.recipe
2017-02-05 14:23:07 +00:00

91 lines
2.5 KiB
Bash

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-2014 Industrial Light & Magic"
SOURCE_URI="http://download.savannah.nongnu.org/releases/openexr/ilmbase-$portVersion.tar.gz"
CHECKSUM_SHA256="ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7"
REVISION="3"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
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
"
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
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
}
# ----- 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
"