# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_0_0/math/cln/Makefile 480717 2018-09-26 06:36:20Z wen $

PORTNAME=	cln
PORTVERSION=	1.3.4
CATEGORIES=	math devel
MASTER_SITES=	http://www.ginac.de/CLN/ \
		http://www.mirrors.wiretapped.net/security/cryptography/libraries/math/cln/ \
		ftp://ftpthep.physik.uni-mainz.de/pub/gnu/

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Class Library for Numbers

LIB_DEPENDS=	libgmp.so:math/gmp

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-gmp=${LOCALBASE}
INSTALL_TARGET=	install-strip
USES=		gmake libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG=	yes

INFO=		cln

.include <bsd.port.pre.mk>

.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
CPPFLAGS+=	-DNO_ASM
EXTRA_PATCHES=	${PATCHDIR}/extra-patch-src_base_cl__low.h \
		${PATCHDIR}/extra-patch-src_base_low_cl__low__div.cc \
		${PATCHDIR}/extra-patch-src_base_low_cl__low__mul.cc
.endif

.include <bsd.port.post.mk>
