From 2471adfeb14e9f2ceb3e55adff092c6cfbb9c66d Mon Sep 17 00:00:00 2001 From: sylvio Date: Mon, 26 Jul 2010 11:33:35 +0000 Subject: - Fix problem build with -lgmp PR: ports/144406 Submitted by: Kimo Approved by: wen@ (He is on vacation, I've his permission for commit your PR) --- math/p5-Math-BigInt-GMP/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'math/p5-Math-BigInt-GMP') diff --git a/math/p5-Math-BigInt-GMP/Makefile b/math/p5-Math-BigInt-GMP/Makefile index 4ce2ccf2687c..9085ca0efd0f 100644 --- a/math/p5-Math-BigInt-GMP/Makefile +++ b/math/p5-Math-BigInt-GMP/Makefile @@ -24,4 +24,9 @@ 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 -- cgit