svn commit: r547853 - in head/math/p5-Math-MPFR: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Sep 6 15:40:06 UTC 2020
Author: sunpoet
Date: Sun Sep 6 15:40:00 2020
New Revision: 547853
URL: https://svnweb.freebsd.org/changeset/ports/547853
Log:
Convert REINPLACE_CMD to patch file
Added:
head/math/p5-Math-MPFR/files/
head/math/p5-Math-MPFR/files/patch-Makefile.PL (contents, props changed)
Modified:
head/math/p5-Math-MPFR/Makefile
Modified: head/math/p5-Math-MPFR/Makefile
==============================================================================
--- head/math/p5-Math-MPFR/Makefile Sun Sep 6 15:39:55 2020 (r547852)
+++ head/math/p5-Math-MPFR/Makefile Sun Sep 6 15:40:00 2020 (r547853)
@@ -23,9 +23,6 @@ TEST_DEPENDS= p5-Math-GMP>=0:math/p5-Math-GMP \
USES= localbase perl5
USE_PERL5= configure
-post-patch:
- @${REINPLACE_CMD} -e 's| -lquadmath||' ${WRKSRC}/Makefile.PL
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/MPFR.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/MPFR/Prec/Prec.so
Added: head/math/p5-Math-MPFR/files/patch-Makefile.PL
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/p5-Math-MPFR/files/patch-Makefile.PL Sun Sep 6 15:40:00 2020 (r547853)
@@ -0,0 +1,20 @@
+--- Makefile.PL.orig 2020-07-13 12:00:38 UTC
++++ Makefile.PL
+@@ -193,7 +193,7 @@ else { # we still need to determine whether__float128
+ $mycc = defined($Config{cc}) ? $Config{cc} : 'cc';
+ }
+
+- $mylibs = '-lmpfr -lgmp -lquadmath' unless $mylibs;
++ $mylibs = '-lmpfr -lgmp' unless $mylibs;
+
+ # Include $mylibs to ensure that -lquadmath is locatable.
+ my $out = `$mycc -o have_f128.exe -x c have_f128.in $mylibs 2>&1`;
+@@ -336,7 +336,7 @@ my %options = (
+ ABSTRACT => 'Perl interface to the MPFR (floating point) library',
+ DEFINE => $defines,
+ LIBS => [
+- '-lmpfr -lgmp -lquadmath'
++ '-lmpfr -lgmp'
+ ],
+ PREREQ_PM => {
+ 'Test::More' => '0.88',
More information about the svn-ports-head
mailing list