source: trunk/dports/perl/p5-sdl_perl/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4PortGroup perl5 1.0
5
6perl5.setup         SDL_Perl 2.1.3
7revision            1
8maintainers         meowfishies.com:sethk
9categories-append   devel
10description         Perl bindings for the Simple DirectMedia Layer
11long_description    ${description}
12homepage            http://sdl.perl.org/
13master_sites        http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/
14checksums           md5 6ce26e1b710ce52def4ec22637cd5176 \
15                    sha1 9c11cd7e4356f9b254cd9e3a2f993b1751a21552 \
16                    rmd160 26a4d317d9a5761fc893b732f2236eaad8d12b88
17platforms           darwin
18patchfiles          patch-make-lib-SDL-Build-Darwin.pm patch-src-SDL.xs \
19                    patch-test-testgfxprim.pl
20
21depends_lib-append  port:p5-module-build \
22                    port:libsdl
23
24variant image {
25    depends_lib-append  port:libsdl_image
26}
27
28variant mixer {
29    depends_lib-append  port:libsdl_mixer
30}
31
32variant net {
33    depends_lib-append  port:libsdl_net
34}
35
36variant ttf {
37    depends_lib-append  port:libsdl_ttf
38}
39
40variant gfx {
41    depends_lib-append  port:libsdl_gfx
42}
43
44default_variants    +image +mixer +net +ttf +gfx
45
46configure.cmd       ${perl5.bin}
47configure.pre_args  Build.PL
48configure.env-append PREFIX=${prefix}
49configure.args      'Build Build' installdirs=vendor
50
51build.cmd           ${perl5.bin}
52build.pre_args      Build
53build.args          build
54
55# Work around build system problem:
56post-build {
57    file rename ${worksrcpath}/blib/arch/auto/src/SDL \
58            ${worksrcpath}/blib/arch/auto/
59    file rename ${worksrcpath}/blib/arch/auto/src/SDL_perl \
60            ${worksrcpath}/blib/arch/auto/
61    system "rmdir ${worksrcpath}/blib/arch/auto/src"
62}
63
64test.pre_args       Build
65
66destroot.cmd        ${perl5.bin}
67destroot.pre_args   Build
68destroot.args       install
69destroot.destdir    destdir=${destroot}
Note: See TracBrowser for help on using the repository browser.