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-2011 Industrial Light & Magic" LICENSE="BSD (3-clause)" REVISION="1" 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" 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 " 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 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 $jobArgs } 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 } TEST() { make check } # ----- 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 "