openbsd-ports/graphics/openimageio/patches/patch-src_make_detectplatform_mk
pascal 1258c37e66 OpenImageIO is a library for reading and writing images, and a bunch
of related classes, utilities, and applications.  There is a
particular emphasis on formats and functionality used in professional,
large-scale animation and visual effects work for film.  OpenImageIO
is used extensively in animation and VFX studios all over the world,
and is also incorporated into several commercial products.

ok ajacoutot@
2012-05-09 12:42:06 +00:00

26 lines
761 B
Plaintext

$OpenBSD: patch-src_make_detectplatform_mk,v 1.1.1.1 2012/05/09 12:42:06 pascal Exp $
--- src/make/detectplatform.mk.orig Sun Apr 1 23:51:00 2012
+++ src/make/detectplatform.mk Sun Apr 1 23:52:57 2012
@@ -25,7 +25,9 @@ ifneq (${hw},x86)
ifneq (${hw},x86_64)
ifneq (${hw},i386)
ifneq (${hw},i686)
- $(error "ERROR: Unknown hardware architecture")
+ ifneq (${hw},amd64)
+ $(error "ERROR: Unknown hardware architecture")
+ endif
endif
endif
endif
@@ -57,6 +59,10 @@ ifeq (${platform},unknown)
# Mac OS X
ifeq (${uname},darwin)
platform := macosx
+ endif
+
+ ifeq (${uname},openbsd)
+ platform := openbsd
endif
# If we haven't been able to determine the platform from uname, use