diff options
author | Sam James <sam@gentoo.org> | 2022-10-25 21:03:01 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-25 21:12:10 +0100 |
commit | 8856758f95b1110b87089ef0f9d358754cf77f3a (patch) | |
tree | 7a435abb92ec083f17010265b00cd2b39b37561a /dev-perl/GD/files | |
parent | x11-libs/gdk-pixbuf: Drop unnecessary sed (diff) | |
download | gentoo-8856758f95b1110b87089ef0f9d358754cf77f3a.tar.gz gentoo-8856758f95b1110b87089ef0f9d358754cf77f3a.tar.bz2 gentoo-8856758f95b1110b87089ef0f9d358754cf77f3a.zip |
dev-perl/GD: add 2.760.0
Closes: https://bugs.gentoo.org/867835
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/GD/files')
-rw-r--r-- | dev-perl/GD/files/GD-2.760.0-respect-libdir.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-perl/GD/files/GD-2.760.0-respect-libdir.patch b/dev-perl/GD/files/GD-2.760.0-respect-libdir.patch new file mode 100644 index 000000000000..3651cc3283e2 --- /dev/null +++ b/dev-perl/GD/files/GD-2.760.0-respect-libdir.patch @@ -0,0 +1,39 @@ +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -56,12 +56,6 @@ END + + @LIBS = qw(-lgd) unless @LIBS; + +-# support for AMD64 libraries +-if (-d '/usr/lib64') { +- my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH; +- @LIBPATH = (@LIBPATH,@libs64); +-} +- + ############################################################################################# + # Build options passed in to script to support reproducible builds via Makefiles + ############################################################################################# +@@ -219,12 +213,6 @@ if( ! defined($lib_gd_path) ) + $PREFIX = prompt('Where is libgd installed?','/usr/lib'); + } + +-unless ($AUTOCONFIG || $PREFIX eq '/usr/lib') { +- $PREFIX =~ s!/lib$!!; +- unshift @INC,"-I$PREFIX/include"; +- unshift @LIBPATH,"-L$PREFIX/lib"; +-} +- + # FEATURE FLAGS + + ################################################################################################################## +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -514,7 +514,7 @@ sub try_to_autoconfigure { + unless ($config) { + my %config; + require ExtUtils::PkgConfig; +- %config = ExtUtils::PkgConfig->find ("$prefix/lib/pkgconfig/gdlib.pc") if $prefix; ++ %config = ExtUtils::PkgConfig->find ("$lib_gd_path/pkgconfig/gdlib.pc") if $prefix; + %config = ExtUtils::PkgConfig->find ("gdlib") unless %config; + return unless %config; + $version = $config{modversion}; |