[142189] trunk/dports/perl/p5-gd
devans at macports.org
devans at macports.org
Sat Dec 12 04:42:25 PST 2015
Revision: 142189
https://trac.macports.org/changeset/142189
Author: devans at macports.org
Date: 2015-11-05 23:00:30 -0800 (Thu, 05 Nov 2015)
Log Message:
-----------
p5-gd: update to version 2.56, dependencies, use module build, add patch to fix build.
Modified Paths:
--------------
trunk/dports/perl/p5-gd/Portfile
Added Paths:
-----------
trunk/dports/perl/p5-gd/files/
trunk/dports/perl/p5-gd/files/patch-Build.PL.diff
Modified: trunk/dports/perl/p5-gd/Portfile
===================================================================
--- trunk/dports/perl/p5-gd/Portfile 2015-11-06 02:42:52 UTC (rev 142188)
+++ trunk/dports/perl/p5-gd/Portfile 2015-11-06 07:00:30 UTC (rev 142189)
@@ -5,7 +5,7 @@
PortGroup perl5 1.0
perl5.branches 5.16 5.18 5.20 5.22
-perl5.setup GD 2.53
+perl5.setup GD 2.56
license {Artistic-2 GPL}
maintainers nomaintainer
description Module interface to libgd
@@ -13,12 +13,26 @@
platforms darwin
-checksums rmd160 9caa098c6578390d24667b0c7e91557134bc60fb \
- sha256 d05d01fe95e581adb3468cf05ab5d405db7497c0fb3ec7ecf23d023705fab7aa
+checksums rmd160 b4e33640fad5d97e63f833270d32e29c843380cd \
+ sha256 1f103d1c98de8621504642ed7fb79f1b40f5f6a63c2abe9390a8ab78617248f9
if {${perl5.major} != ""} {
- depends_lib-append port:gd2 port:libpng
+ depends_build-append \
+ port:libvpx
-## configure.post_args -options "JPEG,FT,PNG" -lib_gd_path ${prefix}/lib/libgd.dylib \
-## LIBS="-lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -liconv -lgd"
+ depends_lib-append \
+ port:gd2 \
+ port:fontconfig \
+ port:freetype \
+ port:jpeg \
+ port:libiconv \
+ port:libpng \
+ port:tiff
+
+# patch Build.PL to allow pass-through of standard args
+# https://rt.cpan.org/Public/Bug/Display.html?id=106274
+
+ patchfiles patch-Build.PL.diff
+
+ perl5.use_module_build
}
Added: trunk/dports/perl/p5-gd/files/patch-Build.PL.diff
===================================================================
--- trunk/dports/perl/p5-gd/files/patch-Build.PL.diff (rev 0)
+++ trunk/dports/perl/p5-gd/files/patch-Build.PL.diff 2015-11-06 07:00:30 UTC (rev 142189)
@@ -0,0 +1,23 @@
+--- Build.PL.orig 2015-11-05 22:33:07.000000000 -0800
++++ Build.PL 2015-11-05 22:33:29.000000000 -0800
+@@ -31,6 +31,8 @@
+ #############################################################################################
+ # Build options passed in to script to support reproducible builds via Makefiles
+ #############################################################################################
++my $help;
++Getopt::Long::Configure('pass_through');
+ my $result = GetOptions("options=s" => \$options,
+ "lib_gd_path=s" => \$lib_gd_path,
+ "lib_ft_path=s" => \$lib_ft_path,
+@@ -38,8 +40,10 @@
+ "lib_jpeg_path=s" => \$lib_jpeg_path,
+ "lib_xpm_path=s" => \$lib_xpm_path,
+ "lib_zlib_path=s" => \$lib_zlib_path,
++ "h|help" => \$help,
+ );
+-unless ($result) {
++Getopt::Long::Configure('no_pass_through');
++if ($help) {
+ die <<END;
+ Usage: perl Build.PL [options]
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/fd835f41/attachment.html>
More information about the macports-changes
mailing list