graphics/argyllcms: Fix build on powerpc64

PR:		217215 [1]
PR:		203806 [2]
Submitted by:	Curtis Hamilton [1]
Submitted by:	Justin Hibbits [2]
Approved by:	kwm (maintainer)
This commit is contained in:
Steve Wills 2017-05-12 02:54:43 +00:00
parent 5962541ab4
commit fe310ebf76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=440675
3 changed files with 26 additions and 2 deletions

View file

@ -13,8 +13,6 @@ COMMENT= ICC compatible color management system
LICENSE= AGPLv3
BROKEN_powerpc64= Does not build
BUILD_DEPENDS= jam:devel/jam
LIB_DEPENDS= libtiff.so:graphics/tiff \
libpng16.so:graphics/png

View file

@ -0,0 +1,15 @@
--- Jambase.bak 2016-09-28 02:58:53.000000000 +0000
+++ Jambase 2017-05-11 19:43:36.780841000 +0000
@@ -999,7 +999,11 @@
# General defaults; a lot like UNIX
#
- AR ?= ar rusc ;
+ if ! $(AR) {
+ AR = ar rusc ;
+ } else {
+ AR += rusc ;
+ }
AS ?= as ;
ASFLAGS ?= ;
AWK ?= awk ;

View file

@ -0,0 +1,11 @@
--- ./ccast/axTLS/os_int.h.orig
+++ ./ccast/axTLS/os_int.h
@@ -34,6 +34,7 @@
#if (__STDC_VERSION__ >= 199901L) /* C99 */ \
|| defined(_STDINT_H_) || defined(_STDINT_H) \
|| defined(_SYS_TYPES_H) \
+ || defined(__powerpc64__) || defined(POWERPC64) \
|| (defined(__APPLE__) && defined(__POWERPC__))
#include <stdint.h>