mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Removed the full-stop and repeating package name in SUMMARY. Removed hard line breaks, broke up some very long paragraphs and use bullet lists where possible. All done by browsing through HaikuDepot. There may be (many) more left in the whole haikuports repo... Included 10 extended desriptions done by soyoye14 for GCI 2014 (https://www.google-melange.com/gci/task/view/google/gci2014/5240373098053632) Removed/insert whitespace where it seems to be the custom in recipes. Sometimes rearranged elements of a recipe (moving license and copyright up, for example).
129 lines
3.9 KiB
Bash
129 lines
3.9 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"
|
|
LICENSE="BSD (3-clause)"
|
|
COPYRIGHT="2002-2011 Industrial Light & Magic"
|
|
SRC_URI="http://download.savannah.nongnu.org/releases/openexr/openexr-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231"
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="x86 x86_64"
|
|
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
|
# x86_gcc2 is fine as primary target architecture as long as we're building
|
|
# for a different secondary architecture.
|
|
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
|
else
|
|
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
|
fi
|
|
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
|
|
lib:libstdc++$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
|
|
"
|