aboutsummaryrefslogblamecommitdiff
path: root/math/p5-Math-BigInt-GMP/Makefile
blob: 4436465eb12cd60f721cf6070b03e560e4f17c92 (plain) (tree)
1
2
3
4
5
6
7
                                              
           

                               
                    
                          
                    




                                                                                 
                           

                    

                                                            
                                
 

                               
                                            
 




                                                                                           


                                                                                      
                      
# Created by: Maxime Henrion <mux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	Math-BigInt-GMP
PORTVERSION=	1.49
CATEGORIES=	math perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Math::BigInt::GMP - Use the GMP library for Math::BigInt routines

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Math-BigInt>=1.999714:math/p5-Math-BigInt
LIB_DEPENDS=	libgmp.so:math/gmp
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		perl5
USE_PERL5=	configure patch
CONFIGURE_ARGS=	INC="-I${LOCALBASE}/include"

post-patch:
	@${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
		     -e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
		${WRKSRC}/Makefile.PL

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/BigInt/GMP/GMP.so

.include <bsd.port.mk>