mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
113 lines
2.8 KiB
Bash
113 lines
2.8 KiB
Bash
SUMMARY="The Persistence of Vision Raytracer"
|
|
DESCRIPTION="Persistence of Vision Ray Tracer, or POV-Ray, is a ray \
|
|
tracing program using techniques for generating images from text-based \
|
|
scene descriptions by tracing the path of light through pixels in an image plane \
|
|
and simulating the effects of its encounters with virtual objects. \
|
|
Based on DKBTrace, written by David Kirk Buck and Aaron Collins for \
|
|
Commodore Amiga computers."
|
|
HOMEPAGE="http://www.povray.org/"
|
|
COPYRIGHT="1991-2013 Persistence of Vision Raytracer Pty. Ltd."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/POV-Ray/povray/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4"
|
|
PATCHES="povray-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/povray/3.7/povray.conf keep-old
|
|
settings/povray/3.7/povray.ini keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
povray$secondaryArchSuffix = $portVersion
|
|
cmd:povray$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
boost165$secondaryArchSuffix
|
|
lib:libHalf$secondaryArchSuffix
|
|
lib:libiex_2_2$secondaryArchSuffix
|
|
lib:libiexmath_2_2$secondaryArchSuffix
|
|
lib:libilmthread_2_2$secondaryArchSuffix
|
|
lib:libimath_2_2$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libsdl$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
REQUIRES+="
|
|
lib:libilmimf_2_2$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
boost165${secondaryArchSuffix}_devel
|
|
devel:libHalf$secondaryArchSuffix
|
|
devel:libiex_2_2$secondaryArchSuffix
|
|
devel:libiexmath_2_2$secondaryArchSuffix
|
|
devel:libilmthread_2_2$secondaryArchSuffix
|
|
devel:libimath_2_2$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libsdl$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
BUILD_REQUIRES+="
|
|
devel:libilmimf_2_2$secondaryArchSuffix
|
|
"
|
|
fi
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:autoupdate
|
|
cmd:awk
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gettext
|
|
cmd:grep
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
pushd unix
|
|
./prebuild.sh
|
|
autoupdate
|
|
popd
|
|
|
|
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
|
|
KeepEXR="--without-openexr"
|
|
fi
|
|
|
|
LDFLAGS="-lbsd -lnetwork -lboost_date_time" \
|
|
CXXFLAGS="-std=c++11 -DBOOST_NO_CXX11_CONSTEXPR -D_BSD_SOURCE" \
|
|
runConfigure ./configure \
|
|
COMPILED_BY="HaikuPorts" \
|
|
--disable-optimiz \
|
|
--with-boost-libdir=`finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir \
|
|
$KeepEXR
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|