2010-11-26 02:18:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2010/11/26 07:19:00 espie Exp $
|
2006-11-01 13:41:21 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= library for multiple-precision floating-point computations
|
2006-11-01 13:41:21 -05:00
|
|
|
|
2008-10-27 16:45:54 -04:00
|
|
|
DISTNAME= mpfr-2.3.2
|
|
|
|
SHARED_LIBS += mpfr 0.2 # .2.2
|
2006-11-01 13:41:21 -05:00
|
|
|
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}
|
|
|
|
|
2010-11-26 02:18:59 -05:00
|
|
|
LIB_DEPENDS = devel/gmp>=4.2.0
|
2006-11-01 13:41:21 -05:00
|
|
|
# no interlibrary dependency, though
|
2010-11-08 05:28:22 -05:00
|
|
|
WANTLIB = gmp
|
2006-11-01 13:41:21 -05:00
|
|
|
|
|
|
|
SEPARATE_BUILD= simple
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--with-gmp=${LOCALBASE}
|
|
|
|
REORDER_DEPENDENCIES=${PORTSDIR}/infrastructure/mk/automake.dep
|
|
|
|
|
2006-11-03 15:16:12 -05:00
|
|
|
# needed on sparc64 at least: the mpfr tests are insufficient without
|
|
|
|
# gmp's internals
|
|
|
|
|
2010-11-26 02:18:59 -05:00
|
|
|
BUILD_DEPENDS= devel/gmp>=4.2.0:configure
|
2006-11-03 15:16:12 -05:00
|
|
|
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
|
|
|
|
|
2006-11-01 13:41:21 -05:00
|
|
|
.include <bsd.port.mk>
|