Ticket #643: Portfile

File Portfile, 1.6 KB (added by jcorley1@…, 21 years ago)

Portfile

Line 
1PortSystem 1.0
2name                    mod_jk2
3version                 2.0.2
4revision                1.0
5categories              www
6platforms               darwin freebsd
7maintainers             jcorley1@nc.rr.com
8description             The Tomcat "connector" module for Apache
9long_description        The newer mod_jk2 is a refactoring of mod_jk. The native part has been \
10                        completely restructured and the configuration has been simplified.
11homepage                http://jakarta.apache.org/tomcat/index.html
12
13master_sites            http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v${version}/src/
14
15distname                jakarta-tomcat-connectors-jk2-${version}-src
16checksums               ${distname}${extract.sufx} md5 c75bd11d96324356b0ffaed2b5bf7fc4
17worksrcdir              ${distname}/jk/native2
18
19depends_build           path:${prefix}/apache2/bin/apxs:apache2 path:${prefix}/include/dlfcn.h:dlcompat
20depends_lib             lib:libapr-0.0:apr lib:libaprutil-0.0:apr-util
21
22configure               { reinplace "s|libtoolize|glibtoolize|g" \
23                                ${workpath}/${worksrcdir}/buildconf.sh
24                          system "cd ${workpath}/${worksrcdir} && \
25                                sh buildconf.sh && \
26                                ./configure \
27                                        --with-apxs2=${prefix}/apache2/bin/apxs \
28                                        --with-java-home=/Library/Java/Home" }
29
30build.args              CPPFLAGS="-I${prefix}/include -I${prefix}/include/apr-0" LIBTOOL=/usr/bin/glibtool
31
32install                 { system "mkdir -p ${destroot}/${prefix}/apache2/modules"
33                          system "mkdir -p ${destroot}/${prefix}/apache2/conf"
34                          system "cp ${workpath}/${distname}/jk/build/jk2/apache2/mod_jk*.so \
35                                ${destroot}/${prefix}/apache2/modules"
36                          system "cp ${workpath}/${distname}/jk/conf/jk2* \
37                                ${workpath}/${distname}/jk/conf/workers2.properties \
38                                ${destroot}/${prefix}/apache2/conf" }
39