mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
27 lines
634 B
Makefile
27 lines
634 B
Makefile
# Created by: will
|
|
|
|
PORTNAME= Math-GMP
|
|
PORTVERSION= 2.22
|
|
CATEGORIES= math perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Perl module that provides an interface to the GMP library
|
|
|
|
LICENSE= LGPL20+
|
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp
|
|
|
|
USES= localbase perl5
|
|
USE_PERL5= configure
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/Alien::GMP/d' ${WRKSRC}/META.json ${WRKSRC}/META.yml ${WRKSRC}/Makefile.PL
|
|
@${REINPLACE_CMD} -e 's|Alien::Base::Wrapper->mm_args|"LIBS" => ["-lgmp"]|' ${WRKSRC}/Makefile.PL
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/GMP/GMP.so
|
|
|
|
.include <bsd.port.mk>
|