freebsd-ports/math/openlibm/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

44 lines
1.2 KiB
Makefile

# Created by: Iblis Lin <iblis@hs.ntnu.edu.tw>
# $FreeBSD$
PORTNAME= openlibm
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.0
PORTREVISION= 1
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= compiler:c11 gmake
USE_GITHUB= yes
GH_ACCOUNT= JuliaMath
GH_PROJECT= openlibm
USE_LDCONFIG= yes
.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>