mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
perl-Math-Prime-Util: fix cross compilation
Closes: #7542 [via git-merge-pr]
This commit is contained in:
parent
29e7640765
commit
c0025c3f0f
2 changed files with 12 additions and 0 deletions
|
@ -13,3 +13,9 @@ license="Artistic, GPL-1"
|
||||||
homepage="https://github.com/danaj/Math-Prime-Util-GMP"
|
homepage="https://github.com/danaj/Math-Prime-Util-GMP"
|
||||||
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
|
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
|
||||||
checksum=bf37ab27ca155aaa274688d7115bbefc93e28d4a6ba4faa193bb0a1b5f87e45f
|
checksum=bf37ab27ca155aaa274688d7115bbefc93e28d4a6ba4faa193bb0a1b5f87e45f
|
||||||
|
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
pre_configure() {
|
||||||
|
sed -i -e "s/^check_lib_or_exit(lib => 'gmp', header => 'gmp.h');//" Makefile.PL
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
|
@ -13,3 +13,9 @@ license="Artistic, GPL-1"
|
||||||
homepage="https://github.com/danaj/Math-Prime-Util"
|
homepage="https://github.com/danaj/Math-Prime-Util"
|
||||||
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
|
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
|
||||||
checksum=26dbcdfe8d0f7efdc049a449430acc2d7b014746cd265db046137e89da5fb7aa
|
checksum=26dbcdfe8d0f7efdc049a449430acc2d7b014746cd265db046137e89da5fb7aa
|
||||||
|
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
pre_configure() {
|
||||||
|
sed -i -e "s/^\(my \$have_gmp =\).*/\1 1;/" Makefile.PL
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue