openbsd-ports/devel/gmp/Makefile
miod 714347734c Replace existing PIC-unaware m88k assembly parts with proper m4 generator;
also disable the assembly mul_1 routine, which fails 5 of the regress tests.
This lets this build again on m88k.

Bump package version just to be on the safe side.

help and ok naddy@
2013-04-13 20:19:50 +00:00

36 lines
946 B
Makefile

# $OpenBSD: Makefile,v 1.26 2013/04/13 20:19:50 miod Exp $
COMMENT= library for arbitrary precision arithmetic
DISTNAME= gmp-5.0.2
REVISION= 2
SHARED_LIBS += gmp 9.0 # 10.2
SHARED_LIBS += gmpxx 1.0 # 6.2
CATEGORIES= devel math
HOMEPAGE= http://gmplib.org/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# LGPLv3+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += m stdc++
MASTER_SITES= ftp://ftp.gmplib.org/pub/${DISTNAME}/ \
${MASTER_SITE_GNU:=gmp/}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-cxx
# Don't try to optimize for the local CPU submodel
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-unknown-openbsd${OSrev}
post-patch:
@cp ${FILESDIR}/mpn_m88k_add_n.asm ${WRKSRC}/mpn/m88k/add_n.asm
@cp ${FILESDIR}/mpn_m88k_sub_n.asm ${WRKSRC}/mpn/m88k/sub_n.asm
@rm ${WRKSRC}/mpn/m88k/add_n.s ${WRKSRC}/mpn/m88k/sub_n.s \
${WRKSRC}/mpn/m88k/mul_1.s
.include <bsd.port.mk>