1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Change INC/LIBS modifier

Feature safe:	yes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-11-30 12:31:58 +00:00
parent e0d23de03e
commit d886a905a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286669

View File

@ -17,13 +17,9 @@ COMMENT= Perl module that provides an interface to the GMP library
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
CONFIGURE_ARGS= INC=-I${LOCALBASE}/include LIBS="-L${LOCALBASE}/lib -lgmp"
PERL_CONFIGURE= yes
MAN3= Math::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>