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.gzmd5 1491931790509b9af06fc037d02b0e7a |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | variant darwin { |
---|
22 | depends_lib-append lib:libdl.1:dlcompat |
---|
23 | |
---|
24 | if { ![variant_isset apache_layout] } { |
---|
25 | depends_lib path:${prefix}/sbin/apxs:apache |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | variant freebsd { |
---|
30 | if { ![variant_isset apache_layout] } { |
---|
31 | depends_lib path:${prefix}/sbin/apxs:apache |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | variant apache_layout { |
---|
36 | depends_lib 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 | INSTALLSITELIB=${prefix}/lib/perl5/site_perl/5.8.1 \ |
---|
57 | INSTALLSITEARCH=${prefix}/lib/perl5/site_perl/5.8.1/darwin |
---|
58 | INSTALLMAN1DIR=${prefix}/share/man/man1 \ |
---|
59 | INSTALLMAN3DIR=${prefix}/share/man/man3 \ |
---|
60 | PERL_EXTRA_CFLAGS='-DDEFAULT_PATH=\"/bin:/usr/bin:${prefix}/bin\"'" |
---|
61 | |
---|
62 | |
---|
63 | } |
---|
64 | |
---|
65 | destroot.target all pure_install doc_install |
---|
66 | |
---|
67 | post-destroot { |
---|
68 | |
---|
69 | if { ![variant_isset apache_layout] } { |
---|
70 | file mkdir ${destroot}${prefix}/apache/include/modules/perl |
---|
71 | system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \ |
---|
72 | ${destroot}${prefix}/apache/include/modules/perl" |
---|
73 | |
---|
74 | |
---|
75 | file mkdir ${destroot}${prefix}/apache/libexec |
---|
76 | system "install -m 755 ${worksrcpath}/apaci/libperl.so ${destroot}${prefix}/apache/libexec/" |
---|
77 | } else { |
---|
78 | file mkdir ${destroot}${prefix}/include/apache/modules/perl |
---|
79 | system "install -m 755 ${worksrcpath}/src/modules/perl/*.h \ |
---|
80 | ${destroot}${prefix}/include/apache/modules/perl" |
---|
81 | |
---|
82 | |
---|
83 | file mkdir ${destroot}${prefix}/libexec/apache |
---|
84 | system "install -m 755 ${worksrcpath}/apaci/libperl.so ${destroot}${prefix}/libexec/apache/" |
---|
85 | } |
---|
86 | |
---|
87 | cd ${destroot}${prefix}/lib/perl5/site_perl/5.8.1/darwin/auto/mod_perl/ |
---|
88 | system "cat .packlist | sed s#${destroot}/#\/#g >.packlist.new" |
---|
89 | system "mv .packlist.new .packlist" |
---|
90 | |
---|
91 | |
---|
92 | } |
---|
93 | |
---|
94 | |
---|