1 | PortSystem 1.0 |
---|
2 | name mod_perl |
---|
3 | version 1.29 |
---|
4 | revision 1.0 |
---|
5 | categories www |
---|
6 | platforms darwin freebsd |
---|
7 | maintainers bchesneau@mac.com |
---|
8 | description Embeds a Perl interpreter in the Apache server |
---|
9 | homepage http://perl.apache.org/ |
---|
10 | master_sites http://mirror.telentente.com/pub/apache/dist/perl/ \ |
---|
11 | http://apache.mirror.digitalspace.net/perl/ \ |
---|
12 | http://www.apache.inetcosmos.org/dist/perl/ \ |
---|
13 | http://www.rge.com/pub/infosystems/apache/perl/ \ |
---|
14 | http://mirrors.ccs.neu.edu/Apache/dist/perl/ |
---|
15 | |
---|
16 | checksums mod_perl-1.29.tar.gz md5 1491931790509b9af06fc037d02b0e7a |
---|
17 | depends_lib bin:${prefix}/perl5\.8\.1:perl5.8 |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | variant darwin { |
---|
22 | depends_lib-append lib:libdl.1:dlcompat |
---|
23 | |
---|
24 | if { ![variant_isset apache_layout] } { |
---|
25 | depends_lib-append path:${prefix}/sbin/apxs:apache |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | variant freebsd { |
---|
30 | if { ![variant_isset apache_layout] } { |
---|
31 | depends_lib-append path:${prefix}/sbin/apxs:apache |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | variant apache_layout { |
---|
36 | depends_lib-append path:${prefix}/apache/bin/apxs:apache |
---|
37 | } |
---|
38 | |
---|
39 | |
---|
40 | configure.env LANG=C \ |
---|
41 | LC_ALL=C |
---|
42 | |
---|
43 | configure.pre_args |
---|
44 | configure { |
---|
45 | |
---|
46 | if { [variant_isset apache_layout] } { |
---|
47 | set APXS ${prefix}/apache/bin/apxs |
---|
48 | } else { |
---|
49 | set APXS ${prefix}/sbin/apxs |
---|
50 | } |
---|
51 | |
---|
52 | system "cd ${workpath}/${worksrcdir} && \ |
---|
53 | perl Makefile.PL USE_APXS=1 \ |
---|
54 | PREFIX=${prefix} \ |
---|
55 | WITH_APXS={APXS} EVERYTHING=1 \ |
---|
56 | PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:${prefix}/bin\"'" |
---|
57 | |
---|
58 | |
---|
59 | } |
---|
60 | |
---|
61 | destroot.target all pure_install doc_install |
---|
62 | |
---|
63 | post-destroot { |
---|
64 | |
---|
65 | if { [variant_isset apache_layout] } { |
---|
66 | file mkdir ${destroot}${prefix}/apache/include/modules/perl |
---|
67 | system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \ |
---|
68 | ${destroot}${prefix}/apache/include/modules/perl" |
---|
69 | |
---|
70 | |
---|
71 | file mkdir ${destroot}${prefix}/apache/libexec |
---|
72 | system "install -m 755 ${worksrcpath}/apaci/libperl.so ${destroot}${prefix}/apache/libexec/" |
---|
73 | } else { |
---|
74 | file mkdir ${destroot}${prefix}/include/apache/modules/perl |
---|
75 | system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \ |
---|
76 | ${destroot}${prefix}/include/apache/modules/perl" |
---|
77 | |
---|
78 | |
---|
79 | file mkdir ${destroot}${prefix}/libexec/apache |
---|
80 | system "install -m 755 ${worksrcpath}/apaci/libperl.so ${destroot}${prefix}/libexec/apache/" |
---|
81 | } |
---|
82 | |
---|
83 | cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.1/darwin-2level/auto/mod_perl/ |
---|
84 | system "cat .packlist | sed s#${destroot}/#\/#g >.packlist.new" |
---|
85 | system "mv .packlist.new .packlist" |
---|
86 | |
---|
87 | |
---|
88 | } |
---|
89 | |
---|
90 | |
---|