Ticket #12362: Portfile.diff

File Portfile.diff, 2.3 KB (added by jmpp@…, 17 years ago)

Portfile patch

  • Portfile

     
    1616use_bzip2               yes
    1717checksums               md5 d4aa5aeb09acb3307841022d279ab895
    1818
     19set svnuser             svn
     20
    1921depends_lib             port:expat port:neon \
    2022                        port:apr port:apr-util \
    2123                        port:db44 \
     
    2830
    2931patchfiles              patch-Makefile.in
    3032
     33pre-configure {         reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
     34                                ${worksrcpath}/configure
     35                        reinplace "s|@@DESTROOT@@|${destroot}|g" \
     36                                ${worksrcpath}/configure
     37                        }
     38
    3139configure.args          --with-berkeley-db=${prefix}/include/db44:${prefix}/lib/db44 \
    3240                        --with-neon=${prefix} --with-apr=${prefix} \
    3341                        --with-apr-util=${prefix} --without-apxs \
    3442                        --mandir=\\\${prefix}/share/man \
    3543                        --disable-neon-version-check
    3644
    37 build.target            all mucc
    38 
    39 pre-configure {         reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" \
    40                                 ${worksrcpath}/configure
    41                         reinplace "s|@@DESTROOT@@|${destroot}|g" \
    42                                 ${worksrcpath}/configure
    43                         }
    44 
    4545post-configure {        reinplace "s|need_relink=yes|need_relink=no|g" \
    4646                                ${worksrcpath}/libtool
    4747                        }
    4848
     49build.target            all mucc
     50
     51
     52variant server {
     53        # Placeholder for startupitem support
     54        #startupitem.create yes
     55        #startupitem.start  foo
     56        #startupitem.stop   bar
     57        pre-destroot {
     58                     addgroup ${svnuser}
     59                     set gid [existgroup ${svnuser}]
     60                     adduser ${svnuser} gid=${gid} realname=Subversion\ Server
     61        }
     62}
     63
    4964variant mod_dav_svn {   depends_build path:${prefix}/apache2/bin/apxs:apache2
    5065                        configure.args-append \
    5166                                --with-apxs=${prefix}/apache2/bin/apxs \
     
    6984                                        configure.args-delete --without-apxs
    7085
    7186                                        post-install {
    72                                                         ui_warn "This variant (+mac-os-x-server-mod_dav_svn builds against the Apple-supplied apache2 in /opt/apache2 and thus may have problems that the normal variant (+mod_dav_svn) which builds against the macports supplied apache2 will not have."
     87                                                        ui_warn "This variant (+mac_os_x_server_mod_dav_svn) builds against the Apple-supplied apache2 in /opt/apache2 and thus may have problems that the normal variant (+mod_dav_svn) which builds against the macports supplied apache2 will not have."
    7388                                                         }     
    7489                                        }
    7590