- 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)
This commit is contained in:
Sylvio Cesar Teixeira 2010-07-26 11:33:35 +00:00
parent 4002dc80c7
commit dc82b8d1fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258274

View File

@ -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 <bsd.port.mk>