C++ templates, though not libgmpxx. Split off the C++ support into a separate cxx subpackage. Add a no_cxx bootstrap flavor and use it for the dependency chain up to lang/gcc/4.9 in order to allow bootstrapping a C++ compiler from ports. Based on work by sthen@, tweaks by espie@.
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.21 2018/11/02 18:43:56 naddy Exp $
|
|
|
|
COMMENT= library for multiple-precision floating-point computations
|
|
|
|
DISTNAME= mpfr-3.1.5
|
|
PKGNAME= ${DISTNAME}.2
|
|
REVISION= 0
|
|
SHARED_LIBS= mpfr 1.2 # 5.5
|
|
CATEGORIES= devel math
|
|
HOMEPAGE= http://www.mpfr.org/
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
# LGPLv3+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
.for i in 01 02
|
|
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
|
|
|
|
# Do not install useless docs and misplaced examples.
|
|
FAKE_FLAGS= docdir=""
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpfr
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/mpfr
|
|
|
|
.include <bsd.port.mk>
|