Files
haikuports/media-libs/openexr/openexr-2.2.0.recipe
Kacper Kasper 633986446a ilmbase: provide lib:s without version suffix.
* Style fixes for ilmbase and openexr.
2017-12-17 14:58:26 +01:00

127 lines
3.8 KiB
Bash

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="http://www.openexr.com/"
COPYRIGHT="2002-2014 Industrial Light & Magic"
LICENSE="BSD (3-clause)"
REVISION="6"
SOURCE_URI="http://download.savannah.nongnu.org/releases/openexr/openexr-$portVersion.tar.gz"
CHECKSUM_SHA256="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
PATCHES="openexr-$portVersion.patchset"
fi
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
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
"
PROVIDES_devel="
openexr${secondaryArchSuffix}_devel = $portVersion
devel:libilmimf$secondaryArchSuffix = 22.0.0 compat >= 22
devel:libilmimf_2_2$secondaryArchSuffix = 22.0.0 compat >= 22
devel:libilmimfutil$secondaryArchSuffix = 22.0.0 compat >= 22
devel:libilmimfutil_2_2$secondaryArchSuffix = 22.0.0 compat >= 22
"
REQUIRES_devel="
openexr$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
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:find
cmd:which
cmd:autoconf
cmd:aclocal
cmd:libtoolize$secondaryArchSuffix
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
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
export CXXFLAGS="-Dios_base=ios -ftemplate-depth-30"
fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library files
rm $libDir/libIlmImf*.la
# 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
}
TEST()
{
make check
}