2016-03-11 20:28:21 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2016/03/11 20:28:24 naddy Exp $
|
2006-11-01 18:41:21 +00:00
|
|
|
|
2007-09-16 02:52:56 +00:00
|
|
|
COMMENT= library for multiple-precision floating-point computations
|
2006-11-01 18:41:21 +00:00
|
|
|
|
2011-11-16 12:08:32 +00:00
|
|
|
DISTNAME= mpfr-3.1.0
|
2012-10-15 10:09:10 +00:00
|
|
|
PKGNAME= ${DISTNAME}.3# patch level
|
2011-11-16 12:08:32 +00:00
|
|
|
SHARED_LIBS= mpfr 1.1 # 5.0
|
2006-11-01 18:41:21 +00:00
|
|
|
CATEGORIES= devel math
|
|
|
|
HOMEPAGE= http://www.mpfr.org/
|
2015-03-16 18:07:34 +00:00
|
|
|
REVISION= 0
|
2006-11-01 18:41:21 +00:00
|
|
|
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2011-05-27 20:49:53 +00:00
|
|
|
# LGPLv3+
|
2006-11-01 18:41:21 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
|
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
2011-11-16 12:08:32 +00:00
|
|
|
.for i in 01 02 03
|
2011-05-27 20:49:53 +00:00
|
|
|
PATCHFILES+= patch$i
|
|
|
|
.endfor
|
|
|
|
PATCH_DIST_STRIP=-p1
|
2006-11-01 18:41:21 +00:00
|
|
|
|
2011-05-27 20:49:53 +00:00
|
|
|
LIB_DEPENDS= devel/gmp>=4.2.0
|
|
|
|
WANTLIB= gmp
|
2006-11-01 18:41:21 +00:00
|
|
|
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD= Yes
|
2006-11-01 18:41:21 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS= --with-gmp=${LOCALBASE}
|
2006-11-01 18:41:21 +00:00
|
|
|
|
2011-05-27 20:49:53 +00:00
|
|
|
# Do not install useless docs and misplaced examples.
|
|
|
|
FAKE_FLAGS= docdir=""
|
2006-11-03 20:16:12 +00:00
|
|
|
|
2011-05-27 20:49:53 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpfr
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/mpfr
|
2006-11-03 20:16:12 +00:00
|
|
|
|
2006-11-01 18:41:21 +00:00
|
|
|
.include <bsd.port.mk>
|