diff -urN print/harfbuzz.old/Makefile print/harfbuzz/Makefile --- print/harfbuzz.old/Makefile 2015-07-18 14:29:22.000000000 +0200 +++ print/harfbuzz/Makefile 2015-07-18 14:28:07.000000000 +0200 @@ -3,6 +3,7 @@ PORTNAME= harfbuzz PORTVERSION= 0.9.41 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= http://www.freedesktop.org/software/harfbuzz/release/ @@ -28,4 +29,8 @@ EXTRA_PATCHES= ${PATCHDIR}/extra-src_hb-open-type-private.hh .endif +.if ${ARCH} == "mips" +EXTRA_PATCHES= ${PATCHDIR}/extra-src_hb-atomic-private.hh +.endif + .include diff -urN print/harfbuzz.old/files/extra-src_hb-atomic-private.hh print/harfbuzz/files/extra-src_hb-atomic-private.hh --- print/harfbuzz.old/files/extra-src_hb-atomic-private.hh 1970-01-01 01:00:00.000000000 +0100 +++ print/harfbuzz/files/extra-src_hb-atomic-private.hh 2015-07-18 13:53:57.000000000 +0200 @@ -0,0 +1,28 @@ +--- src/hb-atomic-private.hh.orig 2015-04-10 02:16:57 UTC ++++ src/hb-atomic-private.hh +@@ -96,16 +96,6 @@ typedef int32_t hb_atomic_int_impl_t; + #endif + + +-#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) +- +-typedef int hb_atomic_int_impl_t; +-#define HB_ATOMIC_INT_IMPL_INIT(V) (V) +-#define hb_atomic_int_impl_add(AI, V) __sync_fetch_and_add (&(AI), (V)) +- +-#define hb_atomic_ptr_impl_get(P) (void *) (__sync_synchronize (), *(P)) +-#define hb_atomic_ptr_impl_cmpexch(P,O,N) __sync_bool_compare_and_swap ((P), (O), (N)) +- +- + #elif !defined(HB_NO_MT) && defined(HAVE_SOLARIS_ATOMIC_OPS) + + #include +@@ -119,7 +109,7 @@ typedef unsigned int hb_atomic_int_impl_ + #define hb_atomic_ptr_impl_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false) + + +-#elif !defined(HB_NO_MT) ++#elif !defined(HB_NO_MT) && defined(FreeBSD) + + #define HB_ATOMIC_INT_NIL 1 /* Warn that fallback implementation is in use. */ +