mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
120 lines
3.8 KiB
Bash
120 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-2013 Industrial Light & Magic"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="http://download.savannah.nongnu.org/releases/openexr/openexr-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="54486b454073c1dcb5ae9892cf0f730ffefe62f38176325281505093fd218a14"
|
|
PATCHES="openexr-$portVersion.patch"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
openexr$secondaryArchSuffix = $portVersion
|
|
lib:libIlmImf$secondaryArchSuffix = $portVersion
|
|
lib:libIlmImf_Imf_2_1$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="
|
|
haiku$secondaryArchSuffix
|
|
lib:libilmbase$secondaryArchSuffix == $portVersion
|
|
lib:libHalf$secondaryArchSuffix == $portVersion
|
|
lib:libIex_2_1$secondaryArchSuffix == $portVersion
|
|
lib:libIexMath_2_1$secondaryArchSuffix == $portVersion
|
|
lib:libIlmThread_2_1$secondaryArchSuffix == $portVersion
|
|
lib:libImath_2_1$secondaryArchSuffix == $portVersion
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
ilmbase${secondaryArchSuffix}_devel == $portVersion
|
|
devel:libilmbase$secondaryArchSuffix == $portVersion
|
|
devel:libHalf$secondaryArchSuffix == $portVersion
|
|
devel:libIex_2_1$secondaryArchSuffix == $portVersion
|
|
devel:libIexMath_2_1$secondaryArchSuffix == $portVersion
|
|
devel:libIlmThread_2_1$secondaryArchSuffix == $portVersion
|
|
devel:libImath_2_1$secondaryArchSuffix == $portVersion
|
|
devel:libIex$secondaryArchSuffix == $portVersion
|
|
devel:libIexMath$secondaryArchSuffix == $portVersion
|
|
devel:libIlmThread$secondaryArchSuffix == $portVersion
|
|
devel:libImath$secondaryArchSuffix == $portVersion
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
ilmbase$secondaryArchSuffix == $portVersion
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
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
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
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-Imf_2_1 libIlmImf
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
openexr${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libIlmImf$secondaryArchSuffix = $portVersion
|
|
devel:libIlmImf_Imf_2_1$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
openexr$secondaryArchSuffix == $portVersion base
|
|
"
|