[135236] trunk/dports/perl
devans at macports.org
devans at macports.org
Sun Apr 19 20:33:00 PDT 2015
Revision: 135236
https://trac.macports.org/changeset/135236
Author: devans at macports.org
Date: 2015-04-19 20:33:00 -0700 (Sun, 19 Apr 2015)
Log Message:
-----------
p5-alien-sdl: new port, building, finding and using SDL binaries.
Added Paths:
-----------
trunk/dports/perl/p5-alien-sdl/
trunk/dports/perl/p5-alien-sdl/Portfile
trunk/dports/perl/p5-alien-sdl/files/
trunk/dports/perl/p5-alien-sdl/files/patch-Build.PL.diff
Added: trunk/dports/perl/p5-alien-sdl/Portfile
===================================================================
--- trunk/dports/perl/p5-alien-sdl/Portfile (rev 0)
+++ trunk/dports/perl/p5-alien-sdl/Portfile 2015-04-20 03:33:00 UTC (rev 135236)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup perl5 1.0
+
+perl5.branches 5.16 5.18 5.20
+perl5.setup Alien-SDL 1.446
+license {Artistic-1 GPL}
+maintainers devans openmaintainer
+description Alien::SDL - building, finding and using SDL binaries
+long_description ${description}
+
+platforms darwin
+
+checksums rmd160 bfd9eaf167fd84232465a6fa7f07b332b4c57da1 \
+ sha256 c9aa2c9dc3c63d89773c7d7203f2a46d1b924d0c72d9f801af147a3dc8bc512a
+
+if {${perl5.major} != ""} {
+ depends_build-append \
+ port:p${perl5.major}-archive-extract \
+ port:p${perl5.major}-archive-tar \
+ port:p${perl5.major}-archive-zip \
+ port:p${perl5.major}-digest-sha \
+ port:p${perl5.major}-text-patch
+
+ depends_lib-append \
+ port:libsdl \
+ port:libsdl_gfx \
+ port:libsdl_image \
+ port:libsdl_mixer \
+ port:libsdl_net \
+ port:libsdl_pango \
+ port:libsdl_ttf \
+ port:p${perl5.major}-capture-tiny \
+ port:p${perl5.major}-file-sharedir \
+ port:p${perl5.major}-file-which
+
+ patchfiles patch-Build.PL.diff
+
+ configure.env-append SDL_INC='${prefix}/include' \
+ SDL_LIB='${prefix}/lib'
+
+ supported_archs noarch
+ perl5.use_module_build
+}
Property changes on: trunk/dports/perl/p5-alien-sdl/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/perl/p5-alien-sdl/files/patch-Build.PL.diff
===================================================================
--- trunk/dports/perl/p5-alien-sdl/files/patch-Build.PL.diff (rev 0)
+++ trunk/dports/perl/p5-alien-sdl/files/patch-Build.PL.diff 2015-04-20 03:33:00 UTC (rev 135236)
@@ -0,0 +1,41 @@
+--- Build.PL.orig 2015-02-21 11:53:18.000000000 -0800
++++ Build.PL 2015-04-19 15:59:45.000000000 -0700
+@@ -99,6 +99,7 @@
+ }
+ },
+ get_options => { 'with-sdl-config' => { qw(type :s store) => \$sdl_config } },
++ installdirs => 'vendor',
+ dynamic_config => 1,
+ create_readme => 1,
+ share_dir => 'sharedir',
+@@ -203,18 +204,18 @@
+ my $i = 1;
+ my $prompt_string = "\nYou have the following options:\n";
+ my $recommended_candidate = 1;
+- foreach my $c (@candidates) {
+- $recommended_candidate = $i if $c->{buildtype} eq 'build_from_sources';
+-
+- if( $c->{buildtype} eq 'use_config_script' ) {
+- $c->{title} .= "\n ";
+- for(qw(SDL SDL_image SDL_mixer SDL_ttf SDL_gfx SDL_Pango)) {
+- $c->{title} .= "$_(v$have_libs{$_}->[0]) " if $have_libs{$_}[0];
+- }
+- }
+-
+- $prompt_string .= "[" . $i++ . "] " . $c->{title} . "\n";
+- }
++# foreach my $c (@candidates) {
++# $recommended_candidate = $i if $c->{buildtype} eq 'build_from_sources';
++#
++# if( $c->{buildtype} eq 'use_config_script' ) {
++# $c->{title} .= "\n ";
++# for(qw(SDL SDL_image SDL_mixer SDL_ttf SDL_gfx SDL_Pango)) {
++# $c->{title} .= "$_(v$have_libs{$_}->[0]) " if $have_libs{$_}[0];
++# }
++# }
++#
++# $prompt_string .= "[" . $i++ . "] " . $c->{title} . "\n";
++# }
+
+ # select option '1' for travis
+ if ( defined $travis and $travis == 1 ) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150419/2c5e4190/attachment-0001.html>
More information about the macports-changes
mailing list