openimageio: remove BROKEN-powerpc, where it needs to be linked with

libatomic, and fix the build on base-gcc archs by adding a missing
header.

OK kmos@, no objection from pascal@ (maintainer)
This commit is contained in:
cwen 2019-11-21 17:49:57 +00:00
parent be0bab9112
commit 4876fb7a11
2 changed files with 23 additions and 3 deletions

View File

@ -1,6 +1,5 @@
# $OpenBSD: Makefile,v 1.37 2019/11/10 15:32:55 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.38 2019/11/21 17:49:57 cwen Exp $
BROKEN-powerpc = undefined reference to __atomic_fetch_add_8
BROKEN-i386 = clang segfault compiling imagebufalgo_pixelmath.cpp
COMMENT = library for reading and writing images
@ -10,7 +9,7 @@ GH_PROJECT = oiio
V = 1.8.6
GH_TAGNAME = Release-$V
DISTNAME = openimageio-${V}
REVISION = 5
REVISION = 6
SHARED_LIBS += OpenImageIO 5.0 # 1.0
SHARED_LIBS += OpenImageIO_Util 2.0 # 1.5
@ -61,6 +60,12 @@ CXXFLAGS += -march=i686
.endif
WRKDIST = ${WRKDIR}/oiio-Release-$V
# Fix undefined reference to __atomic_*
.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
CONFIGURE_ENV += LDFLAGS="${LDFLAGS} -latomic"
WANTLIB += atomic
.endif
post-install:
find ${PREFIX} -name '*.orig' -exec rm -f {} \;

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_include_OpenImageIO_strutil_h,v 1.1 2019/11/21 17:49:57 cwen Exp $
Add missing header for ports-gcc
Index: src/include/OpenImageIO/strutil.h
--- src/include/OpenImageIO/strutil.h.orig
+++ src/include/OpenImageIO/strutil.h
@@ -43,6 +43,7 @@
#include <string>
+#include <cstdarg>
#include <cstdio>
#include <vector>
#include <map>