diff --git a/math/oink/Makefile b/math/oink/Makefile index 4e366d421d1d..0acc7592419d 100644 --- a/math/oink/Makefile +++ b/math/oink/Makefile @@ -1,28 +1,26 @@ PORTNAME= oink DISTVERSION= g20210704 CATEGORIES= math PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/ PATCHFILES= cd8c62bc1900ffee6d933fa31cbdd954560c286b.patch:-p1 # Fix build on FreeBSD PATCHFILES+= a5c10784a472c42bab5a4df0ef29799011bc30b1.patch:-p1 # Fix installed cmake file path MAINTAINER= yuri@FreeBSD.org COMMENT= Modern parity game solvers written in C++ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_i386= error: use of undeclared identifier 'mfence' - LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs USES= cmake:testing USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= trolando GH_TAGNAME= c1259fe CMAKE_ON= BUILD_SHARED_LIBS .include diff --git a/math/oink/files/patch-src_lace.h b/math/oink/files/patch-src_lace.h index 86d901ac1df4..f456cff65c0f 100644 --- a/math/oink/files/patch-src_lace.h +++ b/math/oink/files/patch-src_lace.h @@ -1,14 +1,14 @@ --- src/lace.h.orig 2021-07-12 11:27:04 UTC +++ src/lace.h @@ -293,7 +293,11 @@ void lace_yield(WorkerP *__lace_worker, Task *__lace_d #endif #ifndef mfence -+#ifdef __amd64__ ++#if defined(__amd64__) || defined(__i386__) #define mfence() { asm volatile("mfence" ::: "memory"); } +#elif defined(__powerpc__) +#define mfence() { asm volatile("sync" ::: "memory"); } +#endif #endif /* Compiler specific branch prediction optimization */