source: trunk/dports/www/mod_ssi_func/Portfile

Last change on this file was 110809, checked in by jmr@…, 4 years ago

mod_ssi_func: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 110809 2013-09-06 19:13:33Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    mod_ssi_func
6version                 1.0
7categories              www
8license                 Apache-2
9platforms               darwin
10maintainers             nomaintainer
11description             advanced SSI modules for apache2
12long_description        "${description}"
13
14homepage                http://www.bbc.co.uk/opensource/projects/apache/
15master_sites    ${homepage}
16distname                distribution_${version}
17checksums               md5 6947621d7a31bff681967282b3ca9eac
18use_zip                 yes
19
20depends_lib             port:apache20
21
22pre-extract {
23        file mkdir ${worksrcpath}
24}
25extract.dir             ${worksrcpath}
26
27pre-patch {
28        # Convert Makefiles from DOS to UNIX linefeeds before patching
29        reinplace "s/\r$//g" \
30                ${worksrcpath}/ssi_func/Makefile \
31                ${worksrcpath}/ssi_func_flastmod/Makefile \
32                ${worksrcpath}/ssi_func_math/Makefile \
33                ${worksrcpath}/ssi_func_rnd/Makefile \
34                ${worksrcpath}/ssi_setsplitvars/Makefile
35}
36
37patchfiles              patch-ssi_func-Makefile \
38                                patch-ssi_func_flastmod-Makefile \
39                                patch-ssi_func_math-Makefile \
40                                patch-ssi_func_rnd-Makefile \
41                                patch-ssi_setsplitvars-Makefile
42
43use_configure   no
44
45set mods                {ssi_func ssi_func_flastmod ssi_func_math ssi_func_rnd ssi_setsplitvars}
46
47build {
48        copy ${worksrcpath}/ssi_func/mod_ssi_func.h ${worksrcpath}/ssi_func_flastmod
49        copy ${worksrcpath}/ssi_func/mod_ssi_func.h ${worksrcpath}/ssi_func_math
50        copy ${worksrcpath}/ssi_func/mod_ssi_func.h ${worksrcpath}/ssi_func_rnd
51        foreach mod ${mods} {
52                system "cd ${worksrcpath}/${mod} && \
53                        make APXS=${prefix}/apache20/bin/apxs"
54        }
55}
56
57destroot {
58        foreach mod ${mods} {
59                system "cd ${worksrcpath}/${mod} && \
60                        make install APXS=${prefix}/apache20/bin/apxs DESTDIR=${destroot}"
61        }
62}
Note: See TracBrowser for help on using the repository browser.