7d84346b5c
Steve Kargl has noticed severely inaccurate results for some functions and has reported the issue as https://github.com/JuliaMath/openlibm/issues/215 This port update applies the patch he has suggested to the up-stream and which has been tested by him to fix the issue (see the Github issue for details and test results). While here adjust indentation and remove white-space from an empty line. Submitted by: Steve Kargl (sgk at troutmask.apl.washington.edu)
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Created by: Iblis Lin <iblis@hs.ntnu.edu.tw>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openlibm
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.6.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= iblis@hs.ntnu.edu.tw
|
|
COMMENT= High quality system independent, portable, open source libm
|
|
|
|
LICENSE= MIT ISCL BSD2CLAUSE
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
BROKEN_armv6= fails to compile: a parameter list without types is only allowed in a function definition
|
|
BROKEN_armv7= fails to compile: a parameter list without types is only allowed in a function definition
|
|
BROKEN_mips= fails to compile: No rule to make target mips/Make.files
|
|
BROKEN_mips64= fails to compile: No rule to make target mips64/Make.files
|
|
|
|
USES= gmake
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= JuliaMath
|
|
GH_PROJECT= openlibm
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc64
|
|
USES+= compiler:gcc-c++11-lib
|
|
.else
|
|
USES+= compiler:c11
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
MAKE_ENV+= prefix=${PREFIX} ${MAKE_ENV_${CHOSEN_COMPILER_TYPE}}
|
|
MAKE_ENV_gcc= USEGCC=1 USECLANG=0
|
|
MAKE_ENV_clang= USEGCC=0 USECLANG=1
|
|
|
|
TEST_TARGET= check
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's/USEGCC =/USEGCC ?=/g' \
|
|
-e 's/USECLANG =/USECLANG ?=/g' \
|
|
-e '/TOOLPREFIX)gcc/s/$$/${GCC_DEFAULT}/g' \
|
|
${WRKSRC}/Make.inc
|
|
|
|
.include <bsd.port.post.mk>
|