openbsd-ports/devel/mpfr/Makefile
2010-11-26 07:18:59 +00:00

42 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2010/11/26 07:19:00 espie Exp $
COMMENT= library for multiple-precision floating-point computations
DISTNAME= mpfr-2.3.2
SHARED_LIBS += mpfr 0.2 # .2.2
CATEGORIES= devel math
HOMEPAGE= http://www.mpfr.org/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# (L)GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
DIST_SUBDIR= ${DISTNAME}
LIB_DEPENDS = devel/gmp>=4.2.0
# no interlibrary dependency, though
WANTLIB = gmp
SEPARATE_BUILD= simple
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-gmp=${LOCALBASE}
REORDER_DEPENDENCIES=${PORTSDIR}/infrastructure/mk/automake.dep
# needed on sparc64 at least: the mpfr tests are insufficient without
# gmp's internals
BUILD_DEPENDS= devel/gmp>=4.2.0:configure
pre-configure:
ln -s ${WRKDIR}/devel/gmp/gmp-* ${WRKDIR}/gmp
cd ${WRKDIR}/gmp && ${MAKE} fib_table.h mp_bases.h
CONFIGURE_ARGS+=--with-gmp-build=${WRKDIR}/gmp
.include <bsd.port.mk>