diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-09-02 09:23:05 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-09-02 09:23:05 +0000 |
commit | a56efba135572e847bf60ba62fa610e0393dd3e2 (patch) | |
tree | b9d3af288cff2b9055b82f58f4cdca321a0367ca /biology | |
parent | 9de9dacf008ec30917e6e12321c98c6447885a56 (diff) | |
download | ports-a56efba135572e847bf60ba62fa610e0393dd3e2.tar.gz ports-a56efba135572e847bf60ba62fa610e0393dd3e2.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/crux/Makefile | 4 | ||||
-rw-r--r-- | biology/crux/files/patch-lib_Crux_CxPpc.c | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/biology/crux/Makefile b/biology/crux/Makefile index 97a575868e9e..88c2bff652a8 100644 --- a/biology/crux/Makefile +++ b/biology/crux/Makefile @@ -13,8 +13,6 @@ COMMENT= Software toolkit for phylogenetic inference LICENSE= BSD2CLAUSE BSD3CLAUSE LICENSE_COMB= multi -BROKEN_powerpc= does not build on powerpc: error in pthreads - USES= fortran gmake python tar:bzip2 USE_CSTD= gnu99 GNU_CONFIGURE= yes @@ -26,11 +24,13 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= SYS_LINALG + SYS_LINALG_DESC= Enable system ATLAS/LAPACK SYS_LINALG_LIB_DEPENDS= libatlas.so:${PORTSDIR}/math/atlas SYS_LINALG_CONFIGURE_ENABLE= sys-linalg post-patch: + @${REINPLACE_CMD} -e '/altivec/s|-f|-m|' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|\([[:blank:]]\)\($$(BINDIR)\)|\1$$(DESTDIR)\2| ; \ s|\([[:blank:]]\)\($$(DATADIR)\)|\1$$(DESTDIR)\2| ; \ diff --git a/biology/crux/files/patch-lib_Crux_CxPpc.c b/biology/crux/files/patch-lib_Crux_CxPpc.c new file mode 100644 index 000000000000..ea100b5c9928 --- /dev/null +++ b/biology/crux/files/patch-lib_Crux_CxPpc.c @@ -0,0 +1,18 @@ +--- lib/Crux/CxPpc.c.orig 2009-09-19 04:31:04 UTC ++++ lib/Crux/CxPpc.c +@@ -8,14 +8,11 @@ bool CxgPpcUseAltivec; + void + CxPpcCpuInit(void) + { +- int mib[2]; + int result, error; + size_t len; + +- mib[0] = CTL_HW; +- mib[1] = HW_VECTORUNIT; + len = sizeof(result); +- error = sysctl(mib, 2, &result, &len, NULL, 0); ++ error = sysctlbyname("hw.altivec", &result, &len, NULL, 0); + if (error != 0) + { + CxgPpcUseAltivec = false; |