8945f1d6d0
* stop breaking the inter-library dependency on gmp ok jasper@
43 lines
981 B
Makefile
43 lines
981 B
Makefile
# $OpenBSD: Makefile,v 1.10 2011/05/27 20:49:53 naddy Exp $
|
|
|
|
COMMENT= library for multiple-precision floating-point computations
|
|
|
|
DISTNAME= mpfr-3.0.1
|
|
PKGNAME= ${DISTNAME}.4 # patch level
|
|
SHARED_LIBS= mpfr 1.0 # 4.1
|
|
CATEGORIES= devel math
|
|
HOMEPAGE= http://www.mpfr.org/
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
# LGPLv3+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
.for i in 01 02 03 04
|
|
PATCHFILES+= patch$i
|
|
.endfor
|
|
PATCH_DIST_STRIP=-p1
|
|
|
|
LIB_DEPENDS= devel/gmp>=4.2.0
|
|
WANTLIB= gmp
|
|
|
|
SEPARATE_BUILD= simple
|
|
USE_LIBTOOL= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--with-gmp=${LOCALBASE}
|
|
|
|
# Do not install useless docs and misplaced examples.
|
|
FAKE_FLAGS= docdir=""
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpfr
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/mpfr
|
|
|
|
.include <bsd.port.mk>
|