naddy 53302a19c9 Re-add the gmpxx C++ library. productivity/libalkimia requires the
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@.
2018-11-02 18:43:56 +00:00

29 lines
537 B
Makefile

# $OpenBSD: Makefile,v 1.9 2018/11/02 18:43:56 naddy Exp $
COMMENT= complex numbers math library
V= 0.9
DISTNAME= mpc-${V}
PKGNAME= libmpc-${V}
REVISION= 2
SHARED_LIBS= mpc 0.1 # 2.0
CATEGORIES= devel math
HOMEPAGE= http://www.multiprecision.org
MASTER_SITES= ${HOMEPAGE}/mpc/download/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
LIB_DEPENDS= devel/mpfr \
devel/gmp,no_cxx,bootstrap
WANTLIB= mpfr>=1.0 gmp>=9.0 m
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-mpfr=${LOCALBASE} \
--with-gmp=${LOCALBASE}
.include <bsd.port.mk>