openbsd-ports/devel/mpfr/Makefile
naddy 1aeb1f2753 Update to 4.0.2, patch level 1.
Additional testing by bcallah@ (powerpc) and kmos@ (sparc64).
2019-11-30 18:28:46 +00:00

39 lines
939 B
Makefile

# $OpenBSD: Makefile,v 1.24 2019/11/30 18:28:46 naddy Exp $
COMMENT= library for multiple-precision floating-point computations
DISTNAME= mpfr-4.0.2
PKGNAME= ${DISTNAME}.1
SHARED_LIBS= mpfr 2.0 # 6.2
CATEGORIES= devel math
HOMEPAGE= https://www.mpfr.org/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# LGPLv3+
PERMIT_PACKAGE= Yes
MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
DIST_SUBDIR= ${DISTNAME}
.for i in 01
PATCHFILES+= patch$i
.endfor
PATCH_DIST_STRIP=-p1
EXTRACT_SUFX= .tar.xz
LIB_DEPENDS= devel/gmp,no_cxx,bootstrap
WANTLIB= gmp
SEPARATE_BUILD= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-gmp=${LOCALBASE}
# Enabling TLS by way of libcompiler_rt's emutls requires a major version
# bump and lang/gcc will need a new bootstrap.
CONFIGURE_ARGS+=--disable-thread-safe
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
mv ${PREFIX}/share/doc/mpfr/examples ${PREFIX}/share/examples/mpfr
.include <bsd.port.mk>