freebsd-ports/math/p5-Math-BigInt-GMP/Makefile
Sylvio Cesar Teixeira dc82b8d1fa - Fix problem build with -lgmp
PR:		ports/144406
Submitted by:	Kimo <kimor79@yahoo.com>
Approved by:	wen@ (He is on vacation, I've his permission for commit your PR)
2010-07-26 11:33:35 +00:00

32 lines
812 B
Makefile

# New ports collection makefile for: math/p5-Math-BigInt-GMP
# Date created: 7 February 2007
# Whom: Maxime Henrion <mux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Math-BigInt-GMP
PORTVERSION= 1.24
PORTREVISION= 2
CATEGORIES= math perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Math::BigInt::GMP - Use the GMP library for Math::BigInt routines
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
BUILD_DEPENDS= p5-Math-BigInt>=1.78:${PORTSDIR}/math/p5-Math-BigInt
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
CONFIGURE_ARGS+= INC="-I${LOCALBASE}/include"
MAN3= Math::BigInt::GMP.3
post-patch:
@${PERL} -pi -e "s!-lgmp!-L${LOCALBASE}/lib $$&!;" \
-e "if (/'LIBS'/) { print qq!'INC' => '-I${LOCALBASE}/include',!; }" \
${WRKSRC}/Makefile.PL
.include <bsd.port.mk>