mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
openimageio: added recipe for version 1.5.15.
This commit is contained in:
102
media-libs/openimageio/openimageio-1.5.15.recipe
Normal file
102
media-libs/openimageio/openimageio-1.5.15.recipe
Normal file
@@ -0,0 +1,102 @@
|
||||
SUMMARY="Portable Network Graphics library"
|
||||
DESCRIPTION="
|
||||
openimageio is the official PNG reference library. It supports almost all PNG \
|
||||
features, is extensible, and has been extensively tested for over 17 years
|
||||
"
|
||||
HOMEPAGE="http://github.com/OpenImageIO/"
|
||||
COPYRIGHT="
|
||||
1998-2011 Glenn Randers-Pehrson
|
||||
1996-1997 Andreas Dilger
|
||||
1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
||||
"
|
||||
LICENSE="BSD (2-clause)"
|
||||
SRC_URI="https://github.com/OpenImageIO/oiio/archive/Release-$portVersion.tar.gz"
|
||||
SRC_FILENAME="openimageio-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e41e1d94ff2dc6029969b295a9eed83d6817807c741bde8a4f4947b74dc62222"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
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"
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
openimageio$secondaryArchSuffix = $portVersion compat >= 1.5
|
||||
cmd:iconvert
|
||||
cmd:idiff
|
||||
cmd:igrep
|
||||
cmd:iinfo
|
||||
cmd:maketx
|
||||
cmd:oiiotool
|
||||
lib:libopenimageio$secondaryArchSuffix = 1.5.15 compat >= 1.5
|
||||
lib:libopenimageio_util$secondaryArchSuffix = 1.5.15 compat >= 1.5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libhalf$secondaryArchSuffix
|
||||
lib:libilmimf$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libwebp$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libboost_filesystem$secondaryArchSuffix
|
||||
lib:libboost_regex$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libboost_thread$secondaryArchSuffix
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
lib:libgcc_s$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
boost${secondaryArchSuffix}_devel
|
||||
devel:libhalf$secondaryArchSuffix
|
||||
devel:libilmimf$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libwebp$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:cmake
|
||||
"
|
||||
|
||||
SOURCE_DIR="oiio-Release-$portVersion"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir $libDir $includeDir $docDir
|
||||
cp -R dist/haiku*/bin/* $binDir/
|
||||
cp -R dist/haiku*/lib/* $libDir/
|
||||
cp -R dist/haiku*/include/* $includeDir/
|
||||
cp -R dist/haiku*/doc/* $docDir/
|
||||
|
||||
prepareInstalledDevelLibs libOpenImageIO libOpenImageIO_Util
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
openimageio${secondaryArchSuffix}_devel = $portVersion compat >= 1.5
|
||||
devel:libopenimageio$secondaryArchSuffix = 1.5.15 compat >= 1.5
|
||||
devel:libopenimageio_util$secondaryArchSuffix = 1.5.15 compat >= 1.5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
openimageio$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
54
media-libs/openimageio/patches/openimageio-1.5.15.patchset
Normal file
54
media-libs/openimageio/patches/openimageio-1.5.15.patchset
Normal file
@@ -0,0 +1,54 @@
|
||||
From 4718cb2a5bf8ab1936f738118d7235af5bd07073 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 7 Jun 2015 22:05:26 +0000
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/src/libutil/sysutil.cpp b/src/libutil/sysutil.cpp
|
||||
index de7b9ac..dc6e1be 100644
|
||||
--- a/src/libutil/sysutil.cpp
|
||||
+++ b/src/libutil/sysutil.cpp
|
||||
@@ -70,6 +70,12 @@
|
||||
# include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
+#if defined (__HAIKU__)
|
||||
+# include <sys/types.h>
|
||||
+# include <sys/resource.h>
|
||||
+# include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "OpenImageIO/dassert.h"
|
||||
#include "OpenImageIO/sysutil.h"
|
||||
|
||||
@@ -244,7 +250,7 @@ Sysutil::this_program_path ()
|
||||
size_t cb = sizeof(filename);
|
||||
int r=1;
|
||||
sysctl(mib, 4, filename, &cb, NULL, 0);
|
||||
-#elif defined(__GNU__) || defined(__OpenBSD__)
|
||||
+#elif defined(__GNU__) || defined(__OpenBSD__) || defined(__HAIKU__)
|
||||
int r = 0;
|
||||
#else
|
||||
// No idea what platform this is
|
||||
diff --git a/src/make/detectplatform.mk b/src/make/detectplatform.mk
|
||||
index bc29f4b..8d439ae 100644
|
||||
--- a/src/make/detectplatform.mk
|
||||
+++ b/src/make/detectplatform.mk
|
||||
@@ -46,6 +46,14 @@ ifeq (${platform},unknown)
|
||||
endif
|
||||
endif
|
||||
|
||||
+ # Haiku
|
||||
+ ifeq (${uname},haiku)
|
||||
+ platform := haiku
|
||||
+ ifeq (${hw},x86_64)
|
||||
+ platform := haiku64
|
||||
+ endif
|
||||
+ endif
|
||||
+
|
||||
# Windows
|
||||
ifeq (${uname},cygwin)
|
||||
platform := windows
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user